Class FlowNode_CastT<TFrom, TTo>
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
TFromTTo
- 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
exec
[OutputPort(false)]
[CeresLabel("")]
public NodePort exec
Field Value
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
executionContextExecutionContext
Returns
- UniTask
__getTypeName()
protected override string __getTypeName()
Returns
__initializePorts()
protected override void __initializePorts()
__initializeVariables()
protected override void __initializeVariables()