class
EditorModelAttribute
public class EditorModelAttribute : Attribute Declare a model to represent this entity in editor. This is a common attribute so it's leaked out of the Editor namespace.
Constructors
EditorModelAttribute(String model, String staticColor, String dynamicColor) Properties
| Name | Type | Description |
|---|---|---|
Model | String | The model to display in the editor. |
CastShadows | Boolean | Whether the model should cast shadows in the editor. |
FixedBounds | Boolean | Don't reorient bounds. This is used for things that have fixed bounds in the game, like info_player_start. |
StaticColor | Color | Tint color for this editor model instance when the entity it represents is static. |
DynamicColor | Color | Tint color for this editor model instance when the entity it represents is dynamic. |
Assembly:
Sandbox.System Full Name: EditorModelAttribute