Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Goosery on July 25, 2012, 12:36:30 PM

Title: UIDraggableCamera.cs modification
Post by: Goosery on July 25, 2012, 12:36:30 PM
I'm curious is it ok for me to comment out the lines as below in UIDraggableCamera.cs?  It works fine as such for me, but I'm not sure why it was meant to throw error.


   void Awake ()
   {
      mCam = camera;
      mTrans = transform;

      //if (rootForBounds == null)
      //{
         //Debug.LogError(NGUITools.GetHierarchy(gameObject) + " needs the 'Root For Bounds' parameter to be set", this);
         //enabled = false;
      //}
   }
Title: Re: UIDraggableCamera.cs modification
Post by: ArenMook on July 25, 2012, 07:37:03 PM
It won't function without it set.