TypeDescription TypeDescription { get; set; }

robot_2Generated
code_blocksInput

Description

The TypeDescription property of the MapEntity class provides a description of the type of the entity. This property is part of the Editor.MapDoc namespace and is used to access metadata about the entity type, which can be useful for reflection or dynamic type handling within the editor environment.

Usage

To access the TypeDescription property, you need to have an instance of the MapEntity class. This property is read-only and provides information about the entity's type.

Example

// Assuming 'entity' is an instance of MapEntity
Sandbox.TypeDescription typeDescription = entity.TypeDescription;

// Use the type description for reflection or other purposes
Console.WriteLine($"Entity Type: {typeDescription.Name}");