Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Compile error to iOS/Android when using new UI

Discussion in 'UGUI & TextMesh Pro' started by aeonbringer, Dec 4, 2014.

  1. aeonbringer

    aeonbringer

    Joined:
    Oct 28, 2013
    Posts:
    6
    So I switched to using the new 4.6 UI system a while ago, and tested it compiling to iOS/Android today and found the compile error when trying to do so:

    It refers to UnityEngine.UI.BaseVertexEffect::OnValidate() so I would assume it's either something I'm using with the new UI not being supported on mobile devices or some other issues.
     
  2. ForceVFX

    ForceVFX

    Joined:
    Jan 21, 2011
    Posts:
    612
    yep..me too.. just tried to compile..and this error...
     
  3. jpease

    jpease

    Joined:
    Apr 18, 2013
    Posts:
    11
    This is still an issue (just ran into it). Putting #if UNITY_EDITOR around all of my OnValidate and Reset methods in classes that inherit from UI classes fixed it.