Table of Contents

Class FlowNode_CastT<TFrom, TTo>

Namespace
Ceres.Flow.Utilities
Assembly
Ceres.Flow.dll

Casting a value from type TFrom to type TTo.

[CeresGroup("Utilities")]
[CeresLabel("Cast to {0}")]
[NodeInfo("Attempts to cast the source value to the selected target type, with separate success and failure execution outputs.")]
[CeresMetadata(new string[] { "style = ConstNode" })]
public class FlowNode_CastT<TFrom, TTo> : ForwardNode, IEnumerable<CeresNode>, IEnumerable, IDisposable where TTo : TFrom

Type Parameters

TFrom
TTo
Inheritance
FlowNode_CastT<TFrom, TTo>
Implements
Inherited Members

Constructors

FlowNode_CastT()

public FlowNode_CastT()

Fields

castFailed

[OutputPort(false)]
[CeresLabel("Cast Failed")]
public NodePort castFailed

Field Value

NodePort

exec

[OutputPort(false)]
[CeresLabel("")]
public NodePort exec

Field Value

NodePort

resultValue

[OutputPort(true)]
[CeresLabel("Result")]
public CeresPort<TTo> resultValue

Field Value

CeresPort<TTo>

sourceValue

[InputPort(false)]
[HideInGraphEditor]
[CeresLabel("Source")]
public CeresPort<TFrom> sourceValue

Field Value

CeresPort<TFrom>

Methods

Execute(ExecutionContext)

protected override sealed 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()