UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimationAssetExtensions.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
10
11#include "AnimationAssetExtensions.generated.h"
12
13UCLASS()
15{
17public:
18
19#if WITH_EDITOR
25 UFUNCTION(BlueprintPure, Category = AnimationAsset, meta = (ScriptMethod))
26 static USkeleton* GetSkeleton(UAnimationAsset* InAsset)
27 {
28 if (InAsset)
29 {
30 return InAsset->GetSkeleton();
31 }
32
33 return nullptr;
34 }
35#endif // WITH_EDITOR
36};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition AnimationAssetExtensions.h:15
Definition AnimationAsset.h:1020
Definition BlueprintFunctionLibrary.h:16
Definition Skeleton.h:295