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.
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.
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.
[EditorModelAttribute(Model = "models/my_model.vmdl")] public class MyEntity : Entity { // Entity implementation }