Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

GenerateID is not allowed to be called during serialization

Discussion in '5.4 Beta' started by Hyp-X, Mar 21, 2016.

  1. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    439
    I get the following error in a Perforce enabled project (Pro version) in 5.4.0b10:

    GenerateID is not allowed to be called during serialization, call it from Awake or Start instead. Called from script 'WindowPending' on game object ''.
    See "Script Serialization" page in the Unity Manual for further details.
    UnityEditor.VersionControl.Provider:GenerateID()
    UnityEditorInternal.VersionControl.ListItem:.ctor() (at C:/buildslave/unity/build/Editor/Mono/VersionControl/UI/VCListItem.cs:35)
    UnityEditorInternal.VersionControl.ListControl:.ctor()

    Is this a known issue?
    It seems to appear every time I open our project, or after script recompile.
     
  2. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    439
    Still happening in 5.4.0b13
     
  3. lukaszunity

    lukaszunity

    Administrator

    Joined:
    Jun 11, 2014
    Posts:
    461
    Hi, I've forwarded this to the version control team and it should be fixed in a future beta.
     
  4. JakeTurner

    JakeTurner

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    137
    This is fixed heading to 5.4 rc1