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

Bug AddressablesGroupWindow missing styles in 2022.3.1

Discussion in 'Addressables' started by CDF, Jun 7, 2023.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,282
    @pillakirsten If you're still watching this thread. The fix in 1.12.5 did not actually fix the issue.
    It incorrectly used the define: UNITY_2023_2_OR_NEWER instead of UNITY_2022_3_OR_NEWER

    Will we have to wait another 2 months for this to be fixed x2?
     
    Kirayshen likes this.
  2. DeathPro

    DeathPro

    Joined:
    Jul 28, 2018
    Posts:
    71
  3. islamagdy111

    islamagdy111

    Joined:
    Oct 29, 2019
    Posts:
    23
    I had this problem and I was able to fixed it. don't no how it worked but it did...
    1- I updated addressables to 1.12.5
    2- closed (addressables group) tab.
    3- closed (addressables profiles) tab.
    4- restart the project.
    5- opened them again (2-3).
    and it's done...
     
  4. yusuke_sato_izng

    yusuke_sato_izng

    Joined:
    Apr 11, 2022
    Posts:
    2
    i use 1.12.15 and it doesn't works.

    AddressableAssetsSettingsGroupEditor.cs:line260~268
    Code (CSharp):
    1. #if UNITY_2023_2_OR_NEWER
    2.                 m_SearchStyles.Add(GetStyle("ToolbarSearchTextFieldPopup")); //GetStyle("ToolbarSearchTextField");
    3.                 m_SearchStyles.Add(GetStyle("ToolbarSearchCancelButton"));
    4.                 m_SearchStyles.Add(GetStyle("ToolbarSearchCancelButtonEmpty"));
    5. #else
    6.                 m_SearchStyles.Add(GetStyle("ToolbarSeachTextFieldPopup")); //GetStyle("ToolbarSearchTextField");
    7.                 m_SearchStyles.Add(GetStyle("ToolbarSeachCancelButton"));
    8.                 m_SearchStyles.Add(GetStyle("ToolbarSeachCancelButtonEmpty"));
    9. #endif
    why "UNITY_2023_2_OR_NEWER" ???
    (i chenged to "UNITY_2022_2_OR_NEWER", then works fine in 2022.3.7f1.)
     
  5. LuGus-Jan

    LuGus-Jan

    Joined:
    Oct 3, 2016
    Posts:
    169
    The issue is slightly more complicated as it's present in Unity 2021, 2022 and 2023. A single define of
    UNITY_2023_2_OR_NEWER
    won't fix it for everyone affected, and AFAIK, is not solvable using just the version defines in the asmdef file.

    An alternative I did in my fork of Addressables is to change the
    GetStyle
    function, and let it search for an additional alternative style instead, and add the old names as the alternative styles:

    Code (CSharp):
    1. GUIStyle GetStyle(string styleName, string altStyleName = null)
    2. {
    3.     GUIStyle s = UnityEngine.GUI.skin.FindStyle(styleName);
    4.  
    5.     if ((s == null) && !string.IsNullOrWhiteSpace(altStyleName))
    6.         s = UnityEngine.GUI.skin.FindStyle(altStyleName);
    7.  
    8.     if (s == null)
    9.         s = EditorGUIUtility.GetBuiltinSkin(EditorSkin.Inspector).FindStyle(styleName);
    10.  
    11.     if (s == null)
    12.     {
    13.         Addressables.LogError("Missing built-in guistyle " + styleName);
    14.         s = new GUIStyle();
    15.     }
    16.  
    17.     return s;
    18. }
    19.  
    20.  
    21. m_SearchStyles.Add(GetStyle("ToolbarSearchTextFieldPopup", "ToolbarSeachTextFieldPopup"));
    22. m_SearchStyles.Add(GetStyle("ToolbarSearchCancelButton", "ToolbarSeachCancelButton"));
    23. m_SearchStyles.Add(GetStyle("ToolbarSearchCancelButtonEmpty", "ToolbarSeachCancelButtonEmpty"));
    This way, it works for all versions of Unity.
     
    elfasito likes this.
  6. cy_unity_dev

    cy_unity_dev

    Joined:
    Jul 25, 2023
    Posts:
    1
    if anyone found a solution for this problem pls share it, we all having the same issue
     
  7. LuGus-Jan

    LuGus-Jan

    Joined:
    Oct 3, 2016
    Posts:
    169
    Did you read the thread? There have been 2-3 solutions posted already, including my own, if you don't want to wait for the Addressables team to fix it. There isn't a magic toggle or setting that will suddenly fix it unless it receives a proper update from the team.
     
  8. cengage-jsal

    cengage-jsal

    Joined:
    May 10, 2022
    Posts:
    24
    Thanks. This worked for me. Using it as a temporary solution until the official fix.

    Nevermind. Moving the addressable package caused my unity cloud build to fail.
     
    Last edited: Aug 22, 2023
  9. parisazarei7

    parisazarei7

    Joined:
    Mar 7, 2018
    Posts:
    3
    2022.3.7f1 still i have bug
     
  10. jimmyhandrix

    jimmyhandrix

    Joined:
    Aug 6, 2015
    Posts:
    1

    Thx,It work!
     
  11. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,282
  12. cengage-jsal

    cengage-jsal

    Joined:
    May 10, 2022
    Posts:
    24
    CengageJermAker likes this.
  13. nielsboeckx

    nielsboeckx

    Joined:
    Sep 4, 2020
    Posts:
    6
    I resolved the same probleme by deleting empty rows in my AddressableAssetSettings.asset

    There were multiple missing objects in the "Build and Play Mode Scripts" and "Initialization Objects" sections.
     

    Attached Files:

  14. yassertubasi

    yassertubasi

    Joined:
    Jul 13, 2021
    Posts:
    2
    i use Version 1.19.19 - March 04, 2022
    and it doesn't works.


    Unity 2021.3.31f1
     

    Attached Files:

  15. LuGus-Jan

    LuGus-Jan

    Joined:
    Oct 3, 2016
    Posts:
    169
    Update your Addressables version. 1.19.19 still uses the old names. Latest Addressables should fix this for all Unity versions.
     
  16. yassertubasi

    yassertubasi

    Joined:
    Jul 13, 2021
    Posts:
    2

    How Can I update and unity give me last version. 1.19.19 ?
     

    Attached Files:

  17. DeathPro

    DeathPro

    Joined:
    Jul 28, 2018
    Posts:
    71
    Open PackageManager. Click "+" icon. Select "Add package by name..". Then write "com.unity.addressables".

    upload_2023-10-16_13-40-21.png

    upload_2023-10-16_13-40-42.png
     
  18. unity_7298E8AA4189E9F08E7D

    unity_7298E8AA4189E9F08E7D

    Joined:
    Monday
    Posts:
    2

    Thanks for locating the files!
    I am using Unity2021.3LTS & the newest version available of Addressables is 1.19.19
    I made it work by putting the 'r' back into all the "Seach". The search bar now appears. upload_2023-11-6_16-49-45.png
     

    Attached Files:

    Last edited: Nov 7, 2023 at 12:13 AM