Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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,003
    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.