Search Unity

[Unity 4.6.2] Bug of Handles.Lable with orthographic Camera

Discussion in 'Editor & General Support' started by gyd, Feb 5, 2015.

  1. gyd

    gyd

    Joined:
    Nov 9, 2012
    Posts:
    15
    Handles.Label makes the Camera draws the Handles by perspective mode, and the other Handles.* call

    // correct, draw a line from (0,0,10) to (10, 0, 10)
    Code (csharp):
    1.  
    2. Handles.DrawCamera(new Rect(0.0f, 0.0f, 960.0f, 640.0f), myCamera, DrawCameraMode.LightmapResolution);
    3. Handles.color = new Color(0.0f, 1.0f, 1.0f, 0.6f);
    4. Handles.DrawLine(new Vector3(0, 0, 10f), new Vector3(10f, 0, 10f));
    5.  
    // incorrect
    Code (csharp):
    1.  
    2. Handles.DrawCamera(new Rect(0.0f, 0.0f, 960.0f, 640.0f), myCamera, DrawCameraMode.LightmapResolution);
    3. Handles.color = new Color(0.0f, 1.0f, 1.0f, 0.6f);
    4. Handles.Label(new Vector3(0, 0, 10f), "10"); // the only different
    5. Handles.DrawLine(new Vector3(0, 0, 10f), new Vector3(10f, 0, 10f)); // even this line is broken
    6.  
     
  2. gyd

    gyd

    Joined:
    Nov 9, 2012
    Posts:
    15
    does anyone have the same issue?