Class PortSystemGraphEditor
PortSystemGraphEditor represents visuals of the SystemGraph typed port. Implements the PortEditor<T>
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
[InitializeOnLoad]
public class PortSystemGraphEditor : PortEditor<PortTypeSystemGraphAsset>
Constructors
PortSystemGraphEditor(INodeEditor, String, String, String, Object, PortDirection, FieldExtra, Boolean)
Initializes a new instance of the PortSystemGraphEditor class.
Declaration
public PortSystemGraphEditor(INodeEditor owner, string memberName, string displayName, string tooltip, object dataBind, PortDirection portDirection, FieldExtra fieldRW, bool promiscuous = false)
Parameters
| Type | Name | Description |
|---|---|---|
| INodeEditor | owner | The owner. |
| String | memberName | Name of the member. |
| String | displayName | The display name. |
| String | tooltip | The tooltip. |
| Object | dataBind | The data bind. |
| PortDirection | portDirection | The port direction. |
| FieldExtra | fieldRW | The field extra settings. |
| Boolean | promiscuous | if set to |
Methods
HandleCreate(IPortEditor)
Handles the creation.
Declaration
public static void HandleCreate(IPortEditor self)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
HandleRefreshEditor(IPortEditor, VisualElement, Boolean)
Handles the refresh of the editor.
Declaration
public static bool HandleRefreshEditor(IPortEditor self, VisualElement port, bool forceHide)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
| VisualElement | port | The port. |
| Boolean | forceHide | if set to |
Returns
| Type | Description |
|---|---|
| Boolean |
|
HandleSpawnEditor(IPortEditor, VisualElement)
Handles the spawn of the editor.
Declaration
public static bool HandleSpawnEditor(IPortEditor self, VisualElement port)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortEditor | self | This instance. |
| VisualElement | port | The port. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
See Also
PortEditor<T>