The Icon
property of the MapClass
class represents the icon associated with a map entity in the editor. This icon is typically a material that visually represents the entity within the editor interface.
The Icon
property of the MapClass
class represents the icon associated with a map entity in the editor. This icon is typically a material that visually represents the entity within the editor interface.
To use the Icon
property, you can get or set the icon material for a specific map entity. This is useful for customizing the appearance of entities in the map editor, making it easier to identify them visually.
// Example of setting the Icon property for a MapClass instance MapClass myMapClass = new MapClass(); myMapClass.Icon = "materials/icons/my_icon.vmat"; // Example of getting the Icon property string iconMaterial = myMapClass.Icon; // Use iconMaterial as needed, e.g., display it in the editor UI