Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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

    Unity Technologies

    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.