-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
INTERNAL_CALL_Internal_InstantiateSingle can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
Here's my code snippet
socket.On("get_user_online_companion", (data) => { Instantiate(otherUserPrefab); });
I attempt to instantiate it in Update() but when it is instantiate it is automatically destroy and also I cannot use coroutine. I would like to know I can get the source code and try to port it to the latest unity build.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels