mNo edit summary |
m Move category tag |
||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=To String | |Name=To String | ||
Line 41: | Line 39: | ||
File:Protoflux_example_to_string_2.webp|Four examples of converting various objects to string. Note how, in general, the output matches what the display node outputs. | File:Protoflux_example_to_string_2.webp|Four examples of converting various objects to string. Note how, in general, the output matches what the display node outputs. | ||
</gallery> | </gallery> | ||
[[Category:ProtoFlux:Strings]] |
Revision as of 07:39, 14 January 2024
To String
Strings
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.