s&box docs

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: white
  • dynamicColor: Default: white

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 Color EditorModelAttribute.StaticColor { get; set; }

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

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.System
Doc IDT:EditorModelAttribute

On this page