Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Texture Import Settings Failing to Apply

Discussion in 'Editor & General Support' started by austint30, Aug 6, 2015.

  1. austint30

    austint30

    Joined:
    Jul 1, 2013
    Posts:
    72
    Every time I try to apply import settings I get an error on the console. I've restarted Unity several times and it never fixes the problem. I can't convert any texture to anything else or change any options due to this.

    This looks like I have ran into a bug. I've already reported the bug. It looks like I am going to have to reinstall Unity.

    Error:

    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()

     
  2. austint30

    austint30

    Joined:
    Jul 1, 2013
    Posts:
    72
    Alright guys. This may be helpful for anyone having this issue. Close the Sprite Editor and everything should be working fine. Mega Blast Ball development continues!
     
    kei_kff likes this.
  3. kei_kff

    kei_kff

    Joined:
    Mar 28, 2013
    Posts:
    8
    I was having same problem...I'm so glad that I found your post. Thank you so much!
     
  4. austint30

    austint30

    Joined:
    Jul 1, 2013
    Posts:
    72
    Your welcome!
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,851
    Would you be able to report this bug to us? Better we fix it than you have to work around it