How can I replace objects in the initial position?
I'm starting using Unity in order to build an application for HoloLens2. I've created a scene in which there is a window that can be manipulated by the user (the user can change its position, rotation, scale) and I want to add a button in the scene that when is pressed, the window is brought back to its initial values of position, rotation and scale. I've created a script associated to the onClick() event of the button:
("SlateSx" is the name of the window I want to replace) But i get the error: "The name 'SlateSx' does not exist in the current context". What should I do? Thanks a lot for the help!
Your answer
Follow this Question
Related Questions
How could i save a variable called by multiple objects using the same script? 1 Answer
HELP! How to make Update function start after delay? C# 2 Answers
Instantiated bullet not pointing towards targeting or moving 2D 1 Answer
OnTriggerEnter2D problem 1 Answer
how to manage different objects with the same script. 0 Answers