How do you call interface function from a different module in Blueprints?
I want to call ExportAssets from the IAssetTools interface. There's already an implementation of this interface in "Source/Developer/AssetTools/AssetTools.h" and its part of the AssetToolsModule. When I call the function in blueprint nothing happens.
However this does nothing. What I had to do was create a cpp class that includes that module and creates a function to call that function.
I just inherit from this cpp class in a blueprint and then call that function and it works. There has to be an easier way then this?
asked Oct 24 '17 at 07:51 PM in Blueprint Scripting
A Interface itself does nothing and the node will ignore everything that did not implement that Interface (Target). Since you want to call the already implemented Functionality of FAssetToolsModule the way you got it is correct. You could also implement the Interface on your Class but you would do the exact same thing there. The only benefit would be that you can call it trough the Interface.
You might want to lookup what a Interface is (easy to find on the Internet)
answered Oct 24 '17 at 08:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here