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
ClutterGridSystem
chevron_left
Classes
class
ClutterGridSystem
search
Constructors
functions
ClutterGridSystem
Properties
data_object
Storage
Methods
functions
ClearAllPainted
functions
ClearComponent
functions
Erase
functions
Flush
functions
InvalidateTileAt
functions
InvalidateTilesInBounds
functions
Paint
ClutterGridSystem
Game object system that manages clutter generation. Handles infinite streaming layers and executes generation jobs.
class
Sandbox.Clutter
.
account_tree
extends
GameObjectSystem
sealed
Sandbox.Engine
build
Constructors
1
ClutterGridSystem
(
scene
)
data_object
Properties
1
Storage
ClutterStorage
Storage for painted clutter model instances. Serialized with the scene - this is the source of truth for painted clutter.
functions
Methods
7
ClearAllPainted
(
)
Clears all painted clutter (both model instances from storage and prefab GameObjects). Does not affect clutter owned by ClutterComponent volumes.
ClearComponent
(
component
)
Clears all tiles for a specific component.
Erase
(
pos
,
radius
)
Erase instances. Rebuilds on next frame update. Erases both model batches and prefab GameObjects.
Flush
(
)
Flush painted changes and rebuild visual batches immediately.
InvalidateTileAt
(
component
,
worldPosition
)
Invalidates the tile at the given world position for a component, causing it to regenerate.
InvalidateTilesInBounds
(
component
,
bounds
)
Invalidates all tiles within the given bounds for a component, causing them to regenerate.
Paint
(
entry
,
pos
,
rot
,
scale
)
Paint instance. Rebuilds on next frame update. Models are batched, Prefabs become GameObjects.
Inheritance
GameObjectSystem
ClutterGridSystem
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.