I am struggling to control what is being shown on the Tower UI. I have setup 7 different tiers of towers, and I need each tier to show something different on the UI when they are selected (different buttons and options no only limited to their upgrades). How would I go about getting different button / functions to display for these tiers? Thanks again, I am having a great time working within the project!
Viewing post in Tower Defense Template for Unreal Engine 4 comments
Thanks for your feedback.
Unfortunately, this functionality has not been implemented. But the template architecture makes it easy to do.
For implementation, you need to add variables to the TowerBase class that will determine whether specific buttons should be displayed or not.
The next step is to extend the TowerPanel. The TowerPanel contains the Tower variable which refers to the TowerBase that the panel displays information about. You need to add code to the Show function. It will have to show/hide the buttons you want depending on the values of the variables in the Tower variable.