Search Unity

Feature Request Toggle OnChanged, dynamic bool inverted

Discussion in 'UGUI & TextMesh Pro' started by mgear, Sep 26, 2022.

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,435
    When hiding or enabling objects with single toggle button click, without using scripts,
    would be nice if could invert that Dynamic Bool value.

    So, when Toggle Button is clicked:
    - some objects receive SetActive(true)
    - and some objects SetActive(false)

    upload_2022-9-26_9-58-42.png

    something like, for dynamic bools, extra checkbox to invert
    or maybe easier, if the popup menu had something like "!SetActive" or so..

    upload_2022-9-26_10-4-31.png

    current workarounds:
    having 2 toggle buttons, one for enabling and not using dynamic bool for them to manually set true/false.

    unless there's easier workarounds?
     
    Enverex and DasPeter like this.