How to make my BehaviorTreeComponent in C++

So, i try to find answers, but in avery examle Behavior trree makes from blueprints. SOme of them make Tasks in C++, but no one ask how to add C++ task to tree (Blueprint or C++).

So…

For example I have UBTTask_MoveTo_Object class (based on UBTTask_MoveTo), and i want to add it into my tree. How to?

I’m not sure I understand your question correctly but to implement a task you should have a class extending UBTTaskNode (something that looks like this: https://gist.github.com/nullB0t/3d2e891d53bb756ac11218d9b50ade66)

After that you build your project and you should be able to right click from the BTree in the editor and be able to call this task in there.

Hope this helps!