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.
  2. Dismiss Notice

Question Why this grey gizmo when running?

Discussion in 'Physics for ECS' started by zephyr831125, Dec 23, 2020.

  1. zephyr831125

    zephyr831125

    Joined:
    Mar 4, 2017
    Posts:
    54
    upload_2020-12-23_16-5-33.png
    It shows a grey gizmo for every collider when running, covers everything beneath. It can be hidden if I uncheck all gizmos. But is there some way to change its transparency? It is useful but I need to see things beneath it.
     
  2. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
    Hi @zephyr831125 , I'm not sure about changing gizmo colors from editor UI, but you can definitely change them in code - see DrawComponent.OnDrawGizmos() in com.unity.physics\Unity.Physics.Hybrid\Utilities\DebugDisplay\DisplayCollidersSystem.cs . Grey is currently used for static and yellow for dynamic bodies.
     
  3. zephyr831125

    zephyr831125

    Joined:
    Mar 4, 2017
    Posts:
    54
    Thank you! but how can I change the code in a package?
     
  4. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
  5. zephyr831125

    zephyr831125

    Joined:
    Mar 4, 2017
    Posts:
    54
    milos85miki likes this.