class BoxAttribute

in global :: Sandbox . ModelEditor

Draws a box, which can be manipulated via gizmos. You can have multiple of these.


public bool HideSurface { get; set; }

If set, the semi-transparent box "walls" will not be drawn.

public bool ShowGizmos { get; set; }

If set, gizmos will be shown in transform mode to quickly move/scale the box. For "dimensions" box Origin/Angles must be set.

public BoxAttribute( string dimensionsKey )

Store the box's dimensions in a single key, acting as (maxs-mins) which assumes the box's center is at the models origin. The box's center can be set up to be movable via "Origin" property and rotatable via "Angles" property.

  • dimensionsKey Internal name of a key on the node that will store the dimensions of the box.

public BoxAttribute( string minsKey, string maxsKey )

Store the box's dimensions in 2 keys as Mins and Maxs. This type cannot be rotated.

  • minsKey Internal name of a key on the node that will store the mins of the box.
  • maxsKey Internal name of a key on the node that will store the maxs of the box.

public string Origin { get; set; }

😔 No documentation found.

public string Angles { get; set; }

😔 No documentation found.

public void AddHelpers( List<Tuple<string,string[]>> helpers )

😔 No documentation found.

public void AddTags( List<string> tags )

😔 No documentation found.

public string Bone { get; set; }

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public object TypeId { get; }

😔 No documentation found.

public bool Match( object obj )

😔 No documentation found.

public bool IsDefaultAttribute( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public string Attachment { get; set; }

😔 No documentation found.

public void AddMetaData( Dictionary<string,object> meta_data )

😔 No documentation found.