Is SSwatterMenuWidget::TransformTrump declared static?
I’m guessing not since it seems to be using the member variable TrumpAngle. In that case it won’t work with the RenderTransform_Static variant of Slate attributes, and you’ll probably want to use RenderTransform(this, &SSwatterMenuWidget::TransformTrump) instead.
Ah, I didn’t even think about that, thought static was referring to something else. It’s still not quite working though, RenderTransform seems to want an actual value instead of a delegate?
What widget are you calling RenderTransform on? Is it one of ours, or one you made yourself?
It seems from the error that RenderTransform is declared as a SLATE_ARGUMENT rather than a SLATE_ATTRIBUTE. Arguments can only accept values, not delegates.
Okay, I’ve just checked and RenderTransform is actually part of our common set of arguments for widgets (see TSlateBaseNamedArgs in DeclarativeSyntaxSupport.h).
SLATE_ATTRIBUTE( TOptional, RenderTransform )
This appears to be done to allow invalidation caching to function optimally, and you’re going to need to use the SWidget::SetRenderTransform function to update your render transform when it needs to change.