DeathAnimationSettings
A class in Root.Township, Alta.PlayerStates.
Settings for a two-burst death dissolve effect. DeadStateSettings.AnimationSettings holds one, but nothing reads it; the effect in use takes Alta.Combat.DeathAnimationSettings.
- Listed in Players and characters
Constructors
| Member | What it is |
|---|---|
DeathAnimationSettings() | Creates a DeathAnimationSettings with default values. |
Fields
11 private and internal fields
| Member | What it is |
|---|---|
private Material ashesMaterial | Material for the ashes left by the death effect. |
private PooledObjectDefinition deathVisual | Pooled effect spawned for the death. |
private PooledObjectDefinition deathVisualGroundPosition | Pooled effect spawned at ground level for the death. |
private float defaultDuration | Length of the death animation in seconds (default 3). |
private float firstDissolveStrength | Dissolve strength for the first burst. |
private Texture2D firstRamp1 | First colour ramp texture of the first burst. |
private Texture2D firstRamp2 | Second colour ramp texture of the first burst. |
private PooledObjectDefinition preDeathVisual | Pooled effect spawned before the death burst. |
private float secondDissolveStrength | Dissolve strength for the second burst. |
private Texture2D secondRamp1 | First colour ramp texture of the second burst. |
private Texture2D secondRamp2 | Second colour ramp texture of the second burst. |
Properties
| Member | What it is |
|---|---|
Material AshesMaterial { get; } | Material for the ashes. |
PooledObjectDefinition DeathVisual { get; } | Pooled particles for the second burst. |
PooledObjectDefinition DeathVisualGroundPosition { get; } | Pooled visual placed at ground level. |
float DefaultDuration { get; } | Default duration in seconds (3). |
float FirstDissolveStrength { get; } | Shell dissolve strength for the first burst. |
Texture2D FirstRamp1 { get; } | First colour ramp texture for the first burst. |
Texture2D FirstRamp2 { get; } | Second colour ramp texture for the first burst. |
PooledObjectDefinition PreDeathVisual { get; } | Pooled particles for the first burst. |
float SecondDissolveStrength { get; } | Shell dissolve strength for the second burst. |
Texture2D SecondRamp1 { get; } | First colour ramp texture for the second burst. |
Texture2D SecondRamp2 { get; } | Second colour ramp texture for the second burst. |
Used in
Members of other types that take, return or hold a DeathAnimationSettings: