Answers for "how to assign 2d physics material through script"

C#
0

how to assign 2d physics material through script

public PhysicsMaterial2D mat;

GetComponent<Collider2D>().sharedMaterial = mat; // Sets material to mat
Posted by: Guest on May-29-2021

Code answers related to "how to assign 2d physics material through script"

C# Answers by Framework

Browse Popular Code Answers by Language