That's the code. Error is: BCE0023: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Vector3)' was found. Any help would be great, thanks, JUstin W.
(comments are locked)
|
|
your rong to put double vector3(because is a distance).
The right order is to put the object then the distance and then the rotation. For the rotation you can put also:
(comments are locked)
|
|
The third parameter, rotation, is a quaternion rather than a Vector3. You can convert a Vector3 to a quaternion like so:
Also, Update runs once every single frame, and can't be delayed or interrupted. Therefore it can't be a coroutine and can't use yield. Start can be a coroutine, so put your loop in Start instead.
(comments are locked)
|

Nevermind, you can't use a Vector3 for the rotation part... Sorry...