Behavior Tree Tasks not working when running on Android devices.

Lean Jiang

New member
We download Behavior Designer from Unity Asset Store.

Project setting:
Package version is 1.7.2.
Behavior Designer Runtime package is not add to my project.
Unity Editor version is 2020.3.23f1c1.
We use mono script backend, and Managed Stripping Level is set to Disabled.



When play in Unity Editor , it works.
But when build and run on android devices, my behavior tasks seems broken.


2022-02-26 18:50:01.556 22676-31400/com.DefaultCompany.wsunity I/Unity: 404.5945: Nerd (1) - Behavior: Pop task Unknown To Far Away From Formation (BehaviorDesigner.Runtime.Tasks.UnknownTask, index 2) at stack index 0 with status Success
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
UnityEngine.MonoBehaviour:print (object)
BehaviorDesigner.Runtime.BehaviorManager:popTask (BehaviorDesigner.Runtime.BehaviorManager/BehaviorTree,int,int,BehaviorDesigner.Runtime.Tasks.TaskStatus&,bool,bool)
BehaviorDesigner.Runtime.BehaviorManager:popTask (BehaviorDesigner.Runtime.BehaviorManager/BehaviorTree,int,int,BehaviorDesigner.Runtime.Tasks.TaskStatus&,bool)
BehaviorDesigner.Runtime.BehaviorManager:RunTask (BehaviorDesigner.Runtime.BehaviorManager/BehaviorTree,int,int,BehaviorDesigner.Runtime.Tasks.TaskStatus)
BehaviorDesigner.Runt

As you see, my custom behavior task is not recognized by BehaviorManager, it prints UnknowTask. In Unity Editor , it prints the right class type.

How to fixed this issue?
 
I use JSONDeserialization. logcat print "no root task" error , and the whole tree is disabled.
Managed stripping leve is set to disabled.
I'm crazy!!

I change to BinarySerialization, the result is same, not working either.
 
Top