Error at late player spawn - "There is no look source...###"

DiX'iS

New member
Problem - i'm getting error "There is no look source blah blah blah..." if i creating player after loading a scene.

Scene loaded - the camera reports an error: "Not found any object with Player tag". Thats normal, ok. The player really doesn't exist. Lets go further.
Pressing button to spawn - now player spawned, but console started scrolling with infinit "There is no look source" error.

But if I add and save the Player in the scene file in edit mode, not in game - no error occurs after scene will be loaded.

How to resolve this error? I just don't know where to look anymore... :cry:

P.S.
Any instructions on correct delayed spawning? I couldn't find anything..
 

Attachments

  • Screenshot 2021-09-29 003823.png
    Screenshot 2021-09-29 003823.png
    74 KB · Views: 1
Last edited:
Take a look at this page for an example of instantiating the character and attaching the camera:


It's under the DontDestroyOnLoad section but the same concepts apply.
 
Take a look at this page for an example of instantiating the character and attaching the camera:


It's under the DontDestroyOnLoad section but the same concepts apply.
T.y. for answer!
 
Top