No way to update physics material?

Is it impossible to update a PhysicsMaterial2D without having to disable and re-enable the collider? Doing so will make triggers that the player is in send unwanted events.

I’ve searched for hours and all i could find was people mentioning that it was “bugged”, posts ranging from 2010 to 2016, i’ve tried creating a new PhysicsMaterial2D and setting my collider’s shared material to this new material, in the inspector i can see the new material and i can even print the values and everything seems fine but nothing actually changes, character doesn’t truly use the new materials.

I’m trying to change the friction, nothing seems to work other than disabling and re-enabling the collider.

Disabling and re-enabling the collider it is then.

Can you work around it by having multiple identical colliders on the player, each with its specific material, and turning all the colliders off except the one you want?? Hacky, but …

The problem is that i want to lerp the friction from 1 to 0 gradually, i settled for enabling and disabling the collider every frames for now until they fix it or someone can explain how it’s supposed to work, i just added a condition on my triggers to make sure they only fire once until i exit.

Thanks for helping tho!