Hi,
for a builder game, i'm trying to show a menu under the selected building. I used a UIPanel + UIGrid + UIButtons for that.
When i select a building, i enable/disable buttons depending the type or state of the building (info, upgrade, produce unit, etc..) then positioning it under the selected building and finally active the panel.
The problem is that if i disable some buttons, the grid did'nt reposition buttons (grid's pivot set to center). Same thing for the sprite background with the "envelop content script". it has not resized.
So i'm wondering if my approach is correct. Can i use the same panel for all my buildings and just disable buttons or should i instanciate a empty panel and add buttons to it by script.
Also is it possible to tween scale the panel when i active it? grid will handle it ?