Class InspectorEditor
Runtime inspector editor details. Editor extensions for bindings, properties.
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()