Search Unity

Resolved Burst compatible Gizmo

Discussion in 'Authoring Dev Blitz Day 2023' started by optimise, Jan 26, 2023.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Up until now I believe Gizmo like Debug.DrawLine still can't support burst properly yet. Basically when u burst it, Gizmo will suddenly disappear and never able to get it back. Can official make it able to still display Gizmo even it's burst compiled? And also it will even nice when building runtime player will auto strip out Gizmo code
     
  2. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    552
    I'm not sure I understand. Are you trying to burst compile the `OnDrawGizmos` function?
     
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    I try to burst compile Debug.DrawLine
     
  4. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    552
    I'd recommend not putting Debug.DrawLine in any burst compiled method.
     
  5. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    But since my project is dots project, most of the code will be burst compiled and I need Debug.DrawLine inside burst compiled code to debug something.
     
  6. graskovi

    graskovi

    Joined:
    May 28, 2016
    Posts:
    14
    Catsoft-Studios likes this.
  7. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    I recommend that when you're building ECS/DOTS, you think really hard about why people were using Unity in the first place.