- Home /
List of reserved variables such as transform and rigidbody
Is there a list of all "reserved variables" such as transform
and rigidbody
?
Also, what happens if there is a variable assignment collision?
Answer by syclamoth · Jan 25, 2012 at 01:01 AM
Yes, you'll find them in the script reference for 'MonoBehaviour'. If you assign a variable name on top of an existing one, the one with the smaller 'scope' will be used. It will, however, throw a warning because that kind of thing is usually unintended.
Your answer
Follow this Question
Related Questions
Object not moving,Object not moving in any direction 1 Answer
How to check if a variable has gone up or down 1 Answer
Detect a GameObject Passing Between Other Two GameObjects? 4 Answers
Two ways to calculate velocity without using Rigidbody, which one is more accurate? 1 Answer
Why is my Rigidbody child not moving with it's Rigidbody parent? 1 Answer