[Crash] Does not work on Unity 2023.

Gall

New member
Unity: 2023.1 / 2023.2.

  1. Create new project.
  2. Install latest Behavior Designer.
  3. Add component (Behavior Tree) to a game object.
  4. Open the designer.
  5. Throws 5 different exceptions:

Code:
UnityException: Failed to create texture because of invalid parameters.
UnityEngine.Texture2D.Internal_Create (UnityEngine.Texture2D mono, System.Int32 w, System.Int32 h, System.Int32 mipCount, UnityEngine.Experimental.Rendering.GraphicsFormat format, UnityEngine.Experimental.Rendering.TextureCreationFlags flags, System.IntPtr nativeTex, System.String mipmapLimitGroupName) (at <a8f6dd3731c24f7a9807425763300d06>:0)
UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Int32 mipCount, System.Boolean linear, System.IntPtr nativeTex, System.Boolean createUninitialized, System.Boolean ignoreMipmapLimit, System.String mipmapLimitGroupName) (at <a8f6dd3731c24f7a9807425763300d06>:0)
UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Boolean mipChain) (at <a8f6dd3731c24f7a9807425763300d06>:0)
BehaviorDesigner.Editor.BehaviorDesignerUtility.LoadTexture (System.String imageName, System.Boolean useSkinColor, UnityEngine.Object obj) (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
BehaviorDesigner.Editor.WelcomeScreen.OnEnable () (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
UnityEditor.EditorWindow:GetWindow(Boolean, String)
BehaviorDesigner.Editor.WelcomeScreen:ShowWindow()
BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow()
BehaviorDesigner.Editor.BehaviorInspector:DrawInspectorGUI(Behavior, SerializedObject, Boolean, Boolean&, Boolean&, Boolean&)
BehaviorDesigner.Editor.BehaviorInspector:OnInspectorGUI()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Code:
Cannot initialize non-default texture with negative or zero width.
UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,bool)
BehaviorDesigner.Editor.BehaviorDesignerUtility:LoadTexture (string,bool,UnityEngine.Object)
BehaviorDesigner.Editor.BehaviorDesignerUtility:InitHistoryBackwardTexture ()
BehaviorDesigner.Editor.BehaviorDesignerUtility:get_HistoryBackwardTexture ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:DrawFileToolbar ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:Draw ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:OnGUI ()
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Code:
UnityException: Failed to create texture because of invalid parameters.
UnityEngine.Texture2D.Internal_Create (UnityEngine.Texture2D mono, System.Int32 w, System.Int32 h, System.Int32 mipCount, UnityEngine.Experimental.Rendering.GraphicsFormat format, UnityEngine.Experimental.Rendering.TextureCreationFlags flags, System.IntPtr nativeTex, System.String mipmapLimitGroupName) (at <a8f6dd3731c24f7a9807425763300d06>:0)
UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Int32 mipCount, System.Boolean linear, System.IntPtr nativeTex, System.Boolean createUninitialized, System.Boolean ignoreMipmapLimit, System.String mipmapLimitGroupName) (at <a8f6dd3731c24f7a9807425763300d06>:0)
UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Boolean mipChain) (at <a8f6dd3731c24f7a9807425763300d06>:0)
BehaviorDesigner.Editor.BehaviorDesignerUtility.LoadTexture (System.String imageName, System.Boolean useSkinColor, UnityEngine.Object obj) (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
BehaviorDesigner.Editor.BehaviorDesignerUtility.InitHistoryBackwardTexture () (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
BehaviorDesigner.Editor.BehaviorDesignerUtility.get_HistoryBackwardTexture () (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.DrawFileToolbar () (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.Draw () (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.OnGUI () (at <33698a65ef7845d3aed7bcc184ec5a2e>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
UnityEditor.DockArea.OldOnGUI () (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Code:
Cannot initialize non-default texture with negative or zero width.
UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,bool)
BehaviorDesigner.Editor.BehaviorDesignerUtility:LoadTexture (string,bool,UnityEngine.Object)
BehaviorDesigner.Editor.BehaviorDesignerUtility:InitHistoryBackwardTexture ()
BehaviorDesigner.Editor.BehaviorDesignerUtility:get_HistoryBackwardTexture ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:DrawFileToolbar ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:Draw ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:OnGUI ()
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Code:
Cannot initialize non-default texture with negative or zero width.
UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,bool)
BehaviorDesigner.Editor.BehaviorDesignerUtility:LoadTexture (string,bool,UnityEngine.Object)
BehaviorDesigner.Editor.WelcomeScreen:OnEnable ()
UnityEditor.EditorWindow:GetWindow<BehaviorDesigner.Editor.WelcomeScreen> (bool,string)
BehaviorDesigner.Editor.WelcomeScreen:ShowWindow ()
BehaviorDesigner.Editor.BehaviorDesignerWindow:ShowWindow ()
BehaviorDesigner.Editor.BehaviorInspector:DrawInspectorGUI (BehaviorDesigner.Runtime.Behavior,UnityEditor.SerializedObject,bool,bool&,bool&,bool&)
BehaviorDesigner.Editor.BehaviorInspector:OnInspectorGUI ()
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
Beta versions of Unity are not supported. I'll make sure to have support when the Unity version comes out of beta.
 
Top