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 schoolTutorials
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
ClutterEntry
chevron_left Classes
class
ClutterEntry

Constructors

functionsClutterEntry

Properties

data_objectAssetNamedata_objectHasAssetdata_objectModeldata_objectPrefabdata_objectWeight
ClutterEntry
Represents a single weighted entry in a Sandbox.Clutter.ClutterDefinition. Contains either a Prefab or Model reference along with spawn parameters.
class Sandbox.Clutter .
Sandbox.Engine

build Constructors 1

ClutterEntry ()

data_object Properties 5

AssetName
string
Returns the primary asset reference as a string for debugging.
HasAsset
bool
Returns whether this entry has a valid asset to spawn.
Model
Model
Model to spawn as a static prop. Only used if Sandbox.Clutter.ClutterEntry.Prefab is null.
Prefab
GameObject
Prefab to spawn. If set, this takes priority over Sandbox.Clutter.ClutterEntry.Model.
Weight
float
Relative weight for random selection. Higher values = more likely to be chosen.
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