UCharacterMovementComponent::AvoidanceGroup
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadOnlyAdvancedDisplay
Description
Group mask identifying which avoidance group this character belongs to, used together with GroupsToAvoid and GroupsToIgnore to filter RVO neighbors.
Caveats & Gotchas
- • Assigning this property directly at runtime does not re-register the group with the avoidance manager — call SetAvoidanceGroupMask() so the change actually takes effect.
- • SetAvoidanceGroup(int32) is deprecated in favor of SetAvoidanceGroupMask(const FNavAvoidanceMask&); the raw int32 overload is scheduled for removal.
Signature
FNavAvoidanceMask AvoidanceGroup Example
Assign this character to an avoidance group C++
GetCharacterMovement()->SetAvoidanceGroupMask(FNavAvoidanceMask(1 << 2)); Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?