Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Property drawers for Custom Tags and Physics Categories?

Discussion in 'Physics for ECS' started by PhilSA, Aug 9, 2020.

  1. PhilSA

    PhilSA

    Joined:
    Jul 11, 2013
    Posts:
    1,926
    I'm looking for ways to make an authoring component where you'd have a Physics Custom Tags field and a Physics Categories field (I'd like to have the dropdown menus in the inspector)

    Imagine wanting to define which PhysicsCategories and CustomTags a certain character controller is allowed to be "grounded" on, for example

    Is there a way to do that right now wihout making a custom inspector and copying what
    "PhysicsMaterialPropertiesDrawer" does internally?
     
    Last edited: Aug 9, 2020
  2. Adam-Mechtley

    Adam-Mechtley

    Administrator

    Joined:
    Feb 5, 2007
    Posts:
    290
    Sorry lttp on this, but each of the following (public) authoring types have custom property drawers and should "just work" by default.
    • CustomPhysicsBodyTags
    • CustomPhysicsMaterialTags
    • PhysicsCategoryTags
    Or are you lacking something else?
     
  3. PhilSA

    PhilSA

    Joined:
    Jul 11, 2013
    Posts:
    1,926
    that's exactly what I need! I just missed them somehow
     
    Adam-Mechtley likes this.