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

Element 'Style' has no registered factory method

Discussion in 'Localization Tools' started by Calvares, Aug 8, 2021.

  1. Calvares

    Calvares

    Joined:
    Jul 11, 2018
    Posts:
    17
    I've just set up a localization system and I'm getting the error even in Edit mode:
    Element 'Style' has no registered factory method.

    AFAIU the error comes from Localization Settings asset (at the top of it, before Locale Selectors, there is string "Unknown type: 'Style'")
    When I'm launching the game I'm getting a bunch of errors, but the main thing is that locale from Specific Locale Selector is not chosen. Instead I'm getting None locale (that's why I'm getting all those errors, I suppose). I didn't find any solution online on how to fix it.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    You can ignore the style error, it's just coming from a uxml file that is incompatible with 2019.4, we have fixed it in the next release.
    Are the errors in the player or editor?
    Try disabling the WaitForCompletion option on any localized strings you have. It has a bug that causes this. Its also fixed in the next release.
     
    Calvares likes this.
  3. Calvares

    Calvares

    Joined:
    Jul 11, 2018
    Posts:
    17
    It's in the editor. Disabling WaitForCompletion doesn't help (it produces another error, lol).
    I think I'll just ignore those errors or download the latest Unity version.
    Thanks for the answer.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Whats the new errors you get?
     
  5. Calvares

    Calvares

    Joined:
    Jul 11, 2018
    Posts:
    17
    Cannot find mono image in MonoManager for assmebly 'Unity.Localization'


    It pops up randomly.
     
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Ah yes we have had some reports of this. Seems to come from an assembly reload. We are still investigating this one.
     
    Calvares likes this.
  7. CM23

    CM23

    Joined:
    Aug 6, 2021
    Posts:
    1
    When will the next release be published?
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Probably the first week of September. We are still waiting for some things to land.
     
  9. subkiro

    subkiro

    Joined:
    Mar 23, 2015
    Posts:
    10
    Hello my friends, have you fixed this bug? I have the same problem "Unknown Type Style"
     
  10. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    It should be fixed in 1.0.0. We are just waiting for it to be released, should be later today.
     
  11. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    I still have this issue in 1.0.1 (after upgrading from 1.0.0-pre10). Unity 2019.4.21f1. The Project Settings > Localization window looks rather weird and the message about the style is on top of it. See here:

    Style.png
     
    Calvares likes this.
  12. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Can you try updating to the latest 2019.4?
    There should not be any style references in uxml now so I'm not sure why you are still getting it.
     
  13. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    I just managed to reproduce this. Seems the style tag has crept back into the uxml. Ill try and get it fixed.
     
    plmx likes this.
  14. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    Confirmed fixed in 1.0.2. Thank you!
     
    karl_jones likes this.