RealDocs

UCharacterMovementComponent::AvoidanceUID

property Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UPROPERTYVisibleAnywhereBlueprintReadOnlyAdvancedDisplay

Description

Unique identifier assigned by the avoidance manager when this component registers for RVO avoidance.

Caveats & Gotchas

  • Read-only in the editor and from Blueprint (VisibleAnywhere) — it's assigned by the avoidance manager's registration, not set by hand.
  • Only meaningful once the component is registered with an avoidance manager; there's no documented sentinel value for 'unregistered'.
  • Prefer GetRVOAvoidanceUIDFast() in engine-side code that implements IRVOAvoidanceInterface rather than reading the property directly.

Signature

int32 AvoidanceUID

Example

Read the assigned avoidance ID C++
if (GetCharacterMovement()->GetAvoidanceManager())
{
	int32 UID = GetCharacterMovement()->AvoidanceUID;
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.