Search Issue Tracker

Fixed

Fixed in 2023.1.16f1, 2023.2.0b12, 2023.3.0a7

Votes

10

Found in

2023.1.14f1

2023.2.0b2

2023.3.0a5

Issue ID

UUM-44737

Regression

Yes

"UnityException: Could not find the requested Platform Texture Settings" error is thrown when selecting a texture when the Dedicated Server Build Support module is installed and the Build Target is missing from the texture's metadata

--

-

Reproduction steps:
1. Open the attached “ASDQWE” project
2. In the Project Window, select “Assets/Tex/leather.png” Texture
3. Observe the Console Window

Expected result: No error is thrown
Actual result: “UnityException: Could not find the requested Platform Texture Settings. This is incorrect, did initialization fail?” error is thrown

Reproducible with: 2023.2.0a15, 2023.2.0b2
Not reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.6f1, 2023.2.0a14

Reproducible on: Intel macOS 13.5, Windows 11

Notes:
* The error is only thrown if the Inspector Window is open
* The Import Settings can not be altered as well and attempting to do so throws the same error
* Selecting the “Assets/Tex/fabric.png” Texture does not result in the error. The difference between these Textures is that the “fabric.png” has “buildTarget: Server” in its metadata

Comments (12)

  1. alemnunez

    Sep 11, 2024 19:10

    I also just found out that I had a preset for TextureImporter that was causing this error. Clicking on that preset "AlbedoTexture_Default" also displays the error in the console, so I disabled that importer preset and now all textures I add to the project work properly.

    I have no idea why that preset suddenly started doing this, definitely a bug.

  2. alemnunez

    Sep 11, 2024 19:02

    This is still happening in 6000.0.16f1, even without the Server module installed. In my case, I found I can fix the problem on a texture by changing the "serializedVersion" from 4 to 3 in all the platformSettings inside the .meta file

    Is Unity saving the wrong serialized version and that's why CacheSerializedProperties is failing?

  3. exiledgames_std

    Jun 15, 2024 20:38

    Update : a full delete of Library did fix the contents, along with not installing mac modules.

  4. exiledgames_std

    Jun 15, 2024 16:59

    problem exist in 6000.0.4f1 and persists in 6000.0.5f1

  5. hytka81

    May 13, 2024 17:19

    Encountering this in 6000.0.0f1 and 6000.0.1f1

  6. blazex64

    Oct 07, 2023 00:24

    Still an issue with 2023.2.0.b11.3021.7889.
    If I knew where the code was, I could fix it on my own.

  7. GilJoWal

    Sep 30, 2023 20:19

    Same issue

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

  8. Queso2469

    Sep 12, 2023 17:53

    Breaks on 2023.1.1f1 with any new assets. Existing assets that other's have imported work fine on the install, but attempting to import new assets breaks them.

  9. GXMark

    Sep 10, 2023 18:28

    Whats interesting is that an already created hdr will work when dropped in the HDRP Global Asset but it will still generate the error on console if clicked upon.

  10. GXMark

    Sep 10, 2023 18:25

    I'm having same issue with unity 2023.1.10f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.