Skip to main content

PlayerEffectManager.EffectPosition

A class in Root.Township, the global namespace.

A spot on a player's body where heat (smoke, burn) and stat effect particles are placed, tied to a HeatPoint.

Constructors​

MemberWhat it is
EffectPosition()Creates a PlayerEffectManager.EffectPosition with default values.

Fields​

9 private and internal fields
MemberWhat it is
private PlayerEffectManager.OverrideSettings cullBurnEffectWhich players (local, remote or both) get no burn effect at this point.
private PlayerEffectManager.OverrideSettings cullSmokeEffectWhich players (local, remote or both) get no smoke effect at this point.
private PlayerEffectManager.OverrideSettings cullStatEffectsWhich players (local, remote or both) get no stat buff or debuff effects at this point.
private Transform parentBody transform the effect is parented to.
private Vector3 positionLocal position of the effect under parent.
private float radiusRadius passed to the effect particle, also used for the gizmo capsule.
private Quaternion rotationLocal rotation of the effect under parent.
private float sizeBase scale of the effect; EffectApplication.SetSize multiplies it.
private HeatPoint targetPointThe HeatPoint whose temperature drives the smoke and burn effects here.

Properties​

MemberWhat it is
PlayerEffectManager.OverrideSettings CullBurnEffect { get; }Turns off the burn effect here. Any value but none culls it for local and remote players alike, because local is 3.
PlayerEffectManager.OverrideSettings CullSmokeEffect { get; }Turns off the smoke effect here. Same culling rule as CullBurnEffect.
PlayerEffectManager.OverrideSettings CullStatEffects { get; }Turns off stat buff and debuff effects here. Same culling rule as CullBurnEffect.
float Size { get; }Scale of effects placed here.
HeatPoint TargetPoint { get; }The heat point whose temperature drives smoke and burn effects here.

Methods​

MemberWhat it is
void DrawGizmos()Editor: draws a capsule showing the effect's size and radius.
void Position(PlayerEffectParticle effect)Parents an effect to this spot and sets its local position, rotation, scale and (for particles) radius.
void Position(PooledObject pooledObject)Parents an effect to this spot and sets its local position, rotation, scale and (for particles) radius.

Used in​

Members of other types that take, return or hold a EffectPosition: