Author Topic: UIDraggableCamera.cs modification  (Read 3420 times)

Goosery

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
UIDraggableCamera.cs modification
« 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;
      //}
   }

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggableCamera.cs modification
« Reply #1 on: July 25, 2012, 07:37:03 PM »
It won't function without it set.