Class DeathEffectSettings
- Namespace
- SurvivorsMaker.Presentation
- Assembly
- SurvivorsMaker.Presentation.dll
Death Effect tuning; defaults are defined by the field initializers and can be overridden per game.
public sealed class DeathEffectSettings
- Inheritance
-
DeathEffectSettings
- Inherited Members
Constructors
DeathEffectSettings()
public DeathEffectSettings()
Fields
Color
Color in RGBA; alpha 0 = transparent, 1 = opaque.
[Tooltip("Color in RGBA; alpha 0 = transparent, 1 = opaque.")]
public Color Color
Field Value
- Color
Depth
Depth in world units; use nonnegative sizes and signed offsets.
[Tooltip("Depth in world units; use nonnegative sizes and signed offsets.")]
public float Depth
Field Value
Enabled
Enable these visual effects; off skips this presentation feature without changing gameplay.
[Tooltip("Enable these visual effects; off skips this presentation feature without changing gameplay.")]
public bool Enabled
Field Value
EndScale
Final effect scale; nonnegative, 0 ends invisible.
[Tooltip("Final effect scale; nonnegative, 0 ends invisible.")]
public float EndScale
Field Value
Lifetime
Lifetime in seconds; nonnegative.
[Tooltip("Lifetime in seconds; nonnegative.")]
public float Lifetime
Field Value
MaxActive
Maximum simultaneous visual instances; nonnegative, 0 disables new instances.
[Tooltip("Maximum simultaneous visual instances; nonnegative, 0 disables new instances.")]
public int MaxActive
Field Value
Prewarm
Objects created before use to reduce allocations; nonnegative, 0 = no prewarming.
[Tooltip("Objects created before use to reduce allocations; nonnegative, 0 = no prewarming.")]
public int Prewarm
Field Value
SortingOrder
Sprite sorting order; larger values draw in front within the sorting layer.
[Tooltip("Sprite sorting order; larger values draw in front within the sorting layer.")]
public int SortingOrder
Field Value
Sprite
Optional sprite; unassigned uses the procedural fallback.
[Tooltip("Optional sprite; unassigned uses the procedural fallback.")]
public Sprite Sprite
Field Value
- Sprite
StartScale
Initial effect scale; nonnegative, 0 starts invisible.
[Tooltip("Initial effect scale; nonnegative, 0 starts invisible.")]
public float StartScale