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

Loadlevel editor error -Tree editor?

Discussion in 'Scripting' started by AaronC, Oct 28, 2015.

  1. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    ArgumentException: GetLocalizedString can only be called from the main thread.
    Constructors and field initializers will be executed from the loading thread when loading a scene.
    Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
    TreeEditor.TreeGroupBranch..cctor ()
    Rethrow as TypeInitializationException: An exception was thrown by the type initializer for TreeEditor.TreeGroupBranch

    Any ideas anyone why the tree editor is having a sulk when using Application.Loadlevel?
     
    sbtk44 likes this.
  2. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    FWIW the trick is to "edit" the terrain trees, and just reassign the existing tree (in my case at least)
     
    daisySa, liu12010 and Chefty like this.
  3. Chefty

    Chefty

    Joined:
    Jun 17, 2015
    Posts:
    43
    It worked for me too, thanks :)
     
    AaronC likes this.
  4. FlyAnvil

    FlyAnvil

    Joined:
    Aug 14, 2013
    Posts:
    9
    OH, GOD! MANY THANKS YOU!

    ёбаные тупые криворукие программисты чтоб их разорвало!!!
    sorry for not english - indecent word to developers... :mad:
     
    AaronC likes this.
  5. Todd-Wasson

    Todd-Wasson

    Joined:
    Aug 7, 2014
    Posts:
    1,077
  6. Manless

    Manless

    Joined:
    Nov 6, 2015
    Posts:
    4
    Как ты сделал?
    (How did you do?)