Updating UI
You can see an example implementation of the UI by downloading the example project our Fab page.
1 - Listening for Stat changes
Listening for stat changes is straightforward: just grab a reference to your Inventory Component and bind its On Stat Updated event. In the example below, I’m binding a callback on my UI called Stats Updated
so it fires whenever any Stat changes. Be sure to manually refresh your UI right after binding your callback to OnStatChanged so it displays the correct values when the game starts.

Here you can see an example of health bar being updated based on the logic shown above.

Last updated