PlayerStats v2
Last updated
Was this helpful?
Last updated
Was this helpful?
To create an animated UI Prefab: PlayerStats, where pressing the tab key causes the panel to slide-off screen is straight-forward. The script below shows modifications needed for the PlayerStats.cs script to listen for keypress of tab-key. Note that this version also uses GameData: onPlayerDataUpdate event
Note: The script can also be added to PlayerStats to create an easy way to modify GameData by configuring Buttons in the Inspector.
See the video for of the InventorySystem to see how to animate a simple UI-Panel's visibilty