string Category { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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.

Example

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