Interfaces
Exposing C# Interfaces to Unreal
[UInterface]
public partial interface IInteractable
{
[UFunction(FunctionFlags.BlueprintEvent)]
public bool OnInteract();
[UFunction(FunctionFlags.BlueprintEvent)]
public bool StopInteract();
}C++/C# Implemented Interfaces
void ExecuteNativeImplementedInterface(AActor managedImplementedInterface)
{
if (managedImplementedInterface is IMyShowcaseInterface showcase)
{
showcase.OnInterfaceTriggered();
}
}Blueprint Implemented Interfaces
Last updated