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.

Bug Wrong entities obtained via GetChild

Discussion in 'Physics for ECS' started by Foreverplane_, Mar 12, 2023.

  1. Foreverplane_


    Nov 11, 2018
    Iterate through Physics Collider KeyEntityPair trying to get child collider through Collider->GetChild by key from Physics Collider KeyEntityPair.
    However, for this key, a completely different entity is returned that is not related to the child of the main one at all.
    For example:

    I have a pair Entity(392:2) ColliderKey (3221225471)
    But when I try to get a child collider by ColliderKey (3221225471)key, I have Entity(135:1).

    Does anyone know how to get the correct collider key entity?