Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Gizmos in play mode

Discussion in 'VR' started by MDADigital, Feb 17, 2021.

  1. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    Be careful with ticking the gizmos button in play view. It kills performance and the gizmos does not show in the play view so it can be hard finding out whats wrong. I saw it in the profiler that DrawGizmos took 30 ms :D

    Does unity have a plan on supporting gizmos in VR view?
     
  2. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    334
    Hi @MDADigital, thanks for your feedback. Given it's a CPU API, it can generally be quite slow.

    We don't support, nor do we have plans to support gizmos in VR. However, feel free to check out this repo which contains a basic GizmoModule that our team uses for development of our own tools (e.g. EditorXR). It's not formally supported but may be worth looking at.
     
  3. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    Maybe disable the gizmos for VR? Only way to know its the gizmos that tank perfomance is to profile.
     
  4. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    334
    Mentioned a repo without linking to it! Here it is: https://github.com/Unity-Technologies/SuperScience/blob/main/Runtime/GizmoModule/GizmoModule.cs
     
  5. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    668
  6. colinleet

    colinleet

    Joined:
    Nov 20, 2019
    Posts:
    188
    Do you know if Aline is working for single pass instanced in hdrp/urp?
     
  7. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    668
    Yes, I am using it on single pass instanced with URP. I would assume it works on HDRP but you may want to check with the author.