Search Unity

Reason for Interactable checkbox

Discussion in 'UGUI & TextMesh Pro' started by Breyer, Aug 20, 2014.

  1. Breyer

    Breyer

    Joined:
    Nov 10, 2012
    Posts:
    412
    as i saw interactable and simply disable component work identical on first look except that on disable button dont change color/state for disabled state. I think interactable should be removed and disable color/state should simply check if component if disabled or not. Is there any real reason for creating interectable checkbox?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Hi, so conceptually we consider disabling a component to be the same as removing the component, this means that if you disable the button component we want the behaviour to revert to if there was no button present. We consider making a button (or other) element non interactable to be conceptually different to disabling the component completely.
     
  3. Freezy

    Freezy

    Joined:
    Jul 15, 2012
    Posts:
    234
    which makes sense as you might want to disable the component but still show it to the user (in color or image that relays the inactive state to the user).