Search Unity

Bug Layer Collision Matrix doesn't add new created layers

Discussion in 'Editor & General Support' started by adrianfrancisco, Sep 11, 2021.

  1. adrianfrancisco

    adrianfrancisco

    Joined:
    Jul 29, 2021
    Posts:
    14
    Hi all! I am using Unity 2020.3.14

    I have created new sorting layers, and added to them some Gameobjects with colliders and rigidbodies. However when I go to Edit ->Project Settings -> Physics (Or Physics2D) I can not see these new layers in the Collision Matrix. So everything collides with everything when I am using OnCollisionEnter2D.

    Is this a bug in Unity or there is something that I am missing? Thanks!

    btw: I am saving project and scene and nothing changes. I have closed and opened the project again and nothing...,
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,738
    Those are not what physics uses. Physics uses Layers.

    Yes, it is a terribly close-sounding analog managed by the same $#@$@% window even, and I feel your pain, but to properly differentiate physics, you will need to use Layers.

    Screen Shot 2021-09-11 at 11.51.40 AM.png

    If in fact you DID use Layers, be sure you have no compiler errors outstanding; that may bork the re-read process.