Hide loop count options if "Infinite Loop" is checked.
This commit is contained in:
@@ -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<int32> LoopCountSelector;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user