I haver two interfaces, a Manager and a Worker. I can’t seem to find the correct syntax. I want to pass a generic Worker to a generic Manager.
class UManager : public UInterface
class MYCLASS_API IManager
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Interaction") bool DeliverWorker([something] worker);
I have tried TScriptInterface<IWorker> const& in place of [something], which sort of works, but not if I want to assign it to an internal IWorker pointer. I have also tried IWorker *. Is there a protocol for passing a pointer to an interface inside a function call (in anoppther interface). I have done this in blueprints, but no luck so far in C++.