- Home /
UI Buttons in prefab not working at all
I have a pause menu in my game with a Resume and Quit button. They are in a canvas which is inside the LevelManager prefab. There is an EventSystem in the prefab as well. I am using the new Input System. The timeScale is still 1.0f. There are no raycast targets in front of the buttons. For some reason the buttons do absolutely nothing still. They are set to interactable. I've checked to make sure the sorting order is the highest number. Am I missing something?
Answer by Master_Davicous · Sep 18, 2020 at 10:09 PM
Figured it out. I already knew you could only have 1 EventSystem per scene, but for some reason I had an event system on my player prefab, so since my game is multiplayer, that would mean there would be multiple EventSystems spawning.
Your answer
Follow this Question
Related Questions
Passing through a GameObject/Function to a button's OnClick 1 Answer
Weird behaviour when trying to dynamically create buttons 0 Answers
Is there a way to Instantiate a button prefab as a child of a Canvas? 2 Answers
positioning ui buttons in a scrollview 1 Answer
How is a Button component able to access a method on a prefab? 1 Answer