# Sandbox.ModelEditor.BoxAttribute

Draws a box, which can be manipulated via gizmos. You can have multiple of these.

- Kind: attribute
- Namespace: `Sandbox.ModelEditor`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.ModelEditor.Internal.BaseTransformAttribute](/api/Sandbox.ModelEditor.Internal.BaseTransformAttribute)

## Constructors

- [`BoxAttribute`](/api/Sandbox.ModelEditor.BoxAttribute/.ctor): 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.

## Properties

- [`HideSurface`](/api/Sandbox.ModelEditor.BoxAttribute/HideSurface): If set, the semi-transparent box "walls" will not be drawn.
- [`ShowGizmos`](/api/Sandbox.ModelEditor.BoxAttribute/ShowGizmos): If set, gizmos will be shown in transform mode to quickly move/scale the box. For "dimensions" box Origin/Angles must be set.
