PlayerStats v2
Animate PlayerStats: Visible, Hidden
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 ModifyPlayerData.cs 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 Configuring Animation of the InventorySystem to see how to animate a simple UI-Panel's visibilty
Last updated