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

Prefabs with child Colliders are not rendered

Discussion in 'Graphics for ECS' started by sstrong, Dec 14, 2019.

  1. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,270
    I've seen this before but wondering if there a preferred way of solving this. Often prefabs are created with an empty parent gameobject. The meshes and colliders are on the child gameobjects.

    When prefabs are converted to entities using ConvertGameObjectHierarchy(..) and then Instantiated they appear as Entities in the scene but are not rendered. If the child gameobject has say a box collider it doesn't render. If the collider on the child gameobject is removed or moved to the parent gameobject, it renders fine.

    For prefabs that cannot be modified manually in the editor, is there a workaround for this?
     
    Last edited: Dec 14, 2019