docs.unity.cn
    Show / Hide Table of Contents

    Class InspectorEditor

    Runtime inspector editor details. Editor extensions for bindings, properties.

    Inheritance
    Object
    InspectorEditor
    Namespace: Mechatronics.SystemGraph
    Syntax
    public class InspectorEditor

    Constructors

    InspectorEditor(Editor)

    Creates an inspector editor.

    Declaration
    public InspectorEditor(Editor editor)
    Parameters
    Type Name Description
    Editor editor

    Editor in which this inspector editor will be a part of.

    Fields

    InspectorExtensions

    Extensions registered to be appended to this inspector.

    Declaration
    public InspectorEditor.DelegateInspectorExtensions InspectorExtensions
    Field Value
    Type Description
    InspectorEditor.DelegateInspectorExtensions

    SystemGraphAsset

    Asset referenced by this component.

    Declaration
    public SerializedProperty SystemGraphAsset
    Field Value
    Type Description
    SerializedProperty

    Methods

    Enable()

    Initialize the inspector editor, must be called from OnEnable of the parent Editor instance.

    Declaration
    public void Enable()

    GetNodeName(SerializedNode)

    Get the name of a node by its GUID.

    Declaration
    public string GetNodeName(SerializedNode node)
    Parameters
    Type Name Description
    SerializedNode node

    The serialized node.

    Returns
    Type Description
    String

    Name of the serialized node.

    HierarchyWindowItemCallback(Int32, Rect)

    This callback handles the drag and drop of the SystemGraph asset file into the hierarchy window.

    Declaration
    public static void HierarchyWindowItemCallback(int pID, Rect pRect)
    Parameters
    Type Name Description
    Int32 pID

    Id of control

    Rect pRect

    Rect of control

    InspectorGUI()

    The default GUI loop for this inspector, must be called from the OnInspectorGUI of the parent Editor instance.

    Declaration
    public void InspectorGUI()

    OnDestroy()

    Clean up on exit.

    Declaration
    public void OnDestroy()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use