UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkeletonRemappingRegistry.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8
10class USkeleton;
11class FEngineModule;
12
13namespace UE::Anim
14{
15
16struct FSkeletonRemappingRegistryPrivate;
17
18// Global registry of skeleton remappings
19// Remappings are created on-demand when calling GetRemapping.
20// Calling public functions from multiple threads is expected. Data races are guarded by a FRWLock.
22{
23public:
24 // Access the global registry
26
27 // Get a mapping between a source and target skeleton, built on demand
28 // Remapping is only valid locally to this call and could be free'd later (they are stored as shared ptrs)
29 // Do not assume ownership of the mapping after this call.
31
32 // Refresh any existing mappings that the supplied skeleton is used with
34
35private:
37 friend ::FEngineModule;
38
39private:
40 // Initialize the global registry
41 static ENGINE_API void Init();
42
43 // Shutdown the global registry
44 static ENGINE_API void Destroy();
45
46 // Mappings map is guarded with a RW lock
47 FTransactionallySafeRWLock MappingsLock;
48
50
51 // All mappings
54};
55
56}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition EngineModule.h:14
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition SkeletonRemappingRegistry.h:22
ENGINE_API const FSkeletonRemapping & GetRemapping(const USkeleton *InSourceSkeleton, const USkeleton *InTargetSkeleton)
Definition SkeletonRemappingRegistry.cpp:67
static ENGINE_API FSkeletonRemappingRegistry & Get()
Definition SkeletonRemappingRegistry.cpp:48
ENGINE_API void RefreshMappings(const USkeleton *InSkeleton)
Definition SkeletonRemappingRegistry.cpp:111
Definition CriticalSection.h:14
Definition Skeleton.h:295
Definition AnimationAsset.h:42
Definition SkeletonRemapping.h:11
Definition Tuple.h:652
Definition WeakObjectPtrTemplates.h:25
Definition SkeletonRemappingRegistry.cpp:15