Unity Button reacts even if Canvas is disabled
I have two menus: Main and Shop. I put them in different Canvases and switch between them by simply disabling and enabling Canvas components (objects are always on). In Shop menu i have "Buy" button which is disabled by default and enables when I click on certain buttons. The problem is: when "Buy" button in Shop menu is enabled and then I switch to Main menu, button somehow continues to receive raycast. Other buttons don't, because they never have been enabled/disabled as GameObjects. Also, problem disappears when I disable and enable whole Shop menu as GameObject. Is this some king of bug or am I missing something?
Comment