Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 304 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 304 Bytes

UniRxForNGUI

There are UniRx helper classes for NGUI.

[SerializedField] GameObject btn;
[SerializedField] UIInput input;

void Start() {
	btn.OnClickAsObservable().Subscribe( _ => Debug.Log("Clicked") ).AddTo(this);

	input.OnChangeAsObservable().Subscribe( t => Debug.Log(t) ).AddTo(this);
}