#SetColorAndOpacity Without Casting

1 messages · Page 1 of 1 (latest)

little hinge
#

Trying to figure out how to Set Color and opacity on a target widget without knowing explicit type. There's too many possible options to make casting an elegant solution though i suppose i could check for literally every widget class as a last resort. Anyone have ideas?

#

POST:BACKUP
Looking for suggestions from anyone on how i can call a function named "SetColorAndOpacity" on any type of UWidget without knowing the explicit type considering that for whatever reason Epic didn't make the function part of an interface as far as i can tell and its not a UFunction so the following doesn't work: ```
else if (UFunction* ContentFunction = Target->FindFunction("SetContentColorAndOpacity"))
{
Target->ProcessEvent(ContentFunction, &Params);
}

#

okay it turns out it is a ufunction on Some, but this event still isnt running. Im confused

#

And Yes the function is being found