Description
The DynamicColor
property specifies the tint color for an editor model instance when the entity it represents is dynamic. This property is part of the EditorModelAttribute
class, which is used to declare a model to represent an entity in the editor.
Usage
To use the DynamicColor
property, you need to apply the EditorModelAttribute
to a class that represents an entity in your game. You can then set the DynamicColor
property to define the tint color for the model when the entity is dynamic.
Example
[EditorModelAttribute(Model = "models/my_model.vmdl", DynamicColor = Color.Red)]
public class MyDynamicEntity : Entity
{
// Entity logic here
}