Search Unity

Set World as Presentation World

Discussion in 'Entity Component System' started by Spy-Shifty, Apr 16, 2019.

  1. Spy-Shifty

    Spy-Shifty

    Joined:
    May 5, 2011
    Posts:
    546
    Hi,

    imagine you have a multi world simulation.
    Each world adds systems to the simulation loop.

    By default only the default world is the presentation world. Which has the presentation loop.

    What is the best way to change the presentation world?

    One way would be to copy all entities from a simulation world to presentation world. (and also entities from presentation world to a third world)

    Is this the intented way or is there an other way?

    Usecase:
    Debugging Network
    each client has it's own world
    Like in: (10:50)
    https://www.gdcvault.com/play/1026146/
     
    rigidbuddy and JesOb like this.