You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
For now, removing these as their semantics are due to change Also converting Update and Become Relevant functions to use more-devived-typed update context (less casting required) #rb Jurre.deBaare #ROBOMERGE-SOURCE: CL 16771205 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935) [CL 16771237 by thomas sarkanen in ue5-release-engine-test branch]
53 lines
2.6 KiB
C++
53 lines
2.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Kismet/BlueprintFunctionLibrary.h"
|
|
#include "Animation/AnimNodeReference.h"
|
|
#include "Animation/AnimExecutionContext.h"
|
|
#include "AnimExecutionContextLibrary.generated.h"
|
|
|
|
class UAnimInstance;
|
|
|
|
// Exposes operations to be performed on anim node contexts
|
|
UCLASS()
|
|
class ANIMGRAPHRUNTIME_API UAnimExecutionContextLibrary : public UBlueprintFunctionLibrary
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
#if WITH_EDITOR
|
|
/** Prototype function for thread-safe anim node calls */
|
|
UFUNCTION(BlueprintInternalUseOnly, meta=(BlueprintThreadSafe))
|
|
void Prototype_ThreadSafeAnimNodeCall(const FAnimExecutionContext& Context, const FAnimNodeReference& Node) {}
|
|
|
|
/** Prototype function for thread-safe anim update calls */
|
|
UFUNCTION(BlueprintInternalUseOnly, meta=(BlueprintThreadSafe))
|
|
void Prototype_ThreadSafeAnimUpdateCall(const FAnimUpdateContext& Context, const FAnimNodeReference& Node) {}
|
|
#endif
|
|
|
|
/** Get the anim instance that hosts this anim node */
|
|
UFUNCTION(BlueprintPure, Category = "Anim Node", meta=(BlueprintThreadSafe))
|
|
static UAnimInstance* GetAnimInstance(const FAnimExecutionContext& Context);
|
|
|
|
/** Internal compiler use only - Get a reference to an anim node by index */
|
|
UFUNCTION(BlueprintPure, BlueprintInternalUseOnly, meta=(BlueprintThreadSafe, DefaultToSelf = "Instance"))
|
|
static FAnimNodeReference GetAnimNodeReference(UAnimInstance* Instance, int32 Index);
|
|
|
|
/** Convert to an initialization context */
|
|
UFUNCTION(BlueprintCallable, Category = "Anim Node", meta=(BlueprintThreadSafe, ExpandEnumAsExecs = "Result"))
|
|
FAnimInitializationContext ConvertToInitializationContext(const FAnimExecutionContext& Context, EAnimExecutionContextConversionResult& Result);
|
|
|
|
/** Convert to an update context */
|
|
UFUNCTION(BlueprintCallable, Category = "Anim Node", meta=(BlueprintThreadSafe, ExpandEnumAsExecs = "Result"))
|
|
static FAnimUpdateContext ConvertToUpdateContext(const FAnimExecutionContext& Context, EAnimExecutionContextConversionResult& Result);
|
|
|
|
/** Convert to a pose context */
|
|
UFUNCTION(BlueprintCallable, Category = "Anim Node", meta=(BlueprintThreadSafe, ExpandEnumAsExecs = "Result"))
|
|
static FAnimPoseContext ConvertToPoseContext(const FAnimExecutionContext& Context, EAnimExecutionContextConversionResult& Result);
|
|
|
|
/** Convert to a component space pose context */
|
|
UFUNCTION(BlueprintCallable, Category = "Anim Node", meta=(BlueprintThreadSafe, ExpandEnumAsExecs = "Result"))
|
|
static FAnimComponentSpacePoseContext ConvertToComponentSpacePoseContext(const FAnimExecutionContext& Context, EAnimExecutionContextConversionResult& Result);
|
|
}; |