Search Unity

Bug (De)serialization not working well with Unity.Physics

Discussion in 'Physics for ECS' started by Selmar, Jan 19, 2023.

  1. Selmar

    Selmar

    Joined:
    Sep 13, 2011
    Posts:
    59
    When using SerializeUtility.SerializeWorld:
    System.ArgumentException: Blittable component type 'Unity.Physics.SimulationSingleton' contains a (potentially nested) pointer field. Serializing bare pointers will likely lead to runtime errors.

    internal unsafe void* m_SimulationPtr;


    When using "CopyAndReplaceEntitiesFrom" I get problems like memory corruption and my PC crashes.

    Did anyone try things like this?

    More details here: https://forum.unity.com/threads/custom-rate-world-updates.1387218/
     
  2. Scorr

    Scorr

    Joined:
    Jul 2, 2013
    Posts:
    73
    Same here. This used to work in old versions. Were you able to find a workaround?
     
  3. TheOtherMonarch

    TheOtherMonarch

    Joined:
    Jul 28, 2012
    Posts:
    867
    The best thing to do is make bug reports and include ECS in the report name.
     
    Selmar likes this.
  4. boyaregames

    boyaregames

    Joined:
    Jun 23, 2021
    Posts:
    76
    Just got this error after serialization
    Any new information about this error?