This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using TMPro; | |
| namespace UniRx.Extensions | |
| { | |
| public static class UnityUIExtensions | |
| { | |
| public static IDisposable SubscribeToText(this IObservable<string> source, TextMeshProUGUI text) | |
| { | |
| return source.SubscribeWithState(text, (x, t) => t.text = x); |