Hi all, I am trying to hook up my text ui to be a readout of player input. This is my current setup with 2 basic gameobjects:
-
CameraGameObject (Parent) ← TextComponent (Child) ← UIScript
-
PlayerGameObject
PlayerGameObject has a public float called CurrentHorizontalInput which returns the X axis of player input. My problem is, I’m unable to find which function to call to update the Text in TextComponent.
What function do you call to set text? How would you do this? I’m really sorry for the inconvenience and I’ve gone through every beginner tutorial video and more and am still unclear on which specific function to call.
