I am looking for a way to not have an instantiated gameobject carry the (clone) after its name.
Right now I add two prefabs to viking1 and viking2. but no matter how i do it in the script that Instantiates,the name of the gameobjects always have the (Clone) after its name. Once its instantiated.
If I set the name in the GameObjects script, it will rename it correctly, but thats not a real option, since several gameobjects use this same script.
public class ControllerScript : MonoBehaviour
{
public GameObject viking1;
public GameObject viking2;
void Awake()
{
Vector3 pos = transform.position;
pos.x = transform.position.x + 2;
Instantiate(viking1, pos, Quaternion.identity); //Instantiating Viking1.
pos.x = transform.position.x - 2;
Instantiate(viking2, pos, Quaternion.identity); //Instantiating Viking2.
}
// Use this for initialization
void Start () {
viking2.name = "Viking2";
viking1.name = "Viking1";
}}