Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: sonicviz on June 11, 2014, 08:40:56 AM

Title: iOS Build Error 3.6.3 UnityEditor
Post by: sonicviz on June 11, 2014, 08:40:56 AM
Getting a UnityEditor does not exist in current context trying to build to iOS

?
Title: Re: iOS Build Error 3.6.3 UnityEditor
Post by: spooky on June 11, 2014, 11:58:59 AM
Go to the offending line of code and make it look like this:
  1. #if UNITY_EDITOR
  2.         Unity.Undo.RegisterCreatedObjectUndo()
  3. #endif
  4.  
Don't replace the Unity.Undo thing though, just add the other two lines, exactly as typed above.
This is supposedly fixed in an update, but I haven't updated yet.