Samples by Gamgaroo - 1

Games & Projects

Gamgaroo Unity Packages usage samples.

Unity 2019.3.13f1MIT LicenseUpdated 65 days agoCreated on May 26th, 2020
Go to source


S01: Basics

This is a simple sample of how to bind a View to a ViewModel’s Reactive Property.

public sealed class TestBehaviour : MonoBehaviour
    private readonly IReactiveProperty<float> _time = new ReactiveProperty<float>();

    private void Start()
        // Bind the View to the Property

    private void Update()
        // Update the Property value
        _time.Value += Time.deltaTime;

Run the Scene to see how the View is updating every frame when the Reactive Property value updates.


This is a more complex sample of how to create nested Views and set/bind values of ViewModels.

The video below shows the functionality of the sample.

Video Sample

Show all projects by Gamgaroo