Skip to main content

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.

Constructors​

MemberWhat it is
ParticleSystemEvaluator(ParticleSystem system, ParticleEffectDistanceController controller)Creates a ParticleEffectDistanceController.ParticleSystemEvaluator from system and controller.

Fields​

3 private and internal fields
MemberWhat it is
private ParticleEffectDistanceController controllerThe controller that holds the distance and lifetime settings.
private ParticleSystem.Particle[] particlesReused buffer sized to the system's max particles.
private ParticleSystem systemThe particle system being checked.

Methods​

MemberWhat 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: