This is a very simple question that I need the answer to, please. If I update a variable like: OriginalRotation = player.transform.eulerangles.x Ignore the fact I haven’t used capitals where I should. If I rotate the transform but don’t update this variable, manually, will the value stay as the same number or will it update with the rotation? If it updates with the rotation can you please suggest a way in which I can make the variable keep the same value until I want it to manually update? Thanks in advance. By the way my code is in C#
Storing a rotation variable, does it store the value of rotation or does it update whenever the object rotates?
You’ve obviously posted your question without doing any experiments. I think it’ll take you 30 seconds to work out that the variable is a copy of what was in the rotation, and if the rotation changes the variable doesn’t.