Search Unity

How to create 2d physics material in URP project

Discussion in '2D' started by VirtualMaestro, Mar 21, 2021.

  1. VirtualMaestro

    VirtualMaestro

    Joined:
    Jul 2, 2014
    Posts:
    22
    Hi guys,
    I would like to know how I can create 2d physics material if the project was created as a URP project?
    It is weird but there is no 2D option in this case. If a project was created from the 2D template (which works with a built-in renderer) there is a 2D option (Assets->Create->2D).
    I've checked the built-in "Physics 2D" package and it is there.
    Maybe I forgot to add some other packages or something else?
    Unity version 2020.3.0f1 (but it doesn't work also on 2020.2.7f1)

    Thank you in advance!

    AssetsCreate.png physics2dPackage.png
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,500
    Yes, the menus were modified so that all the 2D stuff was on a "2D" sub-menu. This menu is only around when the 2D Sprite Package is installed. Unfortunately the PhysicsMaterial2D was moved there too which means you cannot create one from that menu unless the Sprite Package is installed which is a bug. I reported this and it's being fixed and you can track its progress here.

    In the meantime, as a workaround, simply added the 2D Sprite Package will make the menu appear.
     
    VirtualMaestro likes this.
  3. VirtualMaestro

    VirtualMaestro

    Joined:
    Jul 2, 2014
    Posts:
    22
    Thank you for your answer!