Optimized way / cache when we set variables?

You can get the variable and then set the Value property.

myVariable.Value = myValue

What if I get the variable insite OnEnable and then it changes value during runtime, for example "MyTarget.Value" is it going to always show the latest target?
 
It will keep the reference assigned to it. If a new reference is assigned it will use that.
 
Top