Skip to main content

TeleporterTrailLerper

A class in Root.Township, the global namespace.

Client effect: a pooled trail that follows a player when they teleport or stream-move. Taken from a pool by PlayerSpecialEffectsController.

Constructors​

MemberWhat it is
TeleporterTrailLerper()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private ScaledLerpFollow lerperThe scaled lerp follower that moves the trail.
private PooledObject pooledObjectBacking field for PooledObject.

Properties​

MemberWhat it is
PooledObject PooledObject { get; }The pool entry this trail belongs to.

Methods​

MemberWhat it is
void ResetTimer()Restarts the pooled object's lifetime timer.
void SetEffectPlayStatus(EffectPlayStatus status)Sets the play status of the follow lerper's effect.
void SetPosition(Vector3 position)Moves the trail to a position and restarts the lerper there without a lerp.
void SetTarget(PlayerController target)Sets the player the trail follows.
2 private and internal methods
MemberWhat it is
private void Awake()Hooks ResetLerper to the pooled object's release.
private void ResetLerper(PooledObject pooled)On release to the pool: stops the effect, restarts the lerper and clears its target.

Used in​

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