Api Sandbox Clutter ClutterEntry
class

ClutterEntry

public class ClutterEntry

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

Constructors

ClutterEntry()

Properties

Name Type Description
Prefab GameObject Prefab to spawn. If set, this takes priority over Model.
Model Model Model to spawn as a static prop. Only used if Prefab is null.
Weight Single Relative weight for random selection. Higher values = more likely to be chosen.
HasAsset Boolean Returns whether this entry has a valid asset to spawn.
AssetName String Returns the primary asset reference as a string for debugging.
Assembly: Sandbox.Engine Namespace: Sandbox.Clutter Full Name: Sandbox.Clutter.ClutterEntry