API Referenceglobal
public class EditorModelAttribute : System.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
Showing 1 constructors
public EditorModelAttribute(string model, string staticColor = white, string dynamicColor = white)
Parameters
staticColor: Default: whitedynamicColor: Default: white
No results match this filter.
Properties
Showing 5 properties
public bool EditorModelAttribute.CastShadows { get; set; }
Whether the model should cast shadows in the editor.
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.
public string EditorModelAttribute.Model { get; set; }
The model to display in the editor.
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.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:EditorModelAttribute |