Recent content by MirrorDraw

  1. M

    I want the source code for the Behavior Tree Editor

    Can you send me a copy?
  2. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    private void Test1() { //设定并且空运行一次 var tree = new GameObject("Test").AddComponent<BehaviorTree>(); tree.StartWhenEnabled = false; tree.ExternalBehavior = Resources.Load<ExternalBehavior>("Test"); tree.EnableBehavior(); //设置节点...
  3. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    The plug-in, meanwhile, doesn't seem to have the ability to build trees from code. (Add, modify, remove nodes) hopefully, in the future, the tree will be built on the fly, which will allow more possibilities. For example, a game that can customize its strategy, if it can build a tree from...
  4. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    I found that after the behavior tree runs, the internal tree reference is converted to multiple nodes, and it is easy to set the parameters within the reference tree through code. However, this is not friendly, and I sincerely hope that in the future we can directly set the nodes in the...
  5. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    But I set the callback in the node, as shown in the following example. Because of hot updates, I can't write the logic directly inside the node; I have to assign it externally.
  6. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    Earlier I used the following example to modify the node BehaviorTreeReference, but it didn't work. Running tree does not print "Log Success". private void Test1() { //Set Log var exTreeAsset_Log = Resources.Load<ExternalBehavior>("Log"); var exTree_Log =...
  7. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    I don't want to change the referenced tree, but the nodes in the referenced tree. For example, the following code is invalid. exTree_Log.FindTask<Log>().text = "Log Success";
  8. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    I need to modify the parameters and callbacks of the internal Task of the Behavior Tree Reference, not the Variables of the Behavior Tree Reference.
  9. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    Thank you very much, but I still can't succeed, can you give an example.
  10. M

    How can I dynamically modify the data at the BehaviorTreeReference node through C# code

    I have a generic behavior tree and reference it in many trees. I want to use different parameters in different trees. I can't use public variables because of hot updates. I need to change it in code, but it doesn't work no matter how much I try, okay.
Top