A class in Root.Township, Alta.PlayerEffects.
Look of the shell drawn around a player for a stat buff or debuff: colours, wave texture and how it animates in. Used by StatEffectShellAnimator; buffs default to orange and red, debuffs to grey and blue.
Constructors
Fields
10 private and internal fields
| Member | What it is |
|---|
private Color colorA | First shell colour. |
private Color colorB | Second shell colour. |
private float expandedProgress | Backing field for ExpandedProgress. |
private DurationCurve progressCurve | Backing field for Curve. |
private float speed | Shader scroll speed. Default 0.05. |
private Vector2 textureTile | U and V tiling of the wave texture. |
private float waveAlpha | Opacity of the wave, 0 to 1. Default 0.8. |
private Color waveColor | Colour of the moving wave. |
private Texture2D waveTexture | Texture for the wave pattern. |
private float width | Shell width in the shader. Default 0.1. |
Properties
| Member | What it is |
|---|
DurationCurve Curve { get; } | Curve and duration the shell grows in with. Default ease in and out over 0.5 seconds. |
float ExpandedProgress { get; } | Progress (0 to 1) the shell animates to and holds while the effect is active. Default 0.2. |
Methods
| Member | What it is |
|---|
override void SetMaterial(Material material) | Writes the colours, wave texture and alpha, width, speed and tiling to the shell material. |
Used in
Members of other types that take, return or hold a StatEffectShellSetting: