Author Topic: Bugs in NGUITools  (Read 2483 times)

spooky

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 16
    • View Profile
Bugs in NGUITools
« on: June 10, 2014, 11:39:57 AM »
When using NGUITools.AddChild(); the project will not successfully build, because the '#if UNITY_EDITOR' is missing from before 'Unity.Undo.RegisterCreatedObjectUndo()' in one of the variations of the function. I fixed it, so now I'm unable to find where.

Also, when using Web Player, NGUITools produces a mysterious error during runtime if the Prefab Toolbar is open. Commenting out 'comp.SendMessage(funcName, SendMessageOptions.DontRequireReceiver);' stops the error, but prevents NGUI from rendering prefab icons. Closing the toolbar also prevents the error.
« Last Edit: June 10, 2014, 01:25:03 PM by spooky »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bugs in NGUITools
« Reply #1 on: June 11, 2014, 04:29:04 AM »
Be sure to grab the latest version. The #if UNITY_EDITOR should already be there.

As for the second issue, I'm guessing it happens in the editor only? You can likely fix it by replacing the #if statement above that line with this:
  1. #if !UNITY_EDITOR && (UNITY_WEBPLAYER || UNITY_FLASH || UNITY_METRO || UNITY_WP8)