Unit Reference AsUnit - RealityStop/Bolt.Addons.Community GitHub Wiki
The As node attempts to convert a given value into the specified type.
It is useful when you need to cast or transform values at runtime to ensure compatibility with other parts of your graph.
If the conversion cannot be performed, the node will throw an error during execution.
Note: This node is mainly intended for use with the C# Generator.
The same functionality can often be achieved with the built-in Convert node.
Input Ports
- Value : The input object to be converted.
Output Ports
- Result : The converted value, typed as the target type specified in the node’s inspector.
Properties
- Type : The target type that the value will be converted into. This is set in the inspector.