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. Dismiss Notice

"Disable" will change the hierarchy?

Discussion in 'Entity Component System' started by kuailaiwanli, Aug 14, 2021.

  1. kuailaiwanli

    kuailaiwanli

    Joined:
    Apr 22, 2013
    Posts:
    47
    A B C,3 entities.
    B & C are child of A.

    Now I wanna oprate B to invisible in timerX,then re-visible in timerY.
    When I add "Disabled" component by ECB in job,B's "Parent" value is nolonger A?

    Is there a better way to shut the entity's render?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,579
    DisableRender or DisableRendering component. One should be right.
     
    Krajca and kuailaiwanli like this.
  3. kuailaiwanli

    kuailaiwanli

    Joined:
    Apr 22, 2013
    Posts:
    47
    work. Thanks.
     
    Antypodish likes this.