The Value
field of the StringToken
struct represents the tokenized form of a string. It is a UInt32
value that is used internally to optimize string operations by converting strings into a more efficient format for comparison and storage.
The Value
field of the StringToken
struct represents the tokenized form of a string. It is a UInt32
value that is used internally to optimize string operations by converting strings into a more efficient format for comparison and storage.
Use the Value
field to access the tokenized representation of a string when working with the StringToken
struct. This field is public and can be accessed directly, but it is typically managed through the StringToken
struct's methods.
// Example of using the StringToken struct // Create a StringToken using the Literal method StringToken token = StringToken.Literal("example", 12345); // Access the token's value uint tokenValue = token.Value; // Output the token value // Note: Avoid using Console.WriteLine in Sandbox // Instead, use the appropriate logging or debugging tools // Debug.Log(tokenValue);