Skip to main content

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.

Constructors​

MemberWhat it is
DeathAnimationSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

7 private and internal fields
MemberWhat it is
private Material ashesMaterialBacking field for AshesMaterial.
private PooledObjectDefinition deathVisualBacking field for DeathVisual.
private PooledObjectDefinition deathVisualGroundPositionBacking field for DeathVisualGroundPosition.
private float defaultDurationBacking field for DefaultDuration.
private CombatShellSetting firstBurstShellSettingsBacking field for FirstBurstShellSettings.
private PooledObjectDefinition preDeathVisualBacking field for PreDeathVisual.
private CombatShellSetting secondBurstShellSettingsBacking field for SecondBurstShellSettings.

Properties​

MemberWhat 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: