DeathAnimationSettings
A class in Root.Township, Alta.Combat.
ScriptableObject with the visuals for a death effect: a first burst, then ashes and a second burst. Read by PlayerSpecialEffectsController and the creature DeathEffect.
- Listed in Creatures and AI
- Inherits or implements
ScriptableObject - Derived types
DeathAnimationSettings.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
DeathAnimationSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private Material ashesMaterial | Backing field for AshesMaterial. |
private PooledObjectDefinition deathVisual | Backing field for DeathVisual. |
private PooledObjectDefinition deathVisualGroundPosition | Backing field for DeathVisualGroundPosition. |
private float defaultDuration | Backing field for DefaultDuration. |
private CombatShellSetting firstBurstShellSettings | Backing field for FirstBurstShellSettings. |
private PooledObjectDefinition preDeathVisual | Backing field for PreDeathVisual. |
private CombatShellSetting secondBurstShellSettings | Backing field for SecondBurstShellSettings. |
Properties
| Member | What it is |
|---|---|
Material AshesMaterial { get; } | Template material; DeathEffect swaps each renderer's materials for copies of it. |
PooledObjectDefinition DeathVisual { get; } | Pooled effect spawned at the particle origin for the second burst. |
PooledObjectDefinition DeathVisualGroundPosition { get; } | Pooled effect for the second burst, probably placed at ground level. Not read in this build. |
float DefaultDuration { get; } | Length of the death effect in seconds (default 3). |
CombatShellSetting FirstBurstShellSettings { get; } | Combat shell settings for the first burst; its material is set by PlayerSpecialEffectsController. |
PooledObjectDefinition PreDeathVisual { get; } | Pooled effect spawned at the particle origin for the first burst. |
CombatShellSetting SecondBurstShellSettings { get; } | Combat shell settings for the second burst. |
Used in
Members of other types that take, return or hold a DeathAnimationSettings: