Exposing Delegate from another UO

I have two UObjects “UFloatClamp” and “UHeatSphereComponent” and i want a reference in UHeatSphereComponent to the delegates of UFloatClamp, how do i accomplish that?

UFloatClamp.h:

UCLASS()
class X_API UFloatClamp : public UObject
{
	GENERATED_BODY()

//VARS//

	DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FEventLimit, float, Overflow);

	UPROPERTY(BlueprintAssignable)
	FEventLimit OnUpperLimit;
	UPROPERTY(BlueprintAssignable)
	FEventLimit OnLowerLimit;
};

UHeatSphereComponent:

UCLASS()
class PATHEGA_API UHeatSphereComponent : public USphereComponent
{
	GENERATED_BODY()
private:
	UFloatClamp * Heat;
	FORCEINLINE void RefreshSphere();
public:
//VARS//

	UFUNCTION(BlueprintPure)
	UFloatClamp::FEventLimit& GetUpperLimitEvent();
	UFUNCTION(BlueprintPure)
	UFloatClamp::FEventLimit& GetLowerLimitEvent();
};

In the other questions it was more about exposing it to blueprint itself but not from other objects :s

1 Like