Search Unity

Question Netcode Convert Gameobject to Client entity Deprecated Workaround?

Discussion in 'NetCode for ECS' started by Extrys, Oct 24, 2020.

  1. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345
    Hello, I have game objects with convert to entity, these game objects have references to transforms of the player,
    i need them to convert to entities but being able to use them from the client servers


    What I'm trying to do is a VR Multiplayer game, so what I do is create entities with the component Transform of the controllers and the head of the player, then with a System, i move them to synchronize with the tracked hands positions

    the problem is that now with the deprecation of this kind of conversion if I use Subscene conversion i have a big problem, I can not reference the controllers transform in the entities I convert so I can not do anything

    by default entities with Gameobject to entity, conversion gets converted into the default world
    and the systems are automatically started in the client world

    So the systems I create don't work for the entities that are in another world

    then i would like to know, is there any way to convert entities in a different world than the default?
     
  2. SupinePandora43

    SupinePandora43

    Joined:
    May 13, 2019
    Posts:
    18
    can you explain me how to use SubScene conversion workflow? please!
     
  3. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
  4. SupinePandora43

    SupinePandora43

    Joined:
    May 13, 2019
    Posts:
    18
    adammpolak likes this.