Hello im trying to set the position of a transform i can do this with vectors but i want to use a transform because later i will need to get/set the rotation to.
What i did
//this dosent work
Also here is the error im gettting
Internally, Vector3 can be seen a
Almost all other objects in Unity are
For example, this says "I am a vector, use me":
But this is just "look, I can be an object, but you need to show me which one":
For these objects, you first need to assign them something. You can do that in the inspector. Or for example create new ones:
You are trying to give a value to a null array field. Assign the transform you want to position into the cameraPos array's 0th field in the inspector.
answered Jun 22 '12 at 07:40 PM