Search Issue Tracker
Fixed
Votes
0
Found in
5.1.0f3
Issue ID
704021
Regression
Yes
Applying a change to texture import settings null reference error
1. create a Layout where the Sprite Editor is a tab in a frame
2. import some sprites/textures and then close the Editor
3. re-open the Editor and select a sprite/texture
4. modify any of the Import Settings (e.g. Texture Type) and apply
A Null Reference Error is reported in the console.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Westy
Jul 11, 2015 22:10
Sorry forgot your error message;
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SpriteEditorWindow.ApplyCacheSettingsToInspector (UnityEditor.SerializedObject so) (at C:/buildslave/unity/build/Editor/Mono/SpriteEditor/SpriteEditorWindow.cs:143)
UnityEditor.SpriteEditorWindow.TextureImporterApply (UnityEditor.SerializedObject so) (at C:/buildslave/unity/build/Editor/Mono/SpriteEditor/SpriteEditorWindow.cs:138)
UnityEditor.TextureImporterInspector.Apply () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/TextureImporterInspector.cs:2201)
UnityEditor.AssetImporterInspector.ApplyAndImport () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:148)
UnityEditor.AssetImporterInspector.ApplyButton (System.String buttonText) (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:199)
UnityEditor.AssetImporterInspector.ApplyButton () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:192)
UnityEditor.AssetImporterInspector.ApplyRevertGUIButtons () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:210)
UnityEditor.AssetImporterInspector.ApplyRevertGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:226)
UnityEditor.TextureImporterInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/TextureImporterInspector.cs:1329)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1162)
UnityEditor.DockArea:OnGUI()
Westy
Jul 11, 2015 22:07
I'm getting the same problem for every texture that's imported. changing the type just says a null reference error when clicking apply in the inspector box. even changing the type, then clicking on 2d editor which brings up a dialog box of revert or apply. Clicking apply button gives another null reference. and your steps don't work.
I found one area to look at. I fingered out a work around by changing the Default Editor setting from 3D to 2D. close the editor, move the texture out, deleting the meta file of the image. Reopen the editor, move the texture back in; type can now be changed to UI or whatever.
and yes this was a completely new project with nothing in it and no changes to any settings