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

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:
    335
    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:
    335
    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:
    189
    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.