Author Topic: Errors with latest version of NGUI  (Read 2795 times)

brtaft

  • Guest
Errors with latest version of NGUI
« on: February 17, 2013, 04:13:14 PM »


I am seeing two errors after updating the very latest version of NGUI on a existing project.  The project is just a two buttons on a panel.  Its telling me to set a mTrans variable in the inspector for the UIAnchor scrit - but I don't this property in the inspector.

UnassignedReferenceException: The variable mTrans of 'UIAnchor' has not been assigned.
You probably need to assign the mTrans variable of the UIAnchor script in the inspector.
UnityEngine.Transform.get_position ()
UIAnchor.Update () (at Assets/NGUI/Scripts/UI/UIAnchor.cs:190)

UnassignedReferenceException: The variable mRen of 'UIDrawCall' has not been assigned.
You probably need to assign the mRen variable of the UIDrawCall script in the inspector.
UIDrawCall.UpdateMaterials () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:214)
UIDrawCall.OnWillRenderObject () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:313)
UnityEditor.DockArea:OnGUI()

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Errors with latest version of NGUI
« Reply #1 on: February 17, 2013, 07:04:09 PM »
Please follow the update instructions carefully. You need to start a new scene prior to deleting NGUI folder and importing the updated package.

Restart Unity.