Summary

Represents a single weighted entry in a Clutter.ClutterDefinition. Contains either a Prefab or Model reference along with spawn parameters.

Constructors

ClutterEntry

Properties

AssetName Returns the primary asset reference as a string for debugging.
HasAsset Returns whether this entry has a valid asset to spawn.
Model Model to spawn as a static prop. Only used if Sandbox.Clutter.ClutterEntry.Prefab is null.
Prefab Prefab to spawn. If set, this takes priority over Sandbox.Clutter.ClutterEntry.Model.
Weight 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.