I have a scroll view and when I place buttons inside it they are not interactable how I can fix that?
I have a scroll view and when I place buttons inside it they are not interactable how I can fix that?
I'm listing down common mistakes which can cause UI intractable issues in Unity:
Make sure you have a Game Object with an Event System and Standalone Input Module component attached to it in your Scene, You can create one from GameObject Menu > UI > Event System.
Screenshot showing the same
Make sure some UI element/Game Object not blocking your clicks(sometimes it happens we have a transparent image over our element which can block input).
Make sure there is a Graphics Raycaster component attached to the game object which contains a Canvas component if you want their child elements to receive input.
Make sure your button's Interactable property is set to true.
Make sure you set the Raycast Target property to true for your button's Image.
Is it in the contents box inside the scroll View? If not then put the game object in there