Class NodeExpandable<T>
Class NodeExpandable. Implements the NodeExpandable
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Mechatronics.SystemGraph
Syntax
[Obsolete("Please use non generic NodeExpandable instead")]
[Serializable]
public class NodeExpandable<T> : NodeExpandable where T : class
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
GetDynamicPort(String)
Gets the dynamic port.
Declaration
public T GetDynamicPort(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name. |
Returns
| Type | Description |
|---|---|
| T | T. |
OnPortAdded(String, Type, String, PortDirection, FieldExtra, ref IPortType)
PortAddition event recieved from the editor during edit mode if ExpandablePorts attribute is set. By default this function will accept all ports.
Declaration
public override bool OnPortAdded(string entryName, Type portType, string tooltip, PortDirection direction, FieldExtra extra, ref IPortType portReference)
Parameters
| Type | Name | Description |
|---|---|---|
| String | entryName | The name of the new port |
| Type | portType | Type of the port object |
| String | tooltip | The tooltip. |
| PortDirection | direction | The direction. |
| FieldExtra | extra | The extra. |
| IPortType | portReference | The port reference. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if the port is accepted |