Upgraded from Behaviour Designer to BD PRO

FuzzySmurf

Member
Hello!
I just recently got my BD in a good form, and decided to upgrade to BD Pro.
The game still runs, and I am still able to use the old BD.
However, I am not able to use BDPro, or use the new BDGraph. Its just empty w/ nothing on it.

I keep getting reflection errors with BD Pro. I can delete the package without issue as well.

Any suggestions?

Also, I am on
BD Pro 2.0.2f1
Unity 2022.3.58f1



Below is details of some of the errors im getting.

System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Invalid type Opsive.GraphDesigner.Editor.Elements.SharedVariablesElement for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector:m_SharedVariablesElement
Invalid type Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector+<>c__DisplayClass3_0:<>4__this
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <d4e8a951dcb549d5a33beceb2b3afcb3>:0
at Unity.Entities.TypeManager.InitializeAllComponentTypes () [0x00064] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities\Types\TypeManager.cs:2593
at Unity.Entities.TypeManager.Initialize () [0x00269] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities\Types\TypeManager.cs:1539
at Unity.Entities.AttachToEntityClonerInjection.Initialize () [0x00001] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities.Hybrid\Injection\CompanionGameObject.cs:23
at Unity.Entities.AttachToEntityClonerInjection..cctor () [0x00001] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities.Hybrid\Injection\CompanionGameObject.cs:17
System.TypeLoadException: Invalid type Opsive.GraphDesigner.Editor.Elements.SharedVariablesElement for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector:m_SharedVariablesElement
System.TypeLoadException: Invalid type Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector+<>c__DisplayClass3_0:<>4__this

System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Invalid type Opsive.GraphDesigner.Editor.Elements.SharedVariablesElement for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector:m_SharedVariablesElement
Invalid type Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector+<>c__DisplayClass3_0:<>4__this
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <d4e8a951dcb549d5a33beceb2b3afcb3>:0
at Unity.Entities.TypeManager.InitializeAllComponentTypes () [0x00064] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities\Types\TypeManager.cs:2593
at Unity.Entities.TypeManager.Initialize () [0x00269] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities\Types\TypeManager.cs:1539
at Unity.Entities.BindingRegistry.Initialize () [0x00001] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities.Hybrid\Bindings\BindingRegistry.cs:83
at Unity.Entities.BindingRegistry..cctor () [0x00028] in .\Library\PackageCache\com.unity.entities@1.3.10\Unity.Entities.Hybrid\Bindings\BindingRegistry.cs:76
System.TypeLoadException: Invalid type Opsive.GraphDesigner.Editor.Elements.SharedVariablesElement for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector:m_SharedVariablesElement
System.TypeLoadException: Invalid type Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector for instance field Opsive.BehaviorDesigner.Editor.Inspectors.BehaviorTreeInspector+<>c__DisplayClass3_0:<>4__this

1741578274295.png

I am also getting errors related to Unitys 1.3.10 Unity.Entities package. although im not sure why, but it seems related.
1741578239713.png
 
Can you create a new project to see if it works there so we are on the same starting ground?
 
I created a new project. URP Core. There is nothing in the project except BD Pro.
Only thing in there is BD Pro. The UI Renders correctly now, I was getting a red warning for a while.
But after 10 seconds, and restarting unity, it wont appear anymore.

I then added A* and Enhanced Console Pro, because I thought the issue might be related, but so far no errors yet. Still looking further into it.

Slight update:
In my existing project, it looks like it also broke my UCC UI manager. the UI for the managers wouldn't render, and i couldn't open the UCC character inspector either.

In the test project, it was fine though.

Not sure what it is yet.
I just reverted the project for now.
I'm also on UCC 3.1.3 (not planning on switching on 3.2 yet).
 
Last edited:
Hello,
I made a video recording of what I am seeing.
The first part of the video is whats happening when I First install BD PRO, w/o restarting Unity.
The second part (last minute and a half of the video) is After restarting Unity.

FYI, my project works fine if i just revert all of the BD Pro changes. I still have the old BD so its not that that big of a necessity, but thought I would share at least.
 
Ah, you are using version 3.1.3 of the character controller. The minimum version that works with Behavior Designer Pro is 3.2, and the structure of versions prior to 3.2 will definitely cause issues with Behavior Designer Pro. Behavior Designer Pro shares some files with version 3 of the character controller and things aren't in the right place prior to 3.2.
 
It should work after updating. Just make sure that you install Behavior Designer Pro after the character controller right now because the shared files within Behavior Designer Pro are newer.
 
Back
Top