[Open Source Tool] Preset Styles for Components!

Hi there, guys!

I’d like to introduce you to a new framework for Unity3D that allows for easy management of component styles using a CSS-like approach. With this framework, Unity developers can easily modify the appearance of their components using a preset system, without having to write codes.

One of the key benefits of this framework is that it allows for small-scale management of components, which can be a challenge when using prefab systems alone. Additionally, because the framework only works at design time, there is no runtime overhead.

To take a look, please visit github below.

I hope you’ll find this framework as helpful and convenient as I have!

ps) This is not a commercial project, I just want to make it usable and have ideas to improve it for my future projects!

1 Like

I read the repository’s instructions which is well done. However you forgot to showcase what this is really about. :wink:
Basically show us “Why would I start to get interested in it? What would I get out of it?”
That should be the first thing to show since this is a highly visual tool from what I gathered. But I only learned how to use it, not why.

As far as I took away you can somehow apply “styling” to your MonoBehaviour scripts in the Inspector … or maybe this is for styling Editor UI in general? Does it work with, or even require, the new UI Toolkit / UI Builder? Is the CSS-like a custom approach of yours, or does it use actual CSS or USS?

Thank you for the interests and feedback!

Actually this is a new way to utilize unity3d’s own preset system. The reason I mention “CSS-like” is it utilize selector for applying presets.
I see what I missed now, I gotta create some promo examples that explains what developer can archive by utilizing the tool and attach them in ReadMe.

Thank you!

1 Like

Hey I just tested it and it is really nice and easy. Only inspector did not work really (the dragged in component was not shown… only list of arrays 2022.3.6f).

I had similair idea, because our current system is good as well but we use lots of componenten per gameobject. We lose overview after a while since its huge project. We design for multiple plattforms. screenorienation etc. So basically we move gameobjects based on orientation, hide or show stuff or do the style applies. But since we start losing overview I wanted to make kinda smiliar system with styles + some more features like visibility (css display:non or visibility:none etc).

We maybe take some ideas from your project if it is ok hehe.

1 Like

It’s always okay! Under MIT license :smile: