Button not working after adding Canvas


i add a Canvas Component to an GameObject, so i can control the sorting layer. It´s working, but i have a Button in this GameObject, which is not working after adding the Component. Have someone an idea, what i´m doing wrong?

Thank you very much :slight_smile:

Best Regards

you can add a component graphic raycaster after adding canvas. this will sove your issue.

when you add a canvas component to a gameobject to change a sorting layer , you are only changing the view of it but the raycast of the gameobject is still behind , so a Graphic Raycaster component is required