From 629ebacd646c33a9bf81a5c471aaa7724322d7eb Mon Sep 17 00:00:00 2001 From: Menotdan <32620310+Menotdan@users.noreply.github.com> Date: Fri, 8 Dec 2023 02:01:13 -0500 Subject: [PATCH] Hide loop count options if "Infinite Loop" is checked. --- Source/Engine/AI/BehaviorTreeNodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/AI/BehaviorTreeNodes.h b/Source/Engine/AI/BehaviorTreeNodes.h index 170d0f59e..b92f0f0d9 100644 --- a/Source/Engine/AI/BehaviorTreeNodes.h +++ b/Source/Engine/AI/BehaviorTreeNodes.h @@ -310,11 +310,11 @@ API_CLASS(Sealed) class FLAXENGINE_API BehaviorTreeLoopDecorator : public Behavi bool InfiniteLoop = false; // Amount of times to execute the node. Unused if LoopCountSelector is used or if InfiniteLoop is used. - API_FIELD(Attributes="EditorOrder(20), Limit(0)") + API_FIELD(Attributes="EditorOrder(20), Limit(0), VisibleIf(nameof(InfiniteLoop), true)") int32 LoopCount = 3; // Amount of times to execute the node from behavior's knowledge (blackboard, goal or sensor). If set, overrides LoopCount. Unused if InfiniteLoop is used. - API_FIELD(Attributes="EditorOrder(30)") + API_FIELD(Attributes="EditorOrder(30), VisibleIf(nameof(InfiniteLoop), true)") BehaviorKnowledgeSelector LoopCountSelector; public: