ScriptReference/MonoBehaviour.OnValidate #36
Replies: 2 comments 1 reply
-
Do not cache variables with a null check in OnValidate unless they are global, as if you copy-paste component values they will not be contextual to your new instance. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Comment by This message can be sent from assets and instances. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/MonoBehaviour.OnValidate
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnValidate.html
Beta Was this translation helpful? Give feedback.
All reactions