Skip to main content
added 14 characters in body
Source Link

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

// UnityScript var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; // C# GameObject obj; obj = Instantiate( ... ); as GameObject; obj.name = "Not A Clone!!!"; 

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

// UnityScript var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; // C# GameObject obj; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; 

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

// UnityScript var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; // C# GameObject obj; obj = Instantiate( ... ) as GameObject; obj.name = "Not A Clone!!!"; 
added 121 characters in body
Source Link

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

// UnityScript var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; // C# GameObject obj; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; 

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; 

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

// UnityScript var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; // C# GameObject obj; obj = Instantiate( ... ); obj.name = "Not A Clone!!!"; 
Source Link

Instantiate returns the created GameObject. You should be able to capture it in a variable and change the name and more.

var obj : GameObject; obj = Instantiate( ... ); obj.name = "Not A Clone!!!";