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

Error: "Data layout for script 'blank.blank' has changed. Need to do a complete player export"?

Discussion in 'Editor & General Support' started by CloudyVR, May 26, 2019.

  1. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    709
    I am using 2019.1.3f1, and recently updated one asset. And now when I try to build to exe I get an error:

    "Error building scripts: Data layout for script 'RootMotion.FinalIK.TwistRelaxer' has changed. Need to do a complete player export"

    I spent a while searching for answers. And only one relevant result shows on Google, and it is in Japanese!

    I am at a loss how to proceed.

    What does it mean?
    Why did it happen?
    How do i get rid of it???

    Thanks for help!

    [edit]
    Here's more stacktrace:
    UnityEditor.BuildPlayerWindow+BuildMethodException: Error building scripts: Data layout for script 'RootMotion.FinalIK.TwistRelaxer' has changed. Need to do a complete player export

    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194

    at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    [Solved]
    Just uncheck the "scripts only build" checkbox for initial builds - I believe I forgot it was on, and that error message was far from specific.

    maybe it should read:

    "Error building scripts: Data layout for script 'RootMotion.FinalIK.TwistRelaxer' has changed. Need to do a complete player export but you have selected to "only build scripts" in the build settings"
     
    Last edited: Jun 30, 2021
    caogtaa, Ding_Jerry, Imvizar and 13 others like this.
  2. unayozan

    unayozan

    Joined:
    May 11, 2018
    Posts:
    12
    Got the same error and solved the same way. The error message needs to be more clear I guess.
     
    ufo_zj and Bencarbon like this.
  3. carrotstien

    carrotstien

    Joined:
    Jun 8, 2016
    Posts:
    37
    yaya.. yep ^ :D
     
  4. Bencarbon

    Bencarbon

    Joined:
    Jul 17, 2018
    Posts:
    3
  5. leni8ec

    leni8ec

    Joined:
    May 23, 2013
    Posts:
    20
    I got it too.
    Error information is not informative..
     
    ufo_zj likes this.
  6. Muchaszewski

    Muchaszewski

    Joined:
    Sep 23, 2015
    Posts:
    15
    And no Unity response/fix for such critical debug information for over half a year :|
     
    LT23Live and CloudyVR like this.
  7. bsizzle

    bsizzle

    Joined:
    May 25, 2013
    Posts:
    10
    I was getting this error on Unity 2022.2.4f1, and the solution above did not work because there is no checkbox in the build settings for "scripts only build".

    I solved by clicking the dropdown arrow next to the Build button at the bottom, then selecting Clean Build
     
    zhubenzhao likes this.