- Home /
event system first selected
so I am using 4.6 unity and I am trying to get perfect or near perfect controller support for my UI. One thing I came across was the "First Selected" on the event system. Now, currently that is only allowing me to do it with one option from my UI. I would like more options as I have a pause, options and quit canvas's so when I open each, it requires my mouse to be moved in order to get the controller working on each. This defeats the purpose of using the controller. Is there anyway to attach a First Selected on each canvas and if so how?
I'm also new to Unity. Hence after reading your question. I started testing in Unity.
What i did was. I deleted the EventSystem object from hierarchy. And added seperate Event System and Standalone Input $$anonymous$$odule components to different panels. And assigned the desired Buttons( which we want first selected) from each panel to the Event System attached to them. On enabling those panels after disabling them. I was able to get my desired first selected buttons.
I don't know the repercussion of this method. But I hope it gets you somewhere started. Good Luck.
when doing this, i get an error http://gyazo.com/4307ae8e64d3760185096f7cc633a3f5
Hmm maybe someone with better insight can help. I'll try to look it up tomorrow and try to understand 'First selected' thingy more :)
And btw you can directly upload image files here ins$$anonymous$$d of some other website. ][1]
Answer by BrotherWrong · Mar 11, 2017 at 07:55 AM
While this IS two years old, I had the same issue, with the same error message. Here is what worked for me: Instead of adding a EventSystem Gameobject add it the EventSystem as a component to each of your panels. You can add the first selected menu item then.
When I do this it gives me an error saying you can only have one evensystem per scene. Is there any fix to that?
Your answer
![](https://koobas.hobune.stream/wayback/20220613175604im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
PointerEventData null reference expectation error 0 Answers
Problem with Graphic Raycast and using it with Xbox Controller 0 Answers
uUI - OnSelect: From Mouse/Pointer or Keyboard/Controller? 0 Answers
Is there a way to fire the inspector events from code? 0 Answers
Event System Not Working In UWP Build 2 Answers