Skip to main content

StatEffectShellSetting

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​

MemberWhat it is
StatEffectShellSetting(bool isBuff)Creates a StatEffectShellSetting from isBuff.

Fields​

10 private and internal fields
MemberWhat it is
private Color colorAFirst shell colour.
private Color colorBSecond shell colour.
private float expandedProgressBacking field for ExpandedProgress.
private DurationCurve progressCurveBacking field for Curve.
private float speedShader scroll speed. Default 0.05.
private Vector2 textureTileU and V tiling of the wave texture.
private float waveAlphaOpacity of the wave, 0 to 1. Default 0.8.
private Color waveColorColour of the moving wave.
private Texture2D waveTextureTexture for the wave pattern.
private float widthShell width in the shader. Default 0.1.

Properties​

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

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