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

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,862
    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?