repro project: https://drive.google.com/file/d/1TkCZBlOvLA65qiDawqynX-HFrSFCnqfy/view?usp=share_link
**repro glb file attached to this bug also **
To repro: import file with UnityGLTF, duplicate the file so there are two files, select the textures in both files at once and try to change Needle import settings, error.
Video: https://drive.google.com/file/d/1XJ9mwvyfaTc63PZrCbsnlkB8IHjYVKZe/view?usp=share_link
Original Post on Discord
by user 103054507105067008
Error:
NullReferenceException: Object reference not set to an instance of an object
—
System.NullReferenceException: Object reference not set to an instance of an object
void Needle.Engine.Gltf.ImportSettings.AssetSettingsInspector.OnGUI() in ../../../Bugreport-AGIDemo_Boat-230119/unity/Library/PackageCache/com.needle.engine-exporter@2.59.1-pre/Core/Editor/Editors/ImportSettings/AssetSettingsInspector.cs:141
void UnityEngine.UIElements.IMGUIContainer.DoOnGUI(Event evt, Matrix4x4 parentTransform, Rect clippingRect, bool isComputingLayout, Rect layoutSize, Action onGUIHandler, bool canAffectFocus)
bool UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent(Event e, Matrix4x4 worldTransform, Rect clippingRect, Action onGUIHandler, bool canAffectFocus) x 3
bool UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw(EventBase evt, bool canAffectFocus, bool verifyBounds)
bool UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI(EventBase evt, bool canAffectFocus, bool verifyBounds)
void UnityEngine.UIElements.CommandEventDispatchingStrategy.DispatchEvent(EventBase evt, IPanel panel)
void UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies(EventBase evt, IPanel panel, bool imguiEventIsInitiallyUsed)
void UnityEngine.UIElements.EventDispatcher.ProcessEvent(EventBase evt, IPanel panel)
void UnityEngine.UIElements.EventDispatcher.Dispatch(EventBase evt, IPanel panel, DispatchMode dispatchMode)
void
by user 103054507105067008
marcel
(marwi)
January 20, 2023, 12:00am
4
Fixed in the next version
Thanks, will test the fixed in a large project that has lots of textures just as I saw it there first before making a repro
by user 103054507105067008
marcel
(marwi)
January 21, 2023, 12:00am
6
The small repro was great, i actually just copied the glb you sent