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 that represents an entity in your game. Set the Model property to the desired model's path or identifier. This will ensure that the specified model is displayed in the editor when working with the entity.

Example

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