Search Unity

Transform System Ischildof

Discussion in 'Entity Component System' started by Timboc, Apr 10, 2019.

  1. Timboc

    Timboc

    Joined:
    Jun 22, 2015
    Posts:
    238
    Is there any cunning way with the new transform system to determine if an entity is a child of another entity (in a deep hierarchy)? If not, would it require finding every entity with a Parent component and trying to connect the hierarchy back up to the root/parent?
     
  2. Roycon

    Roycon

    Joined:
    Jul 10, 2012
    Posts:
    50
    I don't know of any way to do that

    For me I have a root parent component I add to my children that need it during the convert process, as theres some API to get root entity for gameobject
     
    Timboc and james_unity988 like this.