Just a quick question on cached variables

Rick,

We changed the update “FindObjectOfType” to be a cached variable. I don’t understand how it can reference the variable in the update without running that method of FindObjectOfType since the variable is defined as running the method and it’s referencing that variable each frame. Isn’t it doing the same thing as before you changed it?

Thanks!

Hi Jeremy,

Could you post the code so I can take a look for you?

Privacy & Terms