Repeater task not repeating once exported

SararaDrake

New member
Heya!

I'm working with the repeater task to make an NPC's behavior repeat infinitely in my project.
The task works in play mode inside Unity, but once exported the NPC will run through it's behavior tree once then stop.

I've also tried adding a Restart Behavior Tree task to the end of the tree to see if the NPC's behavior would restart that way and this also fails once exported.

I am working on a mac and exported the file for PC.

Any thoughts on why this wouldn't work?

Thanks in advance!
 
If you enable logging on the behavior tree component you should be able to get a better idea of why it's not doing what you'd expect it to be doing. My guess is that something is aborting the repeater that isn't reproduced within the editor.
 
Hey,

Sorry, is it possible to enable logging for a build?
The problem is that it's not working once I've built the project.
 
Ahh, you're right. In this case you'll need to import the runtime source and remove all of the #if clauses within the BehaviorManager that look like:

if UNITY_EDITOR || DLL_DEBUG || DLL_RELEASE

I can also send you a dll to test out that has this removed in a few days.
 
Top