Search Results for

    Show / Hide Table of Contents

    Class ValidatorProject

    Project-level auto-fix features that have to be invoked from Runtime classes, so cannot be placed in the .Editor namespaces

    Inheritance
    Object
    ValidatorProject
    Namespace: NinjaTools.FlexBuilder
    Assembly: cs.temp.dll.dll
    Syntax
    public class ValidatorProject

    Methods

    - (void) ExceptionUpgradeRequired(String)

    Centralised method for runtime classes to warn about a need for definite upgrade (hard, throws exception / displays popup dialog modal)

    Parameters
    String message
    Exceptions
    Exception

    - (Boolean) IsARootedFlexTree(BFlexComponent)

    FlexItems can exist as orphans; FlexContainers can exist without an ancestor RootFlexContainer; but the CSS/FlexBox algorithm can only run for FlexItems/FlexContainers that exist in a Unity tree of parented objects where the topmost object is a RootFlexContainer. This method checks that reality, and when this method returns false: rendering/layout should be ignored or suspended, since you do NOT have a valid Flexbox tree to layout.

    Parameters
    BFlexComponent flex
    Returns
    Boolean

    - (Boolean) IsInPrefabEditingView(BFlexComponent)

    Unity made this difficult to use, by repeatedly changing their nested-prefab implementation, and never properly planning the APIs. By trial and error (i.e. this could fail for some edge-cases) this appears to be correct: it returns true iff the object provided is being edited in prefab view OR is a prefab in the project BUT NOT an object in the scene.

    Parameters
    BFlexComponent flex
    Returns
    Boolean

    - (void) WarnUpgradeRequired(String)

    Centralised method for runtime classes to warn about a need for probable upgrade (soft, console-only)

    Parameters
    String message
    In This Article
    Back to top http://flexbuilder.ninja