UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimNode_BlendListByBool.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"
8#include "AnimNode_BlendListByBool.generated.h"
9
10// This node is effectively a 'branch', picking one of two input poses based on an input Boolean value
11USTRUCT(BlueprintInternalUseOnly)
13{
15private:
16#if WITH_EDITORONLY_DATA
17 // Used in conjunction with bUseSeperateBlendProfileForFalse
18 UPROPERTY(EditAnywhere, Category = BlendType, meta = (UseAsBlendProfile = true, FoldProperty, EditCondition="bUseSeperateBlendProfileForFalse", DisplayAfter="bUseSeperateBlendProfileForFalse"))
20
21 /* Specify whether to use a different blend profile for the 'false' branch than the true branch.
22 *
23 * If bUseSeperateBlendProfileForFalse is false (default), then the 'BlendProfile' is used when ActiveValue is both true or false
24 * If bUseSeperateBlendProfileForFalse is true, then the 'BlendProfileForFalse' value is used when the ActiveValue is false, but 'BlendProfile' is used when ActiveValue is true
25 */
26 UPROPERTY(EditAnywhere, Category = BlendType, meta = (FoldProperty, DisplayAfter="BlendProfile"))
28
29 // Which input should be connected to the output?
30 UPROPERTY(EditAnywhere, Category=Runtime, meta=(PinShownByDefault, FoldProperty))
31 bool bActiveValue = false;
32#endif
33
34public:
36
37 // Get which input should be connected to the output
38 ANIMGRAPHRUNTIME_API bool GetActiveValue() const;
39
40 ANIMGRAPHRUNTIME_API bool GetUseSeperateBlendProfiles() const;
41
42 ANIMGRAPHRUNTIME_API UBlendProfile* GetBlendProfileForFalse() const;
43
44protected:
45 ANIMGRAPHRUNTIME_API virtual int32 GetActiveChildIndex() override;
46 virtual FString GetNodeName(FNodeDebugData& DebugData) override { return DebugData.GetNodeName(this); }
47
48 ANIMGRAPHRUNTIME_API virtual UBlendProfile* GetBlendProfile() const override;
49};
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 BlendProfile.h:132
Definition AnimNode_BlendListBase.h:38
Definition AnimNode_BlendListByBool.h:13
FAnimNode_BlendListByBool()=default
virtual FString GetNodeName(FNodeDebugData &DebugData) override
Definition AnimNode_BlendListByBool.h:46
Definition AnimNodeBase.h:642
FString GetNodeName(Type *Node)
Definition AnimNodeBase.h:704
Definition ObjectPtr.h:488