Hi guys,
A simple question, if I were to ref a prefab to lots of gameObjects and other prefabs, will they point to the same memory address or will they instantiate a new one for each?
Thanks
Hi guys,
A simple question, if I were to ref a prefab to lots of gameObjects and other prefabs, will they point to the same memory address or will they instantiate a new one for each?
Thanks
If you mean you have a prefab in your project and lots of scripts with this line:
public GameObject SomePrefab;
That your setting in the inspector, the prefab is instanced once and all the above lines point to the same prefab in memeory.
Thanks. That’s what I’m asking about.