Hi,
I was having trouble using Instantiates. I’ve read the script reference and another website about it.
From the reference page, it says:
var prefab : GameObject;
function Start()
{
Instantiate(prefab, Vector3(0,0,0), Vector3(0,0,0));
}
Everytime I do that, I get this error = 'No appropriate version of ‘UnityEngine.Object.Instantiate’. So I got a bit confused since another website actually wrote the same way. Fortunately, after messing about, I can only instantiate an object when I write it as:
//inside function Start()
Instantiate(prefab);
How do I(if I wanted to):
Position the prefab anywhere I wanted or scale the prefab?
Thanks very much.
-Hakimo