Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question script upgrade on Handles.SphereCap

Discussion in '2020.2 Beta' started by laurentlavigne, Apr 23, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,364
    Handles.SphereCap(0, curVal, Quaternion.identity, 0.1f);
    doesn't get turned into
    Handles.SphereHandleCap(0, curVal, Quaternion.identity, 0.1f, EventType.Repaint);
    so I do it by hand
    is Repaint gonna give me the same behavior as the old one?
     
  2. SugoiDev

    SugoiDev

    Joined:
    Mar 27, 2013
    Posts:
    395
    I passed "Event.current.type" there.
    I took a look at the code and it has branches to other events, like key down or something.
     
    v01pe_ likes this.