I need to change the ‘SortingFudge’ parameter within the renderer of a particle system.
ren = GetComponent();
ren.SortingFudge = -0.2f;
The script is attached to a ParticleSystem GameObject.
The problem is that VS complains that there is no such thing as SortingFudge in the renderer. The closest I could find were SortingLayerID, SortingLayerName and SortingOrder, neither of which seem to be what I need.
I can easily change it in the inspector to set up the initial value but I need also to change it during execution.