s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Classes
ClutterEntry
chevron_left Classes
class
ClutterEntry

Constructors

functionsClutterEntry

Properties

data_objectAssetNamedata_objectCastShadowsdata_objectEnablePhysicsdata_objectHasAssetdata_objectLocalScaledata_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 8

AssetName
string
Returns the primary asset reference as a string for debugging.
CastShadows
bool
Whether instances of this entry cast shadows.
EnablePhysics
bool
Whether instances of this entry get a physics collision body. Only affects model-based entries - prefab entries bring their own physics via their own components.
HasAsset
bool
Returns whether this entry has a valid asset to spawn.
LocalScale
float
Uniform scale multiplier applied on top of whatever scale the scatterer picks per instance.
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter