I would like to know wich method to get objects references is more expensive (on performance and memory use) on Ipod:
- Use the function “GameObject.Find()”
- Create a global var and drag the object in the inspector, and then use it.
Thanks in advance
I would like to know wich method to get objects references is more expensive (on performance and memory use) on Ipod:
Thanks in advance
I’m by no means an expert but here’s how the performance would rank, from slowest to fastest:
1.) GameObject.Find in Update
2.) GameObject.Find stored to a variable in Start/Awake
3.) Dragging in the gameobject by means of a public variable in the inspector (I think the term for this is statically linked?)