Is there any way to elegantly determine the type of a wildcard? I am trying to make a generic macro for setting blackboard values that takes a name and a wildcard, switches on the wildcard type and then calls the relevant “set value as” node but I cant find an inbuilt node for determining variable types; does anyone know a way around this?
I tried switching on name instead of the wildcard and found that the compiler got confused (“boolean is not compatible with vector” etc); it would seem that wildcard cannot be used for what I want. The only solution I can think of at this point is to have an input pin for each variable type and then determine which one isnt null.
Try using Enum values for each variable type and have your macro set the appropriate variable type based on the enum input
Yeah that was another solution that I thought of; I think this may be the only valid solution since I cant even find an easy way to check if a variable is null