Search Unity

MRTK 2 Toggle State

Discussion in 'AR' started by davidpmontes, Jul 5, 2019.

  1. davidpmontes

    davidpmontes

    Joined:
    Oct 4, 2015
    Posts:
    3
    Hi, I am trying to get the state of a toggle button that has been clicked but I don't see a way to do that.

    Also, I would like to set the initial state of the toggle to on.

    Thank you!

    Update: I realized one way I can do both of the above is by accessing the Interactable script and getting or setting the value of the Dimension.
     
    Last edited: Jul 5, 2019