Optional Hook in UIPanel for Manual Animation
Posted: Wed Dec 09, 2020 1:52 am
I was just implementing our ResponseMenu and realized that it requires you to use the Animator if you want the menu to wait for your animation to finish prior to changing the PanelState.
I was wondering if you'd be willing to add a hook to allow for programmatic animation. Like a callback I can call once my routine is done animating the open/close. Maybe a way to customize UIAnimatorMonitor where WaitForAnimation is virtual?
I know I can set deactivateOnHidden and make this work, but it seemed hacky to set the PanelState to Closed or Open before my animation finishes.
Maybe there's a better way for me to go about this?
I was wondering if you'd be willing to add a hook to allow for programmatic animation. Like a callback I can call once my routine is done animating the open/close. Maybe a way to customize UIAnimatorMonitor where WaitForAnimation is virtual?
I know I can set deactivateOnHidden and make this work, but it seemed hacky to set the PanelState to Closed or Open before my animation finishes.
Maybe there's a better way for me to go about this?