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

Bug Unity 2022.2.12 Tag Manager Error

Discussion in 'Editor & General Support' started by Elderdevduo, Jun 3, 2023.

  1. Elderdevduo


    Dec 15, 2022
    Hello friends, When adding a new sorting layer I get the following error popping up in the console.

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.TagManagerInspector.AddToSortLayerList (UnityEditorInternal.ReorderableList list) (at <ae93fefe62eb49e6b9ef3807ffd33dc7>:0)
    UnityEditorInternal.ReorderableList+Defaults.DrawFooter (UnityEngine.Rect rect, UnityEditorInternal.ReorderableList list) (at <ae93fefe62eb49e6b9ef3807ffd33dc7>:0)
    UnityEditorInternal.ReorderableList.DoListFooter (UnityEngine.Rect footerRect) (at <ae93fefe62eb49e6b9ef3807ffd33dc7>:0)
    UnityEditorInternal.ReorderableList.DoLayoutList () (at <ae93fefe62eb49e6b9ef3807ffd33dc7>:0)

    It doesn't' break anything atm, I can clear it in the console and it won't pop up again until I try to add another sorting layer ,I can likely still run my game(can't test yet because I've added some scripts that also need cleaning) Just thought someone may like to know as I've never encountered this before.