๐งท Quality-of-Life Statics
Short Description
Static helpers for self-reference Object Variables and local player stable ID management.
Long Description
The QoL statics provide utilities for maintaining the self-reference Object Variables used by QoL classes. They also forward calls to the local player registry subsystem to manage stable player IDs.
๐ Features
- Ensure, clear, or resolve self-reference Object Variables.
- Resolve QoL references by class and stable ID.
- Register and query local player stable IDs.
๐ Usage Examples
FGorgeousQualityOfLifeStatics::EnsureSelfReference(this, AdditionalGorgeousData, bActivateNetworkingCapabilities);
Use Get Quality Of Life References nodes in Blueprint tooling when available.
EnsureSelfReference
Ensures the self-reference Object Variable exists and is populated with the owner.
| Parameter Name | Type | Description |
|---|---|---|
Owner |
UObject* |
QoL class instance to register. |
AdditionalData |
TMap<FName, FGorgeousObjectVariableEntry>& |
Map containing self-reference entry. |
bExposeThroughNetworkStack |
bool |
Whether to expose through root network stack. |
FGorgeousQualityOfLifeStatics::EnsureSelfReference(this, AdditionalGorgeousData, true);
Best Practices
- Always call
EnsureSelfReferenceduring QoL initialization paths. - Use stable IDs when resolving player-specific references.
Troubleshooting
- If self references are missing, verify the QoL macros are applied in constructors.