UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimNodeConstantData.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"
6
7#include "AnimNodeConstantData.generated.h"
8
10
11// Any constant class data an anim node uses should be derived from this type.
12USTRUCT(BlueprintInternalUseOnly)
14{
16
17
18 const IAnimClassInterface& GetAnimClassInterface() const { check(AnimClassInterface); return *AnimClassInterface; }
19
21 int32 GetNodeIndex() const { return NodeIndex; }
22
23private:
24 friend class FAnimBlueprintCompilerContext;
25
27 UPROPERTY()
28 TScriptInterface<IAnimClassInterface> AnimClassInterface = nullptr;
29
34 UPROPERTY()
35 int32 NodeIndex = INDEX_NONE;
36};
#define check(expr)
Definition AssertionMacros.h:314
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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 USTRUCT(...)
Definition ObjectMacros.h:746
Definition AnimClassInterface.h:193
Definition ScriptInterface.h:139
Definition AnimNodeConstantData.h:14
int32 GetNodeIndex() const
Definition AnimNodeConstantData.h:21