Method FindBehaviorTreeByPath
FindBehaviorTreeByPath(string, string)
Finds a behavior tree by its path relative to a root path.
Declaration
IBehaviorTree FindBehaviorTreeByPath(string rootPath, string path)
Parameters
Type | Name | Description |
---|---|---|
string | rootPath | The base directory path to start the search from. |
string | path | The relative path to the target behavior tree. |
Returns
Type | Description |
---|---|
IBehaviorTree | The found behavior tree or null if not found. |
Examples
// Find tree in root folder
var tree = eyeServices.FindBehaviorTreeByPath(".", "MainLogic");
// Find tree in nested folder
var tree = eyeServices.FindBehaviorTreeByPath("Trees", "Combat/DPS");