Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Using Addressables with entities

Discussion in 'Entity Component System' started by Deleted User, Dec 11, 2019.

  1. Deleted User

    Deleted User

    Guest

    Is it possible to use Addressables with ECS? I couldn't find a code sample.
    Currently if you convert a prefab to entity it loads everything and it's not desired.
     
  2. PhilSA

    PhilSA

    Joined:
    Jul 11, 2013
    Posts:
    1,926
    I havent tried Addressables + DOTS, but can't you just convert to entity only after you've loaded a prefab with addressables?
     
  3. Deleted User

    Deleted User

    Guest

    I thought about it too. But gameobject to entity conversion is a rather heavy operation.
    I would be very useful if there was a feature like subscenes for prefabs. AFAIK In subscenes, the entities are cached. So there won't be any conversions happening at runtime.
    I guess I will use subscenes as a workaround for now.