Question by
kingames123456789 · Jul 16, 2017 at 05:41 PM ·
transformarraypositionteleport
How to transform position of one object to the exact position of another object?
How should I change this line to transform position to the other gameobject that is not in the array :
void Spawn(){ Instantiate(itemPrefabs[Random.Range(0,itemPrefabs.Length)],transform.position,Quaternion.identity); }
Comment
change transform.position to whatever object's transform's position you want it to spawn? what is this for kind of question? lol
I am new to Unity and dont know the basics Can you give me an example pls tnx