Search Results for

    Show / Hide Table of Contents

    Class ModularInspectorAttribute

    Allows us to build custom Inspectors using a modular approach, making them easier to maintain and easier to extend

    Inheritance
    Object
    Attribute
    ModularInspectorAttribute
    Namespace: NinjaTools.FlexBuilder.LayoutAlgorithms
    Assembly: cs.temp.dll.dll
    Syntax
    public class ModularInspectorAttribute : Attribute, _Attribute

    Constructors

    - (void) ModularInspectorAttribute(Type, Int32, Boolean)

    Parameters
    Type typeToInspect
    Int32 priority
    Boolean needsSerialized

    Fields

    - (Boolean) needsSerializedObject

    - (Int32) priority

    Methods

    - (Boolean) InspectsType(Type)

    Parameters
    Type t
    Returns
    Boolean

    - (void) InvokeInspectorModulesFor(IModularInspector, SerializedObject, Object, VisualElement, Action)

    Finds all the methods that are tagged "[ModularInspector]" that match the type of the supplied object-to-inspect.

    Methods should have one of the following signatures (anything else will cause an Exception):

    TaggedMethod( VisualElement Container, SerializedObject serializedObject, Object objectToInspect, Action callbackToRefreshWholeInspector) TaggedMethod( VisualElement Container, Object objectToInspect, Action callbackToRefreshWholeInspector)

    Parameters
    IModularInspector inspector
    SerializedObject serializedObject
    Object inspectedObject
    VisualElement localRoot
    Action rebuildRootVisualElement
    In This Article
    Back to top http://flexbuilder.ninja