FScopedAggregatorOnDirtyBatch

Allows us to batch all aggregator OnDirty calls within a scope.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectAggregator.h

Include

#include "GameplayEffectAggregator.h"

Syntax

struct FScopedAggregatorOnDirtyBatch

Remarks

Allows us to batch all aggregator OnDirty calls within a scope. That is, ALL OnDirty() callbacks are delayed until FScopedAggregatorOnDirtyBatch goes out of scope.

The only catch is that we store raw FAggregator*. This should only be used in scopes where aggreagtors are not deleted. There is currently no place that does. If we find to, we could add additional safety checks.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss