- Home /
Question by
pakfront · Oct 24, 2010 at 09:15 PM ·
instantiateprefabname
Does changing the name property of a Prefab Clone have side effects?
I have been setting the .name property Prefabs I create during runtime:
Seeker a = (Seeker) Instantiate(myPrefab, new Vector3(20,0,20),Quaternion.identity);
a.name = "Red George";
I do this to make reading the Hierarchy outliner easier but it's not really needed for my project otherwise. Am I breaking the clone's relationship to the prefab? Are there other side effects like increased memory usage or mesh duplication?
Comment
Best Answer
Answer by Eric5h5 · Oct 24, 2010 at 09:22 PM
It doesn't have any effect (unless you happened to have code that's expecting instantiated objects to have the "(Clone)" suffix in the name).
Your answer
![](https://koobas.hobune.stream/wayback/20220613080701im_/https://answers.unity.com/themes/thub/images/avi.jpg)