I'm also having some trouble with the Button component on a dialogue box prefab i'm using for my game. I have a box with four choices, as you can see here:
The player can click on each choice and they work, but when I try to scroll through the choices with the arrow keys, I can go down to "Nevermind" and up to "Talk" with the arrow keys, but not horizontal, and it won't loop around. The "Navigation" section of the button component on my game object doesn't seem to change anything at all -- I even changed it to "nothing" on each button and could still move through the choices in the way I described.
I also tried using "Own Controls" in the UI > UI Boxes menus, but changing those controls didn't do anything either.
This issue may also be tied to my input keys? I might be doing something wrong there, but I'm not sure... I tried to set up shortcuts earlier to be used with the number keys, but those don't work, but will work when clicked on.
Can you post more details on the HUD's setup? Mainly the root game object's Rect Transform for how the positioning is set up :) Also, the display conditions of the HUD and in case you're using a canvas prefab for the UI layer the HUD is displayed on, details on that as well.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
barreytor said: ONLY WHEN THERE IS A SCROLL RECT SELECTED!
That sounds like a bug :) Will fix this in the next update, thanks for reporting!
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
gamingislove said: Can you post more details on the HUD's setup? Mainly the root game object's Rect Transform for how the positioning is set up :) Also, the display conditions of the HUD and in case you're using a canvas prefab for the UI layer the HUD is displayed on, details on that as well.
Sorry for the delayed reply! There are no display conditions for the HUD at the moment and I'm not using a canvas prefab for the UI layer it's on. Here is the Rect Transform:
Tested such a setup and works fine on my end - I'll probably need a Unity test project to check this out. You can reduce the size by deleting the Library folder from the project - zip it up, upload it somewhere (e.g. dropbox) and send me the link to contact@orkframework.com.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I’m having a similar issue with my player hud from the tutorial. If i change a scene or even go back to the main menu and re-enter game the hud is placed directly in the centre of the screen rather than in the designated position.
@cookereptiles Ah, yeah - can confirm that, but only happens if x/y padding is 0, e.g. changing one of them to 1 or any other value than 0 should fix it for now. Will be fixed in the next update.
@BapSlambino Are you using a UI layout to place the HUD?
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Oh, removing the UI layout or no longer anchoring it to the upper left solved the issue, thanks for pointing that out!
I haven't set up a UI Layout but I had the default one selected in "Information Settings" portion of my HUD's settings. After switching that to "none" my issue was solved. The default UI Layout settings were anchored to the upper left, so changing that to upper right instead also fixes the issue.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The player can click on each choice and they work, but when I try to scroll through the choices with the arrow keys, I can go down to "Nevermind" and up to "Talk" with the arrow keys, but not horizontal, and it won't loop around. The "Navigation" section of the button component on my game object doesn't seem to change anything at all -- I even changed it to "nothing" on each button and could still move through the choices in the way I described.
I also tried using "Own Controls" in the UI > UI Boxes menus, but changing those controls didn't do anything either.
This issue may also be tied to my input keys? I might be doing something wrong there, but I'm not sure... I tried to set up shortcuts earlier to be used with the number keys, but those don't work, but will work when clicked on.
Mainly the root game object's Rect Transform for how the positioning is set up :)
Also, the display conditions of the HUD and in case you're using a canvas prefab for the UI layer the HUD is displayed on, details on that as well.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It's in the UI Box component of the UI Box, under Input settings, and ONLY WHEN THERE IS A SCROLL RECT SELECTED!
I'm sure I'll be thanking myself later when I forget this information and go looking for it again.
P.S.: Sorry for the necropost.
Will fix this in the next update, thanks for reporting!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thanks!
You can reduce the size by deleting the Library folder from the project - zip it up, upload it somewhere (e.g. dropbox) and send me the link to contact@orkframework.com.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Ah, yeah - can confirm that, but only happens if x/y padding is 0, e.g. changing one of them to 1 or any other value than 0 should fix it for now.
Will be fixed in the next update.
@BapSlambino
Are you using a UI layout to place the HUD?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I haven't set up a UI Layout but I had the default one selected in "Information Settings" portion of my HUD's settings. After switching that to "none" my issue was solved. The default UI Layout settings were anchored to the upper left, so changing that to upper right instead also fixes the issue.
Thanks for helping me figure that out, everyone!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!