How to assign a UStruct parameter in a blueprint?

Hello,

I have a C++ UFunction which takes a UStruct as a parameter, such as

UFUNCTION(BlueprintCallable, Category=“foobar”)
void (UStruct *theStruct);

I am told during compilation that I need to make the parameter variable a pointer - which is fine, no problem with that.

But when I want to use this function within my blueprint, I can not assign a custom struct I made in the editor to the corresponding input pin.

The error message is that “Structure is not compatible with Structure Reference”.

So, how can I make such a Structure Reference?

Thanks a lot and best regards,

The UStruct type is only used when you want to access the reflection data on a low level. I don’t think it can be used with blueprints at all, and anyway it’s not used in the way you are trying to use it here. It describes the struct type, it does not hold an instance.

I don’t believe there is currently any way to pass a blueprint struct to C++ unfortunately.

Thank you kamrann, I was thinking the same - it seems currently not possible what I am trying to do :slight_smile: