I get a compilation error when I try to build

Occasionally in my zeal to get things out I don't build to all platforms. Here are some fixes that you can apply until the patch is out.

 

v1.0.1

Issue: The AirMovement_Float doesn't wrap the draw inspector call in #IF UNITY_EDITOR tags.

 

To fix, change:

        /// <summary>
        /// Draws the inspector.
        /// </summary>
        new public static MovementVariable[] DrawInspector(MovementVariable[] movementDataref bool showDetailsCharacter target)
        {
            // Same as base class.
            return AirMovement_JetPack.DrawInspector (movementDataref showDetailstarget); 
        }

To:

 

#if UNITY_EDITOR
        /// <summary>
        /// Draws the inspector.
        /// </summary>
        new public static MovementVariable[] DrawInspector(MovementVariable[] movementDataref bool showDetailsCharacter target)
        {
            // Same as base class.
            return AirMovement_JetPack.DrawInspector (movementDataref showDetailstarget); 
        }
#endif

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk