Skip to content

UDFSoft/UnityLiveData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LiveData for Unity

A lightweight, type-safe reactive data holder inspired by Android's LiveData — but made for Unity (C#).
This lets you observe data changes safely, without needing manual event unsubscriptions.

✨ Key Features:

  • Zero memory leaks: automatic cleanup of destroyed MonoBehaviours
  • React to value changes with one line: Observe(this, value => { ... })
  • Immediately receives the current value on subscribe
  • Ideal for MVVM, clean architecture, UI binding, and reactive programming in Unity

🚀 Example:

public MutableLiveData<int> Health = new();
// ...
Health.SetValue(lives);
player.Health.Observe(this, health =>
{
    // ...
});

About

Android-like LiveData for Unity — type-safe observable data with auto-unsubscribe.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages