Summary

A model scene object that can be rendered within a SceneWorld.

Constructors

SceneObject

Fields

ClipPlaneobsolete Clipping plane for this scene object. Requires Sandbox.SceneObject.ClipPlaneEnabled to be <c>true</c>.
ClipPlaneEnabledobsolete Whether or not to use the clipping plane defined in Sandbox.SceneObject.ClipPlane.

Properties

Attributes
Batchable This object is not batchable by material for some reason ( example: has dynamic attributes that affect rendering )
Bounds Set or get the axis aligned bounding box for this object.
ColorTint Color tint of this scene object.
Flags Access to various advanced scene object flags.
LocalBounds Set the axis aligned bounding box by transforming by this objects transform.
MeshGroupMask State of all bodygroups of this object's model. You might be looking for Sandbox.SceneModel.SetBodyGroup(System.String,System.Int32).
Model The model this scene object will render.
Parent Movement parent of this scene object, if any.
Position Position of this scene object, relative to its Sandbox.SceneObject.Parent, or Sandbox.SceneWorld if parent is not set.
RenderingEnabled Whether this scene object should render or not.
RenderLayer For a layer to draw this object, the target layer must match (or be unset) and the flags must match
Rotation Rotation of this scene object, relative to its Sandbox.SceneObject.Parent, or Sandbox.SceneWorld if parent is not set.
Tags List of tags for this scene object.
Transform Transform of this scene object, relative to its Sandbox.SceneObject.Parent, or Sandbox.SceneWorld if parent is not set.
World The scene world this object belongs to.

Methods

AddChild Add a named child scene object to this one. The child scene object will have its parent set.
ClearMaterialOverride Clear all material replacements.
Delete Delete this scene object. You shouldn't access it anymore.
GetGameObjectobsolete
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.
SetComponentSourceobsolete
SetMaterialGroup Set material group to replace materials of the model as set up in ModelDoc.
SetMaterialOverride Override all materials on this object's Sandbox.SceneObject.Model.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.