String
Last updated
Last updated
You can use a string cast node to convert a string value to an integer or a float.
If the input can't be cast to the required type, the output is zero and an error is displayed on the node.
Inputs:
Input
String
The value to be converted.
Outputs:
Output
<varies> [editable]
The converted value. The output depends on the chosen node, and is either an integer or a float. If the cast is not valid, the output is zero.
Outputs true
in the frame where the input value changes.
Inputs:
Input
String
The string value to monitor.
Outputs:
Output
Boolean
True when the Input
changes, but resets to false at the end of the frame.
Outputs true is the input is either null or an empty string.
Inputs:
Input
String
The string value to monitor.
Outputs:
Output
Boolean
True when the Input
is either null (no input) or empty (zero length string).
Combines two strings into a single string.
Inputs:
A
String [editable]
The first string.
B
String [editable]
The second string.
Outputs:
Output
String
The combined string of A
followed by B
.
Converts a reference to a string component to a string value.
Inputs:
Input
String Component
Reference to a string component.
Outputs:
Output
String
The string value from the Input
component.
Assigns a value to a string component.
Inputs:
Enter
String
Flow to activate the node.
String Component
String Component
Reference to the string component for which a value will be set.
Value In
String [editable]
String value to assign to the component.
Outputs:
Exit
Flow
Continue the activating flow.
Output
String
Same as Value In
.
Outputs a string value. An AFX graph cannot change the value of this node.
You can open an AFX graph to change the value of this node in the Unity Editor.
Outputs:
Output
String [editable]
A string.
Tests for the occurrence of one string within another.
Inputs:
Input
String [editable]
The string to search within.
Contains
String [editable]
The string to search for.
Outputs:
Result
Boolean
True if Contains
occurs within Input
. False otherwise.
Tests whether a string occurs at the end of another string.
Inputs:
Input
String [editable]
The string to search.
Ends With
String [editable]
The string to search for at the end of Input
.
Outputs:
Result
Boolean
True if Ends With
occurs at the end of Input
. False otherwise.
Inserts a string into another string at the given index.
Inputs:
Input
String [editable]
The string to insert into.
Insert
String [editable]
The string to be inserted.
Index
Integer [editable]
The character index at which to insert the string. Strings are zero indexed.
Outputs:
Output
String
The combined string.
Removes a specified number of characters from a string, starting at a given index.
Inputs:
Input
String [editable]
The string value to monitor.
Index
Integer [editable]
The character index of the first character to remove. Strings are zero indexed.
Count
Integer [editable]
The number of strings to remove.
Outputs:
Output
String
The modified string.
Replaces all occurrences of a string within another string. The search is case sensitive.
Inputs:
Input
String [editable]
The initial string to search within.
Find
String [editable]
The string to find.
Replace
String [editable]
The string that will replace the found string.
Outputs:
Output
String
The modified string.
Tests for the occurrence of a string at the beginning of another string.
Inputs:
Input
String [editable]
The string to search within.
Starts With
String [editable]
The string to search for at the start of Input
.
Outputs:
Result
Boolean
True if Starts With
occurs at the beginning of Input
.
Extracts a given number of characters from a given location within a string.
Inputs:
Input
String [editable]
The string from which to extract characters.
Index
Integer [editable]
The character index of the first character to extract.
Count
Integer [editable]
The number of characters to extract.
Outputs:
Output
String
The extracted characters.
Converts a string to all lowercase characters.
Inputs:
Input
String
The string to modify.
Outputs:
Output
String
The value of Input
, but with all letters in lowercase.
Converts a string to all uppercase characters.
Inputs:
Input
String
The string to modify.
Outputs:
Output
String
The value of Input
, but with all letters in uppercase.