Search Unity

Oclussion in handles as Gizmos do

Discussion in 'Editor & General Support' started by mespino, Sep 29, 2016.

  1. mespino

    mespino

    Joined:
    Nov 26, 2015
    Posts:
    15
    Hello everyone,

    I am writing my own HandlesUtis.DrawCube, because the Handles API does not have it.

    I almost get it, but I have not idea how Unity does the oclussion with gizmos when it draws them in scene view.

    I attach an image. The left one is a cube with handles. The right one is with gizmos. Both of them has the same size and the same Y position, but the one drawn with gizmos is occluded by the scene.

    Is there any way to do something like this with handles?

    Thank you very much

    Regards

    upload_2016-9-29_12-27-5.png
     
    Last edited: Sep 29, 2016
    NikH likes this.