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. Dismiss Notice

Question I'm getting this error??

Discussion in 'Editor & General Support' started by flawmore, Jun 15, 2023.

  1. flawmore

    flawmore

    Joined:
    Sep 21, 2020
    Posts:
    7
    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.GameObjectInspector.ClearPreviewCache () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.GameObjectInspector.ReloadPreviewInstances () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.GameObjectInspector.OnForceReloadInspector () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.Tilemaps.GridPaintPaletteClipboard:OnDisable() (at D:/Unity 2019.4/2020.1.6f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.tilemap/Editor/GridPaintPaletteClipboard.cs:347)

    I think it has something to do with the 2D Tilemap Extras Preview I have used at some point?

    Please help : /
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
  3. flawmore

    flawmore

    Joined:
    Sep 21, 2020
    Posts:
    7


    No offence but this error has nothing to do with any code I have written.

    It started to appear shortly after using the 2D Tilemap Extras Preview package?

    I have tried to troubleshoot the error with Bard and ChatGPT... they both suggested to come to these forums??

    I am very sorry if I have caused any reason for you to be angry with me. But please take another look at the error... it mentions the preview cache needs to be cleared?? And I have no idea what to do. If you are unable to help me. Could you please link me to someone who can?

    Sincerely, flawmore
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    You're correct. Apologies. Try removing and reinstalling the package (looks like Tilemaps??). Try figuring out which tile or palette has the problem, see if it has anything wrong with its setting, missing tiles, etc.