The Category
property of the MapClass
class represents the category to which the map entity belongs. This is typically used to organize entities within the map editor, allowing for easier navigation and management of different types of entities.
The Category
property of the MapClass
class represents the category to which the map entity belongs. This is typically used to organize entities within the map editor, allowing for easier navigation and management of different types of entities.
To access or modify the Category
property, you can use the following syntax:
MapClass mapEntity = new MapClass();
string currentCategory = mapEntity.Category; // Get the current category
mapEntity.Category = "NewCategory"; // Set a new category
Ensure that the category string is meaningful and consistent with other entities to maintain organization within the editor.
MapClass mapEntity = new MapClass(); mapEntity.Category = "Environment"; // Output the category to verify string category = mapEntity.Category; // Use the category in your logic, e.g., filtering entities by category