AActor::GetInstigatorPropertyName
#include "GameFramework/Actor.h"
Access: public
Specifiers: static
Description
Returns the FName of the `Instigator` UPROPERTY, allowing reflection-based systems to reference the property without hard-coding the string.
Caveats & Gotchas
- • Like all `Get*PropertyName` helpers in AActor, this is for engine-internal use by replication and editor tooling. Gameplay code should read the instigator via `GetInstigator()` and set it via `SetInstigator()`.
- • Uses `GET_MEMBER_NAME_CHECKED` — will fail to compile if the `Instigator` member is ever renamed, acting as a refactoring safety net.
Signature
static const FName GetInstigatorPropertyName() Return Type
const FName Example
Find Instigator property via reflection C++
FProperty* InstigatorProp = AActor::StaticClass()->FindPropertyByName(
AActor::GetInstigatorPropertyName()
);
check(InstigatorProp); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?