Add outline for relevant BT nodes when debugging tree

This commit is contained in:
Wojtek Figat
2023-09-19 21:24:00 +02:00
parent 336fe46e03
commit e9cf188c2d
3 changed files with 22 additions and 3 deletions

View File

@@ -169,7 +169,12 @@ void Behavior::OnDisable()
#if USE_EDITOR
String Behavior::GetNodeDebugInfo(BehaviorTreeNode* node, Behavior* behavior)
bool Behavior::GetNodeDebugRelevancy(const BehaviorTreeNode* node, const Behavior* behavior)
{
return node && behavior && behavior->_knowledge.RelevantNodes.Get(node->_executionIndex);
}
String Behavior::GetNodeDebugInfo(const BehaviorTreeNode* node, Behavior* behavior)
{
if (!node)
return String::Empty;