Hello all,
I'm having some difficulties cloning a game object and transforming it in certain co-ords.
Here is my code (JS):
#pragma strict
var prefab : GameObject;
var p : Vector3.this[(1.29),(18.93),(0.48)];
function Awake()
{
var go1 = Instantiate(prefab, p, Quaternion.identity);
}
I put the Vector3.this in a variable just to test a couple of other things (irrelevant)
Am I using Vector3.this correctly?
The only error thrown is a tolken error which I cannot figure out.
![alt text][1]
Thank you for the help in advance.
[1]: /storage/temp/99951-error2.png
↧