s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
ClutterStorage
chevron_left Classes
class
ClutterStorage

Constructors

functionsClutterStorage

Properties

data_objectModelPathsdata_objectTotalCountdata_objectVersion

Methods

functionsAddInstancefunctionsAddInstancesfunctionsClearAllfunctionsClearModelfunctionsDeserializefunctionsErasefunctionsGetAllInstancesfunctionsGetInstancesfunctionsSerialize
menu
ClutterStorage
Manages storage and serialization of painted clutter instances. Uses binary serialization via BlobData for efficient storage.
class Sandbox.Clutter.ClutterGridSystem .account_tree extends BlobData
sealedSandbox.Engine

build Constructors 1

ClutterStorage ()

data_object Properties 3

ModelPaths
IEnumerable`1
Gets all model paths that have instances.
TotalCount
int
Gets the total number of instances across all models.
Version
int

functions Methods 9

AddInstance (modelPath, position, rotation, scale)
Adds a single instance for a model.
AddInstances (modelPath, instances)
ClearAll ()
Clears all instances.
ClearModel (modelPath)
bool
Clears all instances for a specific model.
Deserialize (reader)
Deserialize from binary format.
Erase (position, radius)
int
Erases all instances within a radius of a position.
GetAllInstances ()
IReadOnlyDictionary`2
Gets all instances grouped by model path.
GetInstances (modelPath)
IReadOnlyList`1
Gets instances for a specific model path.
Serialize (writer)
Serialize to binary format.

Inheritance

BlobData
ClutterStorage
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter