Today when I build my project I suddenly received Load Errors saying some of my behaviour trees “Can’t find file for asset” /Script/BehaviourTreeEditor. This however is not for all my behaviour trees which makes it even stranger…
Because of this error I can no longer see my nodes in the tree and make any adjustments to them…, they do still work.
If the editor works fine for some of your threes, and not for others then that’s not the “missing editor” problem. I’d guess it has something to do with order of loading things. Do you have any BT assets’ references in your blueprints, in default properties or construction script?
Unreal Engine version: 4.5.1
The project is not derived from one of the samples
And I tryed something that I found online, which was making an change in Engine/Config/BaseEditorUserSettings.ini. Here I changed bBehaviorTreeEditor to True but that didnt help.
Yeah this indeed solved my load errors Thanks, but now that that I have a post up I might aswell ask something else related to this.
In my project I want an object to turn into an AI enemy with certain behaviour, now I have 2 skeletol meshes + behaviours to check if for example the players comes near the object to transform it. Is there an more efficient way to do this ? Cause if I import the object as an Static Mesh im not allowed to check if the player is near and transform it or am I wrong ?
For reference, the answer here is: do not use ConstructorHelpers::FClassFinder in your default object’s (the CDO) constructor. You can restrict code to not be called for the CDO by putting it in if (HasAnyFlags(RF_ClassDefaultObject) == false) block.
You can create a class deriving from AStaticMeshActor, both in C++ and Blueprint, and have extra logic in it.
If you have more questions please open a new thread.