EditorModelAttributeclass

Declare a model to represent this entity in editor. This is a common attribute so it's leaked out of the Editor namespace.

objectAttributeEditorModelAttribute
Namespace
global
Assembly
Sandbox.System
Declaration
public class EditorModelAttribute : System.Attribute

Constructors1

Showing 1 constructors

public EditorModelAttribute(string model, string staticColor = white, string dynamicColor = white)PUBLICCONSTRUCTOR

ParameterTypeDescription
modelstring
staticColor = whitestring
dynamicColor = whitestring

Properties5

Showing 5 properties

public bool EditorModelAttribute.CastShadows { get; set; }PUBLICGETSET

Whether the model should cast shadows in the editor.

Returns:bool

public Color EditorModelAttribute.DynamicColor { get; set; }PUBLICGETSET

Tint color for this editor model instance when the entity it represents is dynamic.

Returns:Color

public bool EditorModelAttribute.FixedBounds { get; set; }PUBLICGETSET

Don't reorient bounds. This is used for things that have fixed bounds in the game, like info_player_start.

Returns:bool

public Color EditorModelAttribute.StaticColor { get; set; }PUBLICGETSET

Tint color for this editor model instance when the entity it represents is static.

Returns:Color

On this page