void Add( string tag )
void Add( ITagSet set )

robot_2Generated
code_blocksInput

Description

The Add method is a member of the ITagSet interface in the Sandbox namespace. This method is used to add a tag to the tag set. Tags are typically used to categorize or label objects within a game environment, allowing for easier management and retrieval.

Usage

To use the Add method, you need to have an instance of a class that implements the ITagSet interface. You can then call the Add method on this instance, passing the tag you wish to add as a string parameter.

Ensure that the tag you are adding is a valid string and does not already exist in the set if duplicates are not desired.

Example

// Assuming 'tagSet' is an instance of a class implementing ITagSet
string tagToAdd = "Player";
tagSet.Add(tagToAdd);

// This will add the tag "Player" to the tag set, if it is not already present.