UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimSubsystem_PropertyAccess.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"
7#include "PropertyAccess.h"
8#include "AnimSubsystem_PropertyAccess.generated.h"
9
10// The various call sites we can call into the property access library
11UENUM()
13{
14 // Access is made on a worker thread in the anim graph or in a BP function
15 WorkerThread_Unbatched UMETA(DisplayName="Thread Safe"),
16
17 // Access is made on a worker thread before BlueprintThreadSafeUpdateAnimation is run
18 WorkerThread_Batched_PreEventGraph UMETA(DisplayName="Pre-Thread Safe Update Animation"),
19
20 // Access is made on a worker thread after BlueprintThreadSafeUpdateAnimation is run
21 WorkerThread_Batched_PostEventGraph UMETA(DisplayName="Post-Thread Safe Update Animation"),
22
23 // Access is made on the game thread before the event graph (and NativeUpdateAnimation) is run
24 GameThread_Batched_PreEventGraph UMETA(DisplayName="Pre-Event Graph"),
25
26 // Access is made on the game thread after the event graph (and NativeUpdateAnimation) is run
27 GameThread_Batched_PostEventGraph UMETA(DisplayName="Post-Event Graph"),
28};
29
30USTRUCT()
32{
34
35 friend class UAnimBlueprintExtension_PropertyAccess;
36
38 ENGINE_API virtual void OnPreUpdate_GameThread(FAnimSubsystemUpdateContext& InContext) const override;
39 ENGINE_API virtual void OnPostUpdate_GameThread(FAnimSubsystemUpdateContext& InContext) const override;
40 ENGINE_API virtual void OnPreUpdate_WorkerThread(FAnimSubsystemParallelUpdateContext& InContext) const override;
41 ENGINE_API virtual void OnPostUpdate_WorkerThread(FAnimSubsystemParallelUpdateContext& InContext) const override;
43#if WITH_EDITORONLY_DATA
44 ENGINE_API virtual void OnLink(FAnimSubsystemLinkContext& InContext) override;
45#endif
46
48 const FPropertyAccessLibrary& GetLibrary() const { return Library; }
49
50private:
51 UPROPERTY()
53};
EAnimPropertyAccessCallSite
Definition AnimSubsystem_PropertyAccess.h:13
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition AnimSubsystem.h:88
Definition AnimSubsystem.h:53
Definition AnimSubsystem.h:66
Definition AnimSubsystem.h:40
Definition AnimSubsystem_PropertyAccess.h:32
const FPropertyAccessLibrary & GetLibrary() const
Definition AnimSubsystem_PropertyAccess.h:48
Definition AnimSubsystem.h:101
Definition PropertyAccess.h:402