Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    454
    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:
    454
  4. mink365

    mink365

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

    DFT-Games

    Joined:
    Jun 24, 2010
    Posts:
    454
    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:
    8,222
    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:
    454
    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