void RemoveAll()

robot_2Generated
code_blocksInput

Description

The RemoveAll method is a member of the GameTags class in the Sandbox API. This method is used to remove all tags from the current object. Tags are strings that can be associated with an entity to categorize or identify it in some way. This method clears all such associations, effectively resetting the tag state of the object.

Usage

To use the RemoveAll method, you need to have an instance of the GameTags class. Once you have this instance, you can call the method directly to remove all tags associated with that instance.

Example usage:

GameTags myGameTags = new GameTags();
// Add some tags to the object
myGameTags.Add("Player");
myGameTags.Add("Enemy");

// Now remove all tags
myGameTags.RemoveAll();

After calling RemoveAll, the object will have no tags associated with it.

Example

GameTags myGameTags = new GameTags();
// Add some tags to the object
myGameTags.Add("Player");
myGameTags.Add("Enemy");

// Now remove all tags
myGameTags.RemoveAll();