- Home /
Question by
khodis2002 · Dec 07, 2019 at 10:37 AM ·
2dphysicsmaterialphysics2d
Create new Physics material via C# script
Is there way to create PhysicsMaterial2D through a script? I want to instantiate GameObject's in my script and change phys materials individually. There is a problem. When I try to change one of them, all of instantiated objects are changing the same phys material values.
Comment
Best Answer
Answer by $$anonymous$$ · Dec 07, 2019 at 11:08 AM
create multiple physics material, assign them at runtime with script
Physics$$anonymous$$aterial2D[] ? That's such a genius