I found a tutorial that I can actually follow and understand here
http://www.untoldentertainment.com/blog/2010/12/23/dynamically-add-a-gameobject-to-the-scene-in-unity-3d/
It made sense and I felt like I was learning. I was ready to jump for joy with my first bit of functional code. I followed the code exactly, typing it manually and then saw the error messages in Unity.
It keeps asking me to add a semicolon at 5,26
Right in the middle of the Vector3 pos variable.
I copied and pasted the original code into a separate script and tried that but even the original script does the same thing.
What’s going on?
Thanks for reading.
The Code in question…
var myCube : GameObject; function Start() { var pos : Vector3(0,0,0); var rot : Quaternion = Quaternion.identity; Instantiate(myCube, pos, rot); } function Update() { } ` `