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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

[Case 1212334] PhysicsStepQuery in BuildPhysicsSystem being recreated excessively

Discussion in 'Physics for ECS' started by thelebaron, Jan 17, 2020.

  1. thelebaron

    thelebaron

    Joined:
    Jun 2, 2013
    Posts:
    822
    Appears to be related to the latest entities version(0.5 preview 17), 0.4x does not produce this error. Repro project has a specific manifest that reproduces it if for some reason just grabbing the latest entities and physics does not reproduce it(though I expect it does).
     
    florianhanke likes this.
  2. florianhanke

    florianhanke

    Joined:
    Jun 8, 2018
    Posts:
    426
    I have the same issue.

    When I comment out

    Code (CSharp):
    1. if (HasSingleton<PhysicsStep>())
    2. {
    3.     stepComponent = GetSingleton<PhysicsStep>();
    4. }
    in
    BuildPhysicsWorld
    , the issue does not occur (I think
    PhysicsStep
    does not normally occur in the queries list for BuildPhysicsSystem, but I may be wrong).
     
    Last edited: Jan 21, 2020