ParticleEffectDistanceController.ParticleSystemEvaluator
A private struct in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Checks one world-space particle system for ParticleEffectDistanceController and cuts short particles that drift too far away.
- Listed in Global namespace: P
- Nested in
ParticleEffectDistanceController
Constructors
| Member | What it is |
|---|---|
ParticleSystemEvaluator(ParticleSystem system, ParticleEffectDistanceController controller) | Creates a ParticleEffectDistanceController.ParticleSystemEvaluator from system and controller. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private ParticleEffectDistanceController controller | The controller that holds the distance and lifetime settings. |
private ParticleSystem.Particle[] particles | Reused buffer sized to the system's max particles. |
private ParticleSystem system | The particle system being checked. |
Methods
| Member | What it is |
|---|---|
void Evaluate(Vector3 position) | Sets the remaining lifetime of every particle further than the controller's max distance from a position to the controller's short value. |
Used in
Members of other types that take, return or hold a ParticleSystemEvaluator: