Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    869
    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