Download

Setting Dynamic Metadata Values

Does anyone know if it’s possible to set values for metadata keys of UFUNCTIONS using dynamic values from variables or functions?

Let’s say I want to set the CompactNodeTitle of a UFUNCTION from a variable that represents the name of the object. I have a base object class that has a default name “Default”. However, in blueprints, I want to be able to create a blueprint class based off the base object class and change the name variable through changing the blueprint class defaults to change the CompactNodeTitle.

That way, if I create a new blueprint class using the base object type, the exposed function node will show a title of “Default”. If a designer wanted to change the name varible to “Value”, then the function node will read “Value”.

Is this possible?