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

Question Get system entity

Discussion in 'Entity Component System' started by CookieStealer2, Oct 5, 2022.

  1. CookieStealer2

    CookieStealer2

    Joined:
    Jun 25, 2018
    Posts:
    119
    I see we can now pass a SystemHandle instead of an Entity to ComponentLookups but what if I wanted to use Entitymanager.SetArchetype on the system entity? I would need to know the enitity.

    Has anyone found a way of getting the system entity?
     
  2. CookieStealer2

    CookieStealer2

    Joined:
    Jun 25, 2018
    Posts:
    119
    I guess we can still use Entitymanager.AddComponent with SystemHandle and ComponentTypeSet, should be enough in most cases.