Author Topic: iOS Build Error 3.6.3 UnityEditor  (Read 1952 times)

sonicviz

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 58
    • View Profile
iOS Build Error 3.6.3 UnityEditor
« on: June 11, 2014, 08:40:56 AM »
Getting a UnityEditor does not exist in current context trying to build to iOS

?

spooky

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 16
    • View Profile
Re: iOS Build Error 3.6.3 UnityEditor
« Reply #1 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.