Quantcast
Channel: Answers for "Simple Prefab Instantiate "(Clone)" Question"
Browsing latest articles
Browse All 7 View Live

Answer by WillTAtl

just set the name property of the object returned from Instantiate, like this... var obj=Instantiate(myPrefab,pos,rot); obj.name="NewName";

View Article



Answer by aldonaletto

You can use some Unityscript string functions to eliminate the *(Clone)* string var obj = Instantiate(objPrefab, position, rotation); // create the object... var pos = obj.name.IndexOf("("); // find...

View Article

Answer by nastajus

Had the following problem with the substring renaming. Dunno why it but permanently changed my prefab name, in such a way that didn't make sense, and wouldn't let me rename. I had to delete all my...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images