Search Unity

Bug REGRESSION: gizmos turn transparent on play

Discussion in 'Editor & General Support' started by laurentlavigne, Feb 28, 2023.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,327
    upload_2023-2-27_18-50-55.png

    at play

    upload_2023-2-27_18-51-25.png


    Nothing in my code changes the color of the gizmo
    Code (CSharp):
    1.     void OnDrawGizmos()
    2.     {
    3.         Gizmos.color = cachedInteraction ? Color.gray : Color.red;
    4.         Gizmos.DrawSphere(InteractionPoint, 1f);
    5.     }
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,327
    that's in 2021.3.18
    bug: IN-33659