Search Unity

Why am i getting duplicate entity ?

Discussion in 'Entity Component System' started by Shiv2k3, Jun 28, 2021.

  1. Shiv2k3

    Shiv2k3

    Joined:
    Jun 30, 2019
    Posts:
    118
    I have a prefab with an authoring component called cullable tag that has a field where I put the prefab as the reference, than I instantiate that prefab multiple times during awake, but when I filter the entity debugger for cullable tag it shows the entities that were created, but when I filter to without there are also the entities without the tag even though there aren't supposed to be any because the entities with the tag are the only thing being created so I'm wondering how there can be duplicates? At first I thought that duplicate entities without the tag were the references that got turned to entities but when I rerun the game with the cullable tag's entity field empty the duplicate entities are still being created!