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. Dismiss Notice

Feature Request Toggle OnChanged, dynamic bool inverted

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

  1. mgear


    Aug 3, 2010
    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)


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


    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?