Struct MessageContext
A context provided to a node's OnMessage<T>(MessageContext, T) implementation which is invoked when a node receives a message on one of their MessageInputs.
Inherited Members
Namespace: Unity.DataFlowGraph
Syntax
public struct MessageContext
Fields
Handle
A handle to the node receiving a message.
Declaration
public readonly NodeHandle Handle
Field Value
Type | Description |
---|---|
NodeHandle |
Properties
ArrayIndex
If the above port ID corresponds to a PortArray<TInputPort>, this is the array index on which the message is being received.
Declaration
public ushort ArrayIndex { get; }
Property Value
Type | Description |
---|---|
UInt16 |
Port
The port ID of the MessageInput<TDefinition, TMsg> on which the message is being received.
Declaration
public InputPortID Port { get; }
Property Value
Type | Description |
---|---|
InputPortID |