Navigation
API > API/Plugins > API/Plugins/UAF > API/Plugins/UAF/FRemapPoseDataPool
Description
Get or create remap data for a source->target reference pose pair. On first access for a given pair, FRemapPoseData::Reinit() is called to build the bone mapping. Subsequent calls with the same pair return the cached data. If either reference pose's skeletal mesh has changed since the last Reinit, the data is refreshed. Thread safety notes: GetRemapData() returns a reference to the cached FRemapPoseData. The read lock is released before the reference is used by the caller. This is safe because:
GarbageCollect() only runs from FDataRegistry::HandlePostGarbageCollect, which executes on the game thread between frames and never during animation evaluation.
ShouldReinit() only returns true if the skeletal mesh pointer changed, which doesn't happen mid-frame.
All animation evaluation completes within a single frame before GC can run. Therefore, returned references remain valid for the duration of their use during evaluation.
| Name | GetRemapData |
| Type | function |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/RemapPoseDataPool.h |
| Include Path | #include "RemapPoseDataPool.h" |
| Source | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Private/RemapPoseDataPool.cpp |
const FRemapPoseData & GetRemapData
(
const FReferencePose & InSourceRefPose,
const FReferencePose & InTargetRefPose
)