ClutterEntryclass
Represents a single weighted entry in a `Sandbox.Clutter.ClutterDefinition`. Contains either a Prefab or Model reference along with spawn parameters.
Constructors1
Showing 1 constructors
public ClutterEntry()
No results match this filter.
Properties8
Showing 8 properties
public string Sandbox.Clutter.ClutterEntry.AssetName { get; set; }
Returns the primary asset reference as a string for debugging.
string—public bool Sandbox.Clutter.ClutterEntry.CastShadows { get; set; }
Whether instances of this entry cast shadows.
bool—public bool Sandbox.Clutter.ClutterEntry.EnablePhysics { get; set; }
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.
bool—public bool Sandbox.Clutter.ClutterEntry.HasAsset { get; set; }
Returns whether this entry has a valid asset to spawn.
bool—public float Sandbox.Clutter.ClutterEntry.LocalScale { get; set; }
Uniform scale multiplier applied on top of whatever scale the scatterer picks per instance.
float—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.
float—No results match this filter.