string Model { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Model property of the EditorModelAttribute class specifies the model to be displayed in the editor for a particular entity. This property is a string that typically contains the path or identifier of the model asset to be used.

Usage

To use the Model property, apply the EditorModelAttribute to a class or member that represents an entity in the game. Set the Model property to the desired model's path or identifier to ensure it is displayed correctly in the editor.

Example

[EditorModelAttribute(Model = "models/my_model.vmdl")]
public class MyEntity : Entity
{
    // Entity implementation
}