VfxData
A class in Root.Township, Features.Visual_Effects.VFXData.
Settings asset for a two-part particle effect: particles that spawn, fly to a destination (usually the player) and trigger an arrival effect. Used for effects like gaining a skill orb. Looked up by hash.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
HashedGeneralValue<VfxData> - Derived types
VfxData - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
VfxData() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private float particleAcceleration | Backing field for ParticleAcceleration, extra speed per second (0.1 by default). |
private ParticleDestination particleDestination | Backing field for ParticleDestination, where the particles fly to. Custom is for internal use. |
private PooledObjectDefinition particlesOnArrival | Backing field for ParticlesOnArrival, the pooled effect spawned when the particles reach the player. |
private float particleSpeed | Backing field for ParticleSpeed, in metres per second (1 by default). |
private PooledObjectDefinition particlesToTransform | Backing field for ParticlesToTransform, the pooled effect spawned when the player unlocks something. |
private bool shouldPlayVFX | Backing field for ShouldPlayVFX. Turn off to disable the effect without changing references. |
private float timeToStartMoving | Backing field for TimeToStartMoving, the delay before the script moves the particles (1.1 seconds by default). |
Properties
| Member | What it is |
|---|---|
float ParticleAcceleration { get; } | Extra speed the travelling particles gain, in metres per second. |
ParticleDestination ParticleDestination { get; } | Where the particles fly to. |
PooledObjectDefinition ParticlesOnArrival { get; } | Pooled effect spawned when the particles arrive. |
float ParticleSpeed { get; } | Starting speed of the travelling particles, in metres per second. |
PooledObjectDefinition ParticlesToTransform { get; } | Pooled effect whose particles fly to the destination. |
bool ShouldPlayVFX { get; } | Switch to turn the effect off without removing references to it. |
float TimeToStartMoving { get; } | Delay before the particles start flying, in seconds. |
Used in
Members of other types that take, return or hold a VfxData:
OrbBasinVfxController.GetVfxData, OrbBasinVfxController.IsValid, OrbBasinVfxController.orbObtainedVfxData, OrbBasinVfxController.permanentUnlockVfxData, OrbBasinVfxController.PlayParticle, OrbBasinVfxController.towerCompletionVfxData, OrbBasinVfxControllerSaveData.OrbObtainedVfxData, OrbBasinVfxControllerSaveData.PermanentUnlockVfxData, OrbBasinVfxControllerSaveData.TowerCompletionVfxData, OrbBasinVfxControllerSaveData1.ClimbingUnlockVfxData, OrbBasinVfxControllerSaveData1.OrbObtainedVfxData, OrbBasinVfxControllerSaveData1.StaminaUnlockVfxData, OrbBasinVfxControllerSaveData1.TowerCompletionVfxData, ParticlesToPlayer.vfxData, ParticlesToPlayerSaveData.VfxData.