Muse Texture Error

Hi, I have a problem, when I click the “Generate” button, the texture is not generated, but I get an error:
NullReferenceException: Object reference not set to an instance of an object
Unity.Muse.Texture.MaterialPreviewSceneHandler.InitializeCamera () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/MaterialPreviewSceneHandler.cs:83)
Unity.Muse.Texture.MaterialPreviewSceneHandler.InitializeScene () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/MaterialPreviewSceneHandler.cs:46)
Unity.Muse.Texture.MaterialPreviewSceneHandler…ctor (UnityEngine.SceneManagement.Scene scene) (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/MaterialPreviewSceneHandler.cs:41)
Unity.Muse.Texture.MaterialPreviewer.InitializePreviewScene () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/MaterialPreviewer.cs:34)
Unity.Muse.Texture.MaterialPreviewer…ctor () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/MaterialPreviewer.cs:14)
Unity.Muse.Texture.MaterialPreviewElement…ctor () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/MaterialPreview/MaterialPreviewElement.cs:42)
Unity.Muse.Texture.MaterialMapPreview…ctor () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/MaterialInspector/MaterialMapPreview.cs:20)
Unity.Muse.Texture.PreviewPbrArtifact…ctor (System.Collections.Generic.List1[T] viewModel, System.Boolean autoLoading) (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/PreviewPbrArtifact.cs:28) Unity.Muse.Texture.PreviewElement..ctor (System.Collections.Generic.List1[T] pbrMaterialData, Unity.Muse.Common.Artifact artifact) (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Pbr/Previewers/PreviewElement.cs:52)
Unity.Muse.Texture.ResultItemVisualElement…ctor (Unity.Muse.Common.Artifact artifact) (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/UI/ResultItemVisualElement.cs:25)
Unity.Muse.Texture.ImageArtifact.CreateView () (at ./Library/PackageCache/com.unity.muse.texture@0.3.0/Runtime/Artifacts/ImageArtifact.cs:235)
Unity.Muse.Common.AssetsList.GetArtifactView (Unity.Muse.Common.Artifact artifact) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/AssetsList.cs:771)
Unity.Muse.Common.AssetsList.BindGridItem (UnityEngine.UIElements.VisualElement el, System.Int32 index) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/AssetsList.cs:712)
Unity.Muse.Common.GridView.Setup (UnityEngine.UIElements.VisualElement item, System.Int32 newIndex) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/GridView.cs:1461)
Unity.Muse.Common.GridView.ResizeHeight (System.Single height) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/GridView.cs:1415)
Unity.Muse.Common.GridView.Refresh () (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/GridView.cs:743)
Unity.Muse.Common.GridView.set_itemsSource (System.Collections.IList value) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/GridView.cs:462)
Unity.Muse.Common.AssetsList.FilterItemsSource () (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/AssetsList.cs:307)
Unity.Muse.Common.AssetsList.OnArtifactAdded (Unity.Muse.Common.Artifact artifact) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/AssetsList.cs:763)
Unity.Muse.Common.Model.AddAsset (Unity.Muse.Common.Artifact artifact) (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Models/Model.cs:279)
Unity.Muse.Common.NodesList.OnGenerateButtonClicked () (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Controls/NodesList.cs:266)
Unity.Muse.Common.Model.GenerateButtonClicked () (at ./Library/PackageCache/com.unity.muse.common@0.3.0/Runtime/UI/Models/Model.cs:166)
Unity.AppUI.UI.Pressable.Invoke (UnityEngine.UIElements.EventBase evt) (at ./Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/UI/Manipulators/Pressable.cs:101)
Unity.AppUI.UI.Pressable.InvokePressed (UnityEngine.UIElements.EventBase evt) (at ./Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/UI/Manipulators/Pressable.cs:97)
Unity.AppUI.UI.Pressable.OnPointerUp (UnityEngine.UIElements.PointerUpEvent evt) (at ./Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/UI/Manipulators/Pressable.cs:335)
UnityEngine.UIElements.EventCallbackFunctor1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <a65a6f6a4ed444a4ae44f870bd0f8774>:0) UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <a65a6f6a4ed444a4ae44f870bd0f8774>:0) UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacksAtTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <a65a6f6a4ed444a4ae44f870bd0f8774>:0) UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElement (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <a65a6f6a4ed444a4ae44f870bd0f8774>:0) UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <a65a6f6a4ed444a4ae44f870bd0f8774>:0) UnityEngine.UIElements.PointerEventBase1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at :0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at :0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at :0)

Nevermind, I just needed to reinstall Muse Texture few times…

Glad it worked out! Thanks for trying the beta!

I’m having the same issue. I’ve re-installed some 5 times. How many times do I need to re-install?

[Unity Editor 2022.3.10f1 ,Metal>, Silicon, LTS – MacOS Aonoma 14.0 – Mac mini (M1 - 2020)

Do you have any screenshots of errors?


Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/MVVM/ComponentModel/ObservableObject.cs(15,70): error CS0433: The type ‘INotifyPropertyChanging’ exists in both ‘Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’

Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/MVVM/ComponentModel/ObservableObject.cs(20,22): error CS0433: The type ‘PropertyChangingEventHandler’ exists in both ‘Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’

Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/MVVM/ComponentModel/ObservableObject.cs(32,51): error CS0433: The type ‘PropertyChangingEventArgs’ exists in both ‘Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’

Library/PackageCache/com.unity.dt.app-ui@0.5.1/Runtime/MVVM/ComponentModel/ObservableObject.cs(20,52): error CS0066: ‘ObservableObject.PropertyChanging’: event must be of a delegate type

Hmmm that’s an app UI error, what version of the editor are you using so I will try to reproduce!

@mickael-bonfill

I created a new project in 2022.3.10f1 Silicon on MacOS 14.0 and I was able to install the Muse Texture package without any issues.

@lemapp Can you show us the Packages/manifest.json file of your project? Maybe one of your dependencies has created a conflict with the App UI package.

Also can you show us in particular this package in your package manager: