You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Reorganized and consolidated for easier navigation #rb Jurre.deBaare,Lucas.Dower #jira UE-156715 #preflight 62a9ac0f13004691f97cd9da #ROBOMERGE-OWNER: thomas.sarkanen #ROBOMERGE-AUTHOR: thomas.sarkanen #ROBOMERGE-SOURCE: CL 20667777 via CL 20668358 via CL 20668456 via CL 20668474 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017) [CL 20669758 by thomas sarkanen in ue5-main branch]
49 lines
2.0 KiB
C++
49 lines
2.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#include "Kismet/BlueprintFunctionLibrary.h"
|
|
#include "Animation/AnimNodeReference.h"
|
|
#include "SkeletalControlLibrary.generated.h"
|
|
|
|
struct FAnimNode_SkeletalControlBase;
|
|
|
|
USTRUCT(BlueprintType)
|
|
struct FSkeletalControlReference : public FAnimNodeReference
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
typedef FAnimNode_SkeletalControlBase FInternalNodeType;
|
|
};
|
|
|
|
// Exposes operations to be performed on a skeletal control anim node
|
|
// Note: Experimental and subject to change!
|
|
UCLASS(Experimental)
|
|
class ANIMGRAPHRUNTIME_API USkeletalControlLibrary : public UBlueprintFunctionLibrary
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
/** Get a skeletal control from an anim node */
|
|
UFUNCTION(BlueprintCallable, Category = "Animation|Skeletal Controls", meta=(BlueprintThreadSafe, ExpandEnumAsExecs = "Result"))
|
|
static FSkeletalControlReference ConvertToSkeletalControl(const FAnimNodeReference& Node, EAnimNodeReferenceConversionResult& Result);
|
|
|
|
/** Get a skeletal control from an anim node (pure) */
|
|
UFUNCTION(BlueprintPure, Category = "Animation|Skeletal Controls", meta=(BlueprintThreadSafe, DisplayName = "Convert to Skeletal Control"))
|
|
static void ConvertToSkeletalControlPure(const FAnimNodeReference& Node, FSkeletalControlReference& SkeletalControl, bool& Result)
|
|
{
|
|
EAnimNodeReferenceConversionResult ConversionResult;
|
|
SkeletalControl = ConvertToSkeletalControl(Node, ConversionResult);
|
|
Result = (ConversionResult == EAnimNodeReferenceConversionResult::Succeeded);
|
|
}
|
|
|
|
/** Set the alpha value of this skeletal control */
|
|
UFUNCTION(BlueprintCallable, Category = "Animation|Skeletal Controls", meta=(BlueprintThreadSafe))
|
|
static FSkeletalControlReference SetAlpha(const FSkeletalControlReference& SkeletalControl, float Alpha);
|
|
|
|
/** Get the alpha value of this skeletal control */
|
|
UFUNCTION(BlueprintPure, Category = "Animation|Skeletal Controls", meta=(BlueprintThreadSafe))
|
|
static float GetAlpha(const FSkeletalControlReference& SkeletalControl);
|
|
}; |