- Home /
Duplicate Question
How to access a game object from a different scene?
I am creating a 3D endless run game. It consists of two different scenes i.e. one for Main Menu and the other is for game play. I am using the following method to load that scene:
Application.LoadLevel("myscene");
Now the problem is that I have to add 4 different characters and select one character from Main Menu scene and use it in the other scene throughout the game play. Right now I have directly passed that character to the game object but I want to pass it through the main Menu Scene to Game Play scene. I don't know how to access a game object from one scene into another. If there is any method please guide me or if there is any method other than to pass a game object to another scene please tell that.
Thanks.
Your answer
Follow this Question
Related Questions
GameObject references runtime script in scene file. Unsure whats wrong 2 Answers
Scene changes after import 1 Answer
Calling an Audio Source on one game object from a script on another game object..? 1 Answer
Please help my head is burning from this problem : i have multiple gameobject , same script 1 Answer
How do I play gameobjects in my scene from one script / Script is not working 0 Answers