Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Ui and controller, disabling interactable in canvas group

Discussion in 'UGUI & TextMesh Pro' started by Plott, Aug 17, 2018.

  1. Plott

    Plott

    Joined:
    May 12, 2014
    Posts:
    94
    Hey Everyone,

    I'm trying to get ideas on how to solve an issue.

    I have a start menu of my game working great. I have a few game objects in a canvas just grouping a few screens together to break them apart. To transition I have an animation changing positions and scales, making things animate in.

    The game is to be player with a controller, so you can select everything via a button on the controller. But I realized now that all the buttons off screen are still Interactable from the canvas group. Is there any easy way to turn off interactbiliy when a button goes off screen?

    My plan or should I say back up is to just add it to the animator and turn off the ones I need in each animation. then I can pick and choose, but there are like 20 buttons, and its not easy to change later down the line.

    What would you do?
     
  2. FernandoHC

    FernandoHC

    Joined:
    Feb 6, 2018
    Posts:
    338