Finally, we need to build The 2 HUD objects. The initial one particular is usually a Textual content, while the 2nd a person is a Button. For your Textual content item we only need to established its concept. On the other hand, to the Button item we need to set its OnClick callback.unity source code