We just had a script that generates small colliders (the amount of them could be adjusted) on top of platforms, then we simply set the colliders to triggers if they are not in light.
I see