# Sandbox.SceneObject

A model scene object that can be rendered within a [Sandbox.SceneWorld](/api/Sandbox.SceneWorld).

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`

## Constructors

- [`SceneObject`](/api/Sandbox.SceneObject/.ctor)

## Fields

- [`ClipPlane`](/api/Sandbox.SceneObject/ClipPlane): Clipping plane for this scene object. Requires [Sandbox.SceneObject.ClipPlaneEnabled](/api/Sandbox.SceneObject/ClipPlaneEnabled) to be `true`.
- [`ClipPlaneEnabled`](/api/Sandbox.SceneObject/ClipPlaneEnabled): Whether or not to use the clipping plane defined in [Sandbox.SceneObject.ClipPlane](/api/Sandbox.SceneObject/ClipPlane).

## Properties

- [`Attributes`](/api/Sandbox.SceneObject/Attributes)
- [`Batchable`](/api/Sandbox.SceneObject/Batchable): This object is not batchable by material for some reason ( example: has dynamic attributes that affect rendering )
- [`Bounds`](/api/Sandbox.SceneObject/Bounds): Set or get the axis aligned bounding box for this object.
- [`ColorTint`](/api/Sandbox.SceneObject/ColorTint): Color tint of this scene object.
- [`Flags`](/api/Sandbox.SceneObject/Flags): Access to various advanced scene object flags.
- [`LocalBounds`](/api/Sandbox.SceneObject/LocalBounds): Set the axis aligned bounding box by transforming by this objects transform.
- [`MeshGroupMask`](/api/Sandbox.SceneObject/MeshGroupMask): State of all bodygroups of this object's model. You might be looking for [Sandbox.SceneModel.SetBodyGroup](/api/Sandbox.SceneModel/SetBodyGroup).
- [`Model`](/api/Sandbox.SceneObject/Model): The model this scene object will render.
- [`Parent`](/api/Sandbox.SceneObject/Parent): Movement parent of this scene object, if any.
- [`Position`](/api/Sandbox.SceneObject/Position): Position of this scene object, relative to its [Sandbox.SceneObject.Parent](/api/Sandbox.SceneObject/Parent), or [Sandbox.SceneWorld](/api/Sandbox.SceneWorld) if parent is not set.
- [`RenderingEnabled`](/api/Sandbox.SceneObject/RenderingEnabled): Whether this scene object should render or not.
- [`RenderLayer`](/api/Sandbox.SceneObject/RenderLayer): For a layer to draw this object, the target layer must match (or be unset) and the flags must match
- [`Rotation`](/api/Sandbox.SceneObject/Rotation): Rotation of this scene object, relative to its [Sandbox.SceneObject.Parent](/api/Sandbox.SceneObject/Parent), or [Sandbox.SceneWorld](/api/Sandbox.SceneWorld) if parent is not set.
- [`Tags`](/api/Sandbox.SceneObject/Tags): List of tags for this scene object.
- [`Transform`](/api/Sandbox.SceneObject/Transform): Transform of this scene object, relative to its [Sandbox.SceneObject.Parent](/api/Sandbox.SceneObject/Parent), or [Sandbox.SceneWorld](/api/Sandbox.SceneWorld) if parent is not set.
- [`World`](/api/Sandbox.SceneObject/World): The scene world this object belongs to.

## Methods

- [`AddChild`](/api/Sandbox.SceneObject/AddChild): Add a named child scene object to this one. The child scene object will have its parent set.
- [`ClearMaterialOverride`](/api/Sandbox.SceneObject/ClearMaterialOverride): Clear all material replacements.
- [`Delete`](/api/Sandbox.SceneObject/Delete): Delete this scene object. You shouldn't access it anymore.
- [`GetGameObject`](/api/Sandbox.SceneObject/GetGameObject)
- [`RemoveChild`](/api/Sandbox.SceneObject/RemoveChild): Unlink given scene object as a child from this one. The child scene object will have its parent set to null. It will not be deleted.
- [`SetComponentSource`](/api/Sandbox.SceneObject/SetComponentSource)
- [`SetMaterialGroup`](/api/Sandbox.SceneObject/SetMaterialGroup): Set material group to replace materials of the model as set up in ModelDoc.
- [`SetMaterialOverride`](/api/Sandbox.SceneObject/SetMaterialOverride): Override all materials on this object's [Sandbox.SceneObject.Model](/api/Sandbox.SceneObject/Model).
