Class PortalInputNode<TData>
Base class for all portal input nodes, taking care of common logic. Each portal type will need to
sub-class a pair of this and PortalOutputNode<TData, TInputNode>. Due to Unity not
supporting file-local identifiers for .cs files, implementations have to live in separate source
files, so they can be assigned distinct GUIDs for serialization.
Inheritance
XNode.Node
PortalInputNode<TData>
Assembly: Holoride.ElasticSDK.Runtime.dll
[DefaultNodeName("Portal Input")]
[DefaultPreviewVisibility(false)]
[HelpURL("http://localhost:8080/articles/Procedural-Generation/Graph-Node-Overview.html#portal-input")]
public abstract class PortalInputNode<TData> : Node, IPortalInputNode where TData : Node
Type Parameters
Name |
Description |
TData |
The type of the data passed through this portal.
|
Fields
Defines the input port for this portal input.
Declaration
[SerializeField]
[Node.Input(Node.ShowBackingValue.Never, Node.ConnectionType.Override, Node.TypeConstraint.Strict, false, false, Optional = false)]
protected TData Input
Field Value
Declaration
[InspectorName("Name")]
[SerializeField]
protected string PortalName
Field Value
Methods
Returns a value based on requested port output.
Declaration
public override object GetValue(NodePort port)
Parameters
Type |
Name |
Description |
XNode.NodePort |
port |
The requested port.
|
Returns
Overrides
XNode.Node.GetValue(XNode.NodePort)
Explicit Interface Implementations
Declaration
IEnumerable<IPortalOutputNode> IPortalInputNode.FindOutputNodes()
Returns
Declaration
IEnumerable<NodePort> IPortalInputNode.GetInputSourcePorts()
Returns
Declaration
string IPortalInputNode.PortalName { get; }
Returns
Implements