Class FlowNode_ArrayRandomElementT<T>
[CeresGroup("Utilities/Array")]
[CeresLabel("Random Element")]
[NodeInfo("Outputs a random item from the array and its index.")]
[CeresMetadata(new string[] { "style = ConstNode", "path = Dependency" })]
public sealed class FlowNode_ArrayRandomElementT<T> : ExecutableNode, IEnumerable<CeresNode>, IEnumerable, IDisposable
Type Parameters
T
- Inheritance
-
FlowNode_ArrayRandomElementT<T>
- Implements
- Inherited Members
Constructors
FlowNode_ArrayRandomElementT()
public FlowNode_ArrayRandomElementT()
Fields
array
[InputPort(true)]
[CeresLabel("")]
[HideInGraphEditor]
public CeresPort<IReadOnlyList<T>> array
Field Value
index
[OutputPort(true)]
[CeresLabel("Index")]
public CeresPort<int> index
Field Value
item
[OutputPort(true)]
[CeresLabel("Item")]
public CeresPort<T> item
Field Value
- CeresPort<T>
Methods
Execute(ExecutionContext)
protected override UniTask Execute(ExecutionContext executionContext)
Parameters
executionContextExecutionContext
Returns
- UniTask
__getTypeName()
protected override string __getTypeName()
Returns
__initializePorts()
protected override void __initializePorts()
__initializeVariables()
protected override void __initializeVariables()