m reword example caption slightly better |
m Update to new script name space |
||
Line 1: | Line 1: | ||
[[Category:NodeMenu]] | [[Category:NodeMenu]] | ||
{{#Invoke: | {{#Invoke:ProtoFlux|GenerateUI | ||
Name=To String | |Name=To String | ||
|Inputs= | |Inputs= | ||
[ | [ |
Revision as of 21:46, 13 January 2024
To String
Usage
You can use this node for turning values into strings, even an object. Turning an object into a string is useful for taking what you see in a display node for a value directly into a string object. You can also use this for huds, like turning your FPS into text for a display, or readouts of objects or values.
Inputs
V (Generic)
The value to turn into a string.
Format (String)
FormatProvider (IFormatProvider)
The locale to use for the output. Defaults to the invariant culture.
Outputs
* (String)
The value as a string following the format.
Examples
-
Four examples of converting various primitives to string. Three of the examples use Standard Numeric Format Strings.
-
Four examples of converting various objects to string. Note how, in general, the output matches what the display node outputs.