Dear Unreal Community,
[EDIT]Added the Delegate/Event Declaration[/EDIT]
I just wanted to do something like this:
// Delegate/Event Declaration in external class: DECLARE_EVENT_OneParam(UManeuverExecutionMovementComponent, FManeuverFinishedEvent, FTransform) // Header: FTransform MyGlobalTransform; FTransform EnemyGlobalTransform; void OnManeuverFinished(FTransform Offset, FTransform& GlobalPosition); ... // Source (Registration) MyManeuverComponent.OnFinished().BindUObject(this, &AMyGameMode::OnManeuverFinished, MyGlobalTransform); EnemyManeuverComponent.OnFinished().BindUObject(this, &AMyGameMode::OnManeuverFinished, EnemyGlobalTransform);
But I get compiler errors because there is no method with two FTransform arguments. I did already solve the issue by using pointer to actors (pointer to FTransform are not allowed for some reason).
I’m posting because I’m curious: Is there a helper like std::ref for such use cases?
Have a nice Day