I figure and search about this problem but I just can’t get a answer and decide to seek for help
I am trying to push a instantiate prefab to my array
This is my code:
Instantiate(levelArray[levelInstanNum],Vector3(levelInstanX,-2.5,0),Quaternion.identity);
levelArray.Push(levelArray[levelInstanNum]);
but then I found out that the Instantiate object will be object(clone) that why it can’t push in to the array
Any idea how I can make
levelArray.Push( Instantiate(levelArray[levelInstanNum],Vector3(levelInstanX,-2.5,0),Quaternion.identity));
I know maybe is quite basic, sorry… I am quite new in programming and hope to seek some guide here
Thank you