|
I'm currently trying to replace some animations I was never that happy with (built in Unity) with iTweens... I want to take the gameObject's transform.position and change it a bit, and then save that as a new transform. But I keep running into "error CS0119: Expression denotes a It hits on line 23 in my code, which is completely blank, so I suspect it means where DrawerOutPos.position = tempvect(); Anyway... here's my code: DrawerInPos = gameObject.transform; Vector3 tempvect = new Vector3(); tempvect.x = gameObject.transform.position.x; tempvect.y = gameObject.transform.position.y+0.4f; tempvect.z = gameObject.transform.position.z; DrawerOutPos.position = tempvect(); }
(comments are locked)
|
|
Try that: INullReferenceException UnityEngine.Transform.set_position (Vector3 value) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/UnityEngineTransform.cs:20) DrawerAnims.Start () (at Assets/Scripts/DrawerAnims.cs:20) Line 20 is where "DrawerOutPos.position = tempvect;" is falling.
Jul 03 '12 at 08:40 PM
DaveMatney
(comments are locked)
|

I swear I used to be able to post code properly...