s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
SceneObject
chevron_left
Classes
class
SceneObject
search
Constructors
functions
SceneObject
Fields
remove_circle
ClipPlane
remove_circle
ClipPlaneEnabled
Properties
data_object
Attributes
data_object
Batchable
data_object
Bounds
data_object
ColorTint
data_object
Flags
data_object
LocalBounds
data_object
MeshGroupMask
data_object
Model
data_object
Parent
data_object
Position
data_object
RenderingEnabled
data_object
RenderLayer
data_object
Rotation
data_object
Tags
data_object
Transform
data_object
World
Methods
functions
AddChild
functions
ClearMaterialOverride
functions
Delete
remove_circle
GetGameObject
functions
RemoveChild
remove_circle
SetComponentSource
functions
SetMaterialGroup
functions
SetMaterialOverride
SceneObject
A model scene object that can be rendered within a Sandbox.SceneWorld.
class
Sandbox
.
Sandbox.Engine
build
Constructors
1
SceneObject
(
sceneWorld
,
model
)
crop_din
Fields
2
ClipPlane
obsolete
Plane
Clipping plane for this scene object. Requires Sandbox.SceneObject.ClipPlaneEnabled to be
true
.
ClipPlaneEnabled
obsolete
bool
Whether or not to use the clipping plane defined in Sandbox.SceneObject.ClipPlane.
data_object
Properties
16
Attributes
RenderAttributes
Batchable
bool
This object is not batchable by material for some reason ( example: has dynamic attributes that affect rendering )
Bounds
BBox
Set or get the axis aligned bounding box for this object.
ColorTint
Color
Color tint of this scene object.
Flags
SceneObjectFlagAccessor
Access to various advanced scene object flags.
LocalBounds
BBox
Set the axis aligned bounding box by transforming by this objects transform.
MeshGroupMask
UInt64
State of all bodygroups of this object's model. You might be looking for Sandbox.SceneModel.SetBodyGroup(System.String,System.Int32).
Model
Model
The model this scene object will render.
Parent
SceneObject
Movement parent of this scene object, if any.
Position
Vector3
Position of this scene object, relative to its Sandbox.SceneObject.Parent, or Sandbox.SceneWorld if parent is not set.
RenderingEnabled
bool
Whether this scene object should render or not.
RenderLayer
SceneRenderLayer
For a layer to draw this object, the target layer must match (or be unset) and the flags must match
Rotation
Rotation
Rotation of this scene object, relative to its Sandbox.SceneObject.Parent, or Sandbox.SceneWorld if parent is not set.
Tags
ITagSet
List of tags for this scene object.
Transform
Transform
Transform of this scene object, relative to its Sandbox.SceneObject.Parent, or Sandbox.SceneWorld if parent is not set.
World
SceneWorld
The scene world this object belongs to.
functions
Methods
8
AddChild
(
name
,
child
)
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.
GetGameObject
(
)
obsolete
GameObject
RemoveChild
(
child
)
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
(
c
)
obsolete
SetMaterialGroup
(
name
)
Set material group to replace materials of the model as set up in ModelDoc.
SetMaterialOverride
(
material
)
Override all materials on this object's Sandbox.SceneObject.Model.
Inheritance
SceneObject
SceneCustomObject
SceneLineObject
TextSceneObject
SceneDynamicObject
SceneLight
SceneCubemap
SceneDirectionalLight
ScenePointLight
SceneSpotLight
SceneModel
SceneParticles
SceneSkyBox
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.