UMG and Blueprint interface

Hello

I’m trying to communicate with a blueprint actor from UMG using blueprint interfaces. But I can’t get it to fire inside the actor…

Can someone tell me what I’m doing wrong?

My UMG blueprint:

My actor blueprint:

Hey thanks for reply…

I don’t know if buildingRef is valid I think so. I made the varible inside the UMG BP as a reference to the actor(BP_Building_test)

In debug mode I see nothing firing inside BP_Building_test when I press button2…

If I move the blueprint interface call inside my playercontroller, it works fine with a keyboard key:

2 quick questions:

Are you sure the BuildRef is valid?

Are you certain it’s not being called and that it is not a problem with your material generation?

Testable with just using Print Strings.

I haven’t seen where/how BuildingRef is set.

Can you throw a print string into you UMG and print the name of the buildingRef to verify its real and referencing what you think it is?

Thanks

You where right my Building Reference inside UMG was invalid and gave me “none” when i print text.

Do I need to get the reference from the playercontroller like in the screenshot or is there another method?

Without knowing the system we have to figure out how your system wants to get references.

Is this something you want the user to select in the world?

Is there only one of these ever and you want to just run the code on it?

Do you want to run this on every instance of a Building?

Are you spawning the building and something else has a reference you want to use?