The Tags
property of the MapClass
class is a list of strings that serves as general-purpose tags. These tags can have special meanings within the Hammer editor and map compilers, allowing for categorization or special processing of map entities.
The Tags
property of the MapClass
class is a list of strings that serves as general-purpose tags. These tags can have special meanings within the Hammer editor and map compilers, allowing for categorization or special processing of map entities.
Use the Tags
property to assign or retrieve tags associated with a map entity. These tags can be used to influence how the entity is handled by the map editor or during map compilation.
// Example of setting tags for a MapClass instance MapClass myMapEntity = new MapClass(); myMapEntity.Tags.Add("interactive"); myMapEntity.Tags.Add("physics"); // Example of checking if a specific tag exists if (myMapEntity.Tags.Contains("interactive")) { // Perform actions specific to interactive entities }