Components
Components are normal MonoBehaviour scripts that inherit LuiComponent:
public sealed class InventoryScreen : LuiComponent
{
public override LuiNode Render()
{
return Lui.Div("w-screen h-screen bg-slate-950");
}
}Inspector fields are supported just like in a normal MonoBehaviour script.
Elements
Element builders are static methods on Lui:
Lui.Div(...)
Lui.Text(...)
Lui.Button(...)
Lui.Image(...)
Lui.Scroll(...)
Lui.Input(...)Styling
Each builder accepts a Tailwind-like class string:
Lui.Div("p-6 rounded-xl bg-slate-900 border border-slate-700")Classes are parsed once per unique string and cached.
You can view here all supported classes.
Last updated on