Hi,
I think the best way to do it is going to be to have a image border with the shadow and animating its content padding.
First thing (most obvious) to try out is to use Padding
attribute in SBorder
calss. You should be able to create a getter function for it that looks something like this:
FMargin GetShadowBorderPadding() const
{
return FMargin(Your_dynamic_values_here);
}
then the definition of Padding parameter would look like this:
SNew(SBorder)
.Padding(this, &SShadowBorder::GetShadowBorderPadding)
[
....
]
It’s all in the SShadowBorder
- your custom widget class.
Now all you need is function to set/animate padding values and you should get what you need. If not - you can always try to override either OnPaint
or ArrangeChildren
function and then precisely set padding values.
It’s actually interesting how it can turn out and I think I’ll implement it myself ; )
Hope this helps.