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

[5.5.1p2] Crash when creating a prefab with Rigidbody2D in the object

Discussion in 'Editor & General Support' started by DFT-Games, Feb 9, 2017.

  1. DFT-Games

    DFT-Games

    Joined:
    Jun 24, 2010
    Posts:
    449
    Case's ticket: 879430_ji5ipv95jvnif888

    Unity crashes trying to create a 2D prefab with a RigidBody2D in it

    Unity crashed trying to create a 2D prefab with a RigidBody2D in it.This happens all the time if the game object has a Rigidbody2D on it. The prefab is created but the serializer crashes trying to serialize the Rigidbody2D component.

    Any workaround?

    Thanks,
    Pino
     
  2. SimteractiveDev

    SimteractiveDev

    Joined:
    Jul 9, 2014
    Posts:
    97
  3. DFT-Games

    DFT-Games

    Joined:
    Jun 24, 2010
    Posts:
    449
  4. mink365

    mink365

    Joined:
    Oct 8, 2015
    Posts:
    5
  5. DFT-Games

    DFT-Games

    Joined:
    Jun 24, 2010
    Posts:
    449
    Only current workaround is to add the Rigidbody2D component at run-time... horrible fix but it works :(
     
  6. SimteractiveDev

    SimteractiveDev

    Joined:
    Jul 9, 2014
    Posts:
    97
    I just reverted back to p1. There isn't a version of 5.5.1 that doesn't have an issue impacting us, but p1 impacts us less. You have these things, just got to work around them :)
     
  7. CTACUnity

    CTACUnity

    Joined:
    Jan 18, 2017
    Posts:
    1
    The same problem is happening in 5.5.1p3 with me
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,851
    According to the ticket this was tested against 5.5.1p4 and was found to now be fixed so you won't need to wait for 5.5.3.
     
  9. DFT-Games

    DFT-Games

    Joined:
    Jun 24, 2010
    Posts:
    449
    Hi Karl,

    That's good news, let's hope in some more regression testing before to ship releases and patches in the future please :)

    -Pino