UniMob.UI
ForkForked from UniMob.UI
A declarative library for building reactive user interfaces
com.unimob.ui Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/adrenak-unimob-ui.git README Markdown
Copy this to your project's README.md
## Installation
Add **UniMob.UI** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/adrenak-unimob-ui.git
```
[](https://www.pkglnk.dev/pkg/adrenak-unimob-ui)Used By (1)
Projects 1
README
UniMob.UI

A declarative library for building reactive user interface. Built over UniMob.
A quick example
So what does code that uses UniMob.UI look like?
using UniMob;
using UniMob.UI;
using UniMob.UI.Widgets;
using UnityEngine;
public class CounterApp : UniMobUIApp
{
[Atom] private int Counter { get; set; }
protected override Widget Build(BuildContext context)
{
return new Container
{
BackgroundColor = Color.cyan,
Child = new UniMobButton
{
OnClick = () => Counter += 1,
Child = new UniMobText(WidgetSize.Fixed(400, 100))
{
Value = "Tap count: " + Counter,
FontSize = 40,
MainAxisAlignment = MainAxisAlignment.Center,
CrossAxisAlignment = CrossAxisAlignment.Center,
}
}
};
}
}
More code samples are located in UniMob.UI Samples repository.
How to Install
Minimal Unity Version is 2019.3.
Library distributed as git package (How to install package from git URL)
Git URL (UniMob.UI): https://github.com/codewriter-packages/UniMob.UI.git
Git URL (UniMob): https://github.com/codewriter-packages/UniMob.git
License
UniMob.UI is MIT licensed.
Credits
UniMob.UI inspired by Flutter.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In