Class ModularInspectorAttribute
Allows us to build custom Inspectors using a modular approach, making them easier to maintain and easier to extend
Namespace: NinjaTools.FlexBuilder.LayoutAlgorithms
Assembly: cs.temp.dll.dll
Syntax
public class ModularInspectorAttribute : Attribute, _Attribute
Constructors
Fields
Methods
- (Boolean) InspectsType(Type)
- (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 |