Why the info panel of collider is grey in unity3d?

I added a collider2D component to my Player to collide with the floor, but I noticed that the info panel which contains physic parameters like Friction, Bounciness are grey.I have to create a physics material by myself.So is that what it is(read only)?

image

1

Answers


  1. Spleen
    0 Votes

    Those values there are only readable and not able to be written on or to be changed.

    Therefore if you would like to change them you need to make a PhysicsMaterial2D and apply it to the CircleCollider2D. You can also change the extents and centre of the CircleCollider2D by referencing the component in a script.

    https://docs.unity3d.com/ScriptReference/CircleCollider2D.html

Please signup or login to answer this question.

Signup for an account and start participating in our site today!




Social Signup

You can also login with your Facebook, Twitter or Linkedin account

Log in with Facebook