- Home /
Moving and manipulating object trought scenes in Unity 4
I'm working on a project that simulates an gallery where the player can do it's own sculptures and expose it. For that, since I have no experience in Unity and I'm a very begginer in programming, I'm using an object that is modified trought an script from the Procedural Exemples that only works in older versions of Unity, so I'm using Unity 4.
So, here's what I have for now:
In scene 1, I have a trigger object to teleport the player to scene 2. (image 1)
In scene 2, the player can modify the object. (image 2.1 and 2.2)
When pressed esc key, the player and the modified object are teleported back to scene 1 (used the DontDestroyOnLoad function). However, the player can't interact with the modified object. (image 3)
However, when the player collides with the trigger that leads to scene 2 again, the object modified before returns to scene 2. (image 4)
What I need is to press a key to copy the object to another scene where the player can grab it and place it on top of any of the bases distributed throughout the scene. And, when the player colides again with the trigger, the modified object don't return to scene 2.
So, please, if anyone could help me I would be really thankful.
Your answer
Follow this Question
Related Questions
All instance of a script and change a variable 1 Answer
Serialization - Variables won't change on original construction 1 Answer
i don't understand "NullReferenceException: Object reference not set to an instance of an objec" 0 Answers
Will this be an instance or a pointer? 3 Answers
"Object reference not set to an instance of an object" 2 Answers