# Behavior Tree "class not found, make sure it's saved"

**URL:** <https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443>\
**Category:** AI\
**Tags:** Behavior-Tree, unreal-engine, editor, question\
**Created:** [August 31, 2015, 2:04am UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443 "2015-08-31T02:04:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [August 31, 2015, 2:04am UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/1 "2015-08-31T02:04:50Z")

</div>

Everytime, I start Unreal Editor, one of my nodes in Behavior Tree gets reseted and I need to manually restore it to the correct one. Not only this annoying, but also I cannot run a standalone game even if I correct the BT.

I verified the engine but that did not help me.  
Could you point me out , what is wrong with my tree.

Thanks,

this is what I get everytime I start Unreal Editor

 ![56432-error.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/8/6c8ecdbfbc30b2fb67e85a7a51aeed1162dd6c69.png)

this is desired version:

 ![56433-correct.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/f/75f4a632794cc3b167666c785610d54e33d6d923.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 31, 2015, 8:55pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/2 "2015-08-31T20:55:41Z")

</div>

Hello yateam,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so, could you provide a detailed set of steps to reproduce this issue on our end?
3. Could you provide screen shots of any other blueprints that may be involved with this issue?

---

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [August 31, 2015, 9:27pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/3 "2015-08-31T21:27:46Z")

</div>

1. & 2) - I haven’t tried in a clean project. I will do that later.

2. I don’t use blueprints. My tasks are C++ classes based on UBTTask\_BlackboardBase. Interesting thing that I have implemented a few of them - and they almost similar but for some reason only GoTo Task gives such results.

---

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [September 2, 2015, 3:47am UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/4 "2015-09-02T03:47:14Z")

</div>

Hi Rudy, I was able to reproduce the issue in a clean project.

1. File → New C++ Class
2. Create class BTTask\_GoTo : public BTTask\_BlackboardBase
3. Create behavior tree. Add Selector to the root node. Add newly created GoTo task as a child to the Selector node. Save, close the editor
4. Open editor, open the tree - You can see the screenshot I attached earlier.

My temporal workaround for the issue is to create task with a different name. I chose BTTask\_GoToDestination. Seems like working fine for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 2, 2015, 3:42pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/5 "2015-09-02T15:42:47Z")

</div>

Hello yateam,

I have a few more questions to clarify a few of the steps that you gave in your last comment.

Quick questions:

1. Could you provide the code that is been used that may be involved with this issue?
2. When you say create a class BTTask\_Goto, did you mean for me to create a class derived from BTTask\_MoveTo?

---

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [September 2, 2015, 7:04pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/6 "2015-09-02T19:04:09Z")

</div>

For the clean project where I tested it, it is really empty.

```
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "BehaviorTree/Tasks/BTTask_BlackboardBase.h"
#include "BTTask_GoTo.generated.h"

/**
 * 
 */
UCLASS()
class KOSMOFRONT_API UBTTask_GoTo : public UBTTask_BlackboardBase
{
	GENERATED_BODY()
	
};

```

As you see I extended it from UBTTask\_BlackboardBase, not from MoveTo.

After I renamed it from UBTTask\_GoTo to UBTTask\_GoToDestination, everything went fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 9, 2015, 8:15pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/7 "2015-09-09T20:15:39Z")

</div>

Hey yateam-

I was able to reproduce the error in your screenshot. As you mentioned it seems to be related to the name given to the class. I’ve submitted a report to investigate this further (UE-20918).

Cheers

---

<div class="post-metadata">

**Author:** ![yateam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yateam](https://forums.unrealengine.com/u/yateam)\
**Post date:** [September 9, 2015, 8:35pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/8 "2015-09-09T20:35:46Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Holothurie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Holothurie](https://forums.unrealengine.com/u/Holothurie)\
**Post date:** [January 6, 2023, 12:57am UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/9 "2023-01-06T00:57:54Z")

</div>

I’ve encountered the same problem with version 5.0.3-20979098  
I noticed some of the custom BTTask/BTService did not load into UE when opening a project, causing the references to “not be found” in the behaviour tree.  
I deleted the /binaries and /intermediate folder in the project folder then right-click on project file → generate visual studio project files. Then double-click on project file and rebuild the binaries when prompted. This seemed to fix the problem for me (all classes properly loaded and found in BTtree) when reopening project after closing. IE the class naming was not involved for me.

---

<div class="post-metadata">

**Author:** ![DzikiJanusz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DzikiJanusz](https://forums.unrealengine.com/u/DzikiJanusz)\
**Post date:** [May 11, 2025, 12:49pm UTC](https://forums.unrealengine.com/t/behavior-tree-class-not-found-make-sure-its-saved/330443/10 "2025-05-11T12:49:35Z")

</div>

If you work on behavior tree within plugins and you encounter that issue, changing loading phase from Default to PreDefault solved that problem
