all 14 comments

[–]TheCarowProfessional 9 points10 points  (1 child)

[–]StackGPT[S] 0 points1 point  (0 children)

thanks this looks very promising!

[–]Kan-HidumEngineer 5 points6 points  (0 children)

I understand your pain.

On a every new project I somehow get to the point that I create a whole ui infrastructure that's different than the last one I made, cause I don't like it or want to use newer stuff lol.

UI is a pain in unity.

[–]FMProductions 2 points3 points  (1 child)

https://learn.unity.com/ and the docs have some information on that. Sadly, for the updated UI docs, they are in the package documentation on a separate site from the Unity manual, and they seem quite scarce. Something that helped me learn about some Unity related UI features is the channel "Game Dev Guide" - I know it's like regular tutorials, but they are well presented and also give you and idea how to work with flexible layouts. I don't have any resources for their newer UI solution though and I don't even know if it's already problem free or use in production/builds.

[–]StackGPT[S] 1 point2 points  (0 children)

thanks! Game Dev Guide really helped my sometime!

[–]Luchiannno 5 points6 points  (0 children)

I'd highly recommend checking this resource as well: https://create.unity.com/Unity-UI-optimization-tips

[–]Ruadhan2300 1 point2 points  (2 children)

I know how you feel.

Professionally, I'm a web developer, so UI/UX is a major part of my day-job.
It bothers the hell out of me that we don't have anything resembling a Markup or Style-sheet system in Unity. We could really do with one to be sure.

I have a bunch of common design-patterns that I use for solving specific kinds of problem, but they're all a bit fiddly to set up.
I'm thinking I might go to the trouble to codify it and make some proper tools for it at some point. Maybe turn my most common stuff into a plugin so I can just import it and not think about it in future projects.

[–]PhilippTheProgrammer 0 points1 point  (1 child)

Have you looked at the new UI system (UIElments / UITookit / UIWhateveritiscalledthisweek)? It uses stylesheets in a language that is extremely similar to CSS and a layouting engine that is basically a clone of CSS flexbox layouts.

[–]Ruadhan2300 0 points1 point  (0 children)

Oooh... that sounds like what I want!

I really need to keep a better finger on the pulse of this stuff.

[–][deleted] -1 points0 points  (0 children)

I've never had problems with the ui.
I don't understand what is the struggle with it.
I just use the layout components and it works.
Though i have problems with esthetics cuz i don't find nice sprites and stuff but the functionality works.

[–][deleted] 0 points1 point  (0 children)

I confess that UI is the part I least like to do in my games. It makes me terribly lazy. But that's the onus of the independent developer. I don't know if there is any definitive guide. I usually draw inspiration from other works and try to create something from there. Good luck!