.h // This class does not need to be modified. UINTERFACE(MinimalAPI, Blueprintable) class UStepInterface : public UInterface { GENERATED_BODY() }; /** * */ class STEPSSYSTEM_API IStepInterface { GENERATED_BODY() // Add interface functions to this class. This is the class that will be inherited to implement this interface. public: UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category = "步骤系统") void BPI_StopDefaultInput(bool WantStop); }; .cpp if (MyController->Implements<UStepInterface>()) IStepInterface::Execute_BPI_StopDefaultInput(MyController,true);