Table of Contents

Class FlowNode_ArrayRandomElementT<T>

Namespace
Ceres.Flow.Utilities
Assembly
Ceres.Flow.dll
[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

CeresPort<IReadOnlyList<T>>

index

[OutputPort(true)]
[CeresLabel("Index")]
public CeresPort<int> index

Field Value

CeresPort<int>

item

[OutputPort(true)]
[CeresLabel("Item")]
public CeresPort<T> item

Field Value

CeresPort<T>

Methods

Execute(ExecutionContext)

protected override UniTask Execute(ExecutionContext executionContext)

Parameters

executionContext ExecutionContext

Returns

UniTask

__getTypeName()

protected override string __getTypeName()

Returns

string

__initializePorts()

protected override void __initializePorts()

__initializeVariables()

protected override void __initializeVariables()