s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
SceneObject
SetMaterialOverride
chevron_left
Classes
class
SceneObject
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
SetMaterialOverride
Override all materials on this object's Sandbox.SceneObject.Model.
method
2 overloads
Overloads
1
2
void
SetMaterialOverride
(
Material
material
)
Parameters
Name
Type
Description
material
Material
‹
1
›
7 months ago
#1
DangerKiddy
Member
Joined
Jul 2021
Posts
8
Score
1,345
When GameObject gets toggled off and back on -> any material assigned through
SetMaterialOverride
resets
and you need to assign it
again
‹
1
›
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
SetMaterialOverrideresets and you need to assign it again