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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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:
    34
    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:
    496
    The best thing to do is make bug reports and include ECS in the report name.
     
    Selmar likes this.