Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Component Button is not working

Discussion in 'Project Tiny' started by TheFordeD, Jan 21, 2019.

  1. TheFordeD

    TheFordeD

    Joined:
    Jul 9, 2018
    Posts:
    32
    Hi people, help me pleace. I create scene with any empty objects, into object add Component Button. Add sprites to look change object events and in Debug run my buttons doesn't change sprite in events (hover, down, disable). Why?

    Screenshot settings of object:
    Screenshot_5.png
     
  2. Simontzky

    Simontzky

    Joined:
    Mar 11, 2015
    Posts:
    8
    You need to have MouseInteraction component on the object too, because it captures touches and mouse and than it takes sprites from Button component and applies the selected sprite to Sprite2DRenderer component.
     
    TheFordeD likes this.
  3. TheFordeD

    TheFordeD

    Joined:
    Jul 9, 2018
    Posts:
    32
    Thanks!