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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
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