Skip to main content

HandTouchVfxController

A class in Root.Township, Features.

A GenericVFXController with two named effects for something a hand touches: one while activating and one when completed.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private int activatingVfxIndexIndex of the effect played while activating. Defaults to 0.
private int completedVfxIndexIndex of the effect played on completion. Defaults to 1.

Methods​

MemberWhat it is
void PlayActivatingEffect()Plays the effect at activatingVfxIndex.
void PlayCompletedEffect()Plays the effect at completedVfxIndex.

Used in​

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