API ReferenceSandbox.Clutter
public class Sandbox.Clutter.ClutterEntry
Represents a single weighted entry in a `Sandbox.Clutter.ClutterDefinition`. Contains either a Prefab or Model reference along with spawn parameters.
Constructors
Showing 1 constructors
public ClutterEntry()
No results match this filter.
Properties
Showing 5 properties
public string Sandbox.Clutter.ClutterEntry.AssetName { get; set; }
Returns the primary asset reference as a string for debugging.
public bool Sandbox.Clutter.ClutterEntry.HasAsset { get; set; }
Returns whether this entry has a valid asset to spawn.
public Sandbox.Model Sandbox.Clutter.ClutterEntry.Model { get; set; }
Model to spawn as a static prop. Only used if `Sandbox.Clutter.ClutterEntry.Prefab` is null.
public Sandbox.GameObject Sandbox.Clutter.ClutterEntry.Prefab { get; set; }
Prefab to spawn. If set, this takes priority over `Sandbox.Clutter.ClutterEntry.Model`.
public float Sandbox.Clutter.ClutterEntry.Weight { get; set; }
Relative weight for random selection. Higher values = more likely to be chosen.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Clutter |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Clutter.ClutterEntry |