The StaticColor
property specifies the tint color for an editor model instance when the entity it represents is static. This property is part of the EditorModelAttribute
class, which is used to define how an entity is represented in the editor.
The StaticColor
property specifies the tint color for an editor model instance when the entity it represents is static. This property is part of the EditorModelAttribute
class, which is used to define how an entity is represented in the editor.
To use the StaticColor
property, you need to apply the EditorModelAttribute
to your entity class and set the StaticColor
to the desired Color
value. This will change the appearance of the model in the editor when the entity is static.
[EditorModelAttribute(Model = "models/my_model.vmdl", StaticColor = Color.Red)] public class MyEntity : Entity { // Entity implementation }