Unity 6 Transition Issue

After updating to Unity 6 from 2022.X (Dont remember), I encountered an issue where I can’t make new sprites because it just changes to default, and I have this error. Sprites that have been made before the change are fine. I’m a beginner doing a project for fun, so I didn’t set up VCS or something like that.

image

UnityException: Could not find the requested Platform Texture Settings. This is incorrect, did initialization fail?
UnityEditor.TextureImportPlatformSettings.CacheSerializedProperties (UnityEditor.SerializedProperty platformSettingsArray) (at <1f8babe234e540299e4f7387cdc20cd8>:0)
UnityEditor.TextureImporterInspector.<OnInspectorGUI>b__122_1 (UnityEditor.TextureImportPlatformSettings settings) (at <1f8babe234e540299e4f7387cdc20cd8>:0)
System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) (at <321eb2db7c6d43ea8fc39b54eaca3452>:0)
UnityEditor.TextureImporterInspector.OnInspectorGUI () (at <1f8babe234e540299e4f7387cdc20cd8>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass79_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <1f8babe234e540299e4f7387cdc20cd8>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

TextureImporterInspector.OnInspectorGUI must call ApplyRevertGUI to avoid unexpected behaviour.
UnityEditor.TextureImporterInspector:OnDisable ()

Try to delete “Library” folder in your project
It seems like cache issue (not sure)
In any way deleting Library folder is the first thing to do when you upgrade your project to a new major version :smiley:

The callstack is saying this is a UIElements UIToolkit / inspector editor problem and not a Sprite problem so the Sprite tag isn’t really required here. This puts your question in the 2D product area which is incorrect.

As above, there’s nothing in the library folder that you should ever need, it’s all cache so always delete it before you do any major update.

Hope you learned your lesson then. Always use source control, especially if upgrading.

Sorry for the mishap.

Thanks for your help, but it didn’t work. I’m probably going to make a new project and import the things from the old one.

Also yea, after this most definitely gonna setup VCS.

1 Like

If you get this error in a reproducible way, make sure to report it from Help>Report a bug… so our QA can investigate.