How to get Sizeoverlifetime's current value of a particle system from script?

Hi there,

To enhance the visual impact of explosions in my 2D game, I’ve added a 2D spotlight into the explosion. My next objective is to dynamically adjust the spotlight’s radius in proportion to the explosion’s Sizeoverlifetime. Here’s the portion of my code that I’ve managed to piece together so far:

private ParticleSystem.SizeOverLifetimeModule sizeOverLifetimeModule;
void Awake()
{
    sizeOverLifetimeModule = GetComponent<ParticleSystem>().sizeOverLifetime;
}
void OnEnable()
{
    if(light2D != null)
    {
        StartCoroutine(ScaleLight());
    }
}

IEnumerator ScaleLight()
{
    while (true)
    {
        light2D.pointLightOuterRadius = how to get particle system sizeoverlifetime?
    yield return null;
    }
}

the correct value depends how far through its life each particle is.
so if you call GetComponent<ParticleSystem>().GetParticles(...)
then for the particle(s) you care about, call particle.GetCurrentSize(GetComponent<ParticleSystem>())