ProtoFlux:Value Cast: Difference between revisions

From Resonite Wiki
fix category
m lists are * not -
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
[[File:ProtoFlux_visuals_Value_Cast.png|alt=A picture of a value cast. Looks like a square object with one side a different color than the other, with a split down the middle that has a beveled edge. Though it's just an image so you can't actually feel such bevel in game even with detailed haptics.|thumb]]
[[File:ProtoFlux_visuals_Value_Cast.png|alt=A picture of a value cast. Looks like a square object with one side a different color than the other, with a split down the middle that has a beveled edge. Though it's just an image so you can't actually feel such bevel in game even with detailed haptics.|thumb]]


Value Cast is a ProtoFlux node that casts any [[Type:Value|Value]] or [[Type:Nullable`1|Nullable]] into an [[Type:Object|Object]].
The '''Value Cast''' node exists in two forms. In the '''Casts''' category, it casts any [[Type:Value|Value]] or [[Type:Nullable`1|Nullable]] into an [[Type:Object|Object]]. In the '''Core/Casts''' category, it exists as a menu for all valid casts between any two respective values, such as casting a [[Type:float4|float4]] into a [[Type:float3|float3]].


== Inputs ==
== Inputs ==


=== Input (Sudo-Generic) ===
=== Input (Pseudo-generic) ===


The type to turn into an [[Type:Object|Object]].
The [[Type:Value|Value]] or [[Type:Nullable`1|Nullable]] to cast.


Examples: any [[Type:Value|Value]] or any [[Type:Nullable`1|Nullable]]
=== * (Pseudo-generic) ===


=== * ([[Type:Object|Object]]) ===
<code>Input</code> casted to either an object, in the case of the <code>Casts/ValueCast</code> node, or to the respective output Value type, in the case of the <code>Core/Casts/ValueCast</code> node.


Input (Sudo-Generic) turned into an object.
== See Also ==
* [[ProtoFlux:Object Cast]]


[[Category:ProtoFlux:Casts]]
[[Category:ProtoFlux:Casts]]
[[Category:ProtoFlux:Core:Casts]]

Latest revision as of 19:28, 29 June 2024

HTML Visual replaced by image due to wiki limitations

A picture of a value cast. Looks like a square object with one side a different color than the other, with a split down the middle that has a beveled edge. Though it's just an image so you can't actually feel such bevel in game even with detailed haptics.

The Value Cast node exists in two forms. In the Casts category, it casts any Value or Nullable into an Object. In the Core/Casts category, it exists as a menu for all valid casts between any two respective values, such as casting a float4 into a float3.

Inputs

Input (Pseudo-generic)

The Value or Nullable to cast.

* (Pseudo-generic)

Input casted to either an object, in the case of the Casts/ValueCast node, or to the respective output Value type, in the case of the Core/Casts/ValueCast node.

See Also