robot_2Generated
code_blocksInput

Description

The GetTokens method of the GameTags class returns a read-only set of unsigned integers. These integers represent the tags associated with a game object, which are used internally by the engine for efficient processing and networking. This method is virtual, allowing for potential overrides in derived classes.

Usage

Use the GetTokens method when you need to retrieve the internal representation of tags for a game object. This can be useful for debugging or when implementing custom logic that requires direct access to the tag tokens.

Example

// Assuming 'gameObject' is an instance of a class that has GameTags
var tokens = gameObject.GetTokens();

// Iterate through the tokens
foreach (var token in tokens)
{
    // Process each token
    // For example, log the token value
    // Log(token);
}