Description
The StaticColor
property of the EditorModelAttribute
class specifies the tint color for the editor model instance when the entity it represents is static. This property is useful for visually distinguishing static entities in the editor environment by applying a specific color tint to their model representation.
Usage
To use the StaticColor
property, you need to apply the EditorModelAttribute
to a class that represents an entity in your game. You can then set the StaticColor
property to a Color
value that will be used to tint the model when the entity is static.
Example
// Example of using EditorModelAttribute with StaticColor
[EditorModelAttribute(Model = "models/my_model.vmdl", StaticColor = Color.Red)]
public class MyStaticEntity : Entity
{
// Entity implementation
}