Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

reference to gameobject in different scene unity

//the truth is, you shouldn't. its better to just add delegates to
//SceneManager.sceneLoaded and SceneManager.sceneUnloaded
//if you really need to,
FindObjectOfType<Canvas>();
//searches across all additively loaded scenes
 
PREVIOUS NEXT
Tagged: #reference #gameobject #scene #unity
ADD COMMENT
Topic
Name
4+2 =