API Referenceglobal
EditorModelAttributeclass
Declare a model to represent this entity in editor. This is a common attribute so it's leaked out of the Editor namespace.
Constructors1
Showing 1 constructors
public EditorModelAttribute(string model, string staticColor = white, string dynamicColor = white)
| Parameter | Type | Description |
|---|---|---|
| model | string | — |
| staticColor = white | string | — |
| dynamicColor = white | string | — |
No results match this filter.
Properties5
Showing 5 properties
public bool EditorModelAttribute.CastShadows { get; set; }
Whether the model should cast shadows in the editor.
Returns:
bool—public Color EditorModelAttribute.DynamicColor { get; set; }
Tint color for this editor model instance when the entity it represents is dynamic.
public bool EditorModelAttribute.FixedBounds { get; set; }
Don't reorient bounds. This is used for things that have fixed bounds in the game, like info_player_start.
Returns:
bool—public string EditorModelAttribute.Model { get; set; }
The model to display in the editor.
Returns:
string—public Color EditorModelAttribute.StaticColor { get; set; }
Tint color for this editor model instance when the entity it represents is static.
No results match this filter.