Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Change the Value of a Toggle without triggering OnValueChanged?

Discussion in 'UGUI & TextMesh Pro' started by webbut, Oct 20, 2014.

  1. EternalLife

    EternalLife

    Joined:
    Feb 25, 2017
    Posts:
    1
  2. FireHawkX

    FireHawkX

    Joined:
    Apr 26, 2016
    Posts:
    28
  3. Yiming075

    Yiming075

    Joined:
    Mar 24, 2017
    Posts:
    30
    This works in Unity 2020
    toggle.SetIsOnWithoutNotify(value);
    slider.SetValueWithoutNotify(value);