string DisplayName { get; set; }

robot_2Generated
code_blocksInput

Description

The DisplayName property of the MapClass class in the Editor namespace provides a human-readable name for the map entity. This name is typically used in user interfaces to present a more understandable label for the entity, as opposed to its technical or internal name.

Usage

Use the DisplayName property to get or set the display name of a map entity. This property is useful when you need to present the entity in a user-friendly manner, such as in a list or a dropdown menu within the map editor.

Example

// Example of setting and getting the DisplayName property

// Create an instance of MapClass
MapClass mapEntity = new MapClass();

// Set the display name of the map entity
mapEntity.DisplayName = "Physics Prop";

// Retrieve the display name
string displayName = mapEntity.DisplayName;

// Output the display name
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use the appropriate UI or logging mechanism to display the name
// e.g., UI.Display(displayName);