- Home /
Switch Focus between CanvasGroups
Hello Everyone,
today i have a Question that is not easy to ask. :D To make it easier i have painted a picture below..
Ok, i have a menu that i subdivided into 3 groups. Where group 3 consists only of two buttons to switch between group one and two. Imagine in the picture below that i have just click BTN 2 in CanvasGroup3. Now, CanvasGroup 2 is active, CG1 is inactive. But when i move the coursor around it highlights and scrolls CG 2 in a very wrong place. The "red" Cursor is not close to BTN1 but its highlight shows up.
I guess it is and "focus" problem? When i click somewhere into CG 2 the problem is solved.
Answer by skaddi · Nov 16, 2015 at 09:38 PM
After weeks of searching...!!!!!!!
The error was in my input setting. I have set horizontal and vertical to the arrow keys and the mouse axis. But i have a H and V MouseMovement defined as well. This Input were binded the mouse axis, too. So, the mouseinput was kind of duplicated and the cursor was at two points at the same time.
The mouse axis linked to horizontal and vertical was part of an old version of my game and i forgott to delete it. ^^