Search Unity

Feature Request Add some server only systems at GhostPredictionSystemGroup

Discussion in 'NetCode for ECS' started by optimise, Nov 7, 2021.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Hi @CMarastoni @timjohansson. I found that the current netcode doesn't support adding some server only systems at GhostPredictionSystemGroup. It needs to have same system at both client and server at GhostPredictionSystemGroup. Seems like there is some validation at GhostPredictionSystemGroup. Maybe disable that will enable this feature. Can you make it possible at future netcode release? I have use case that needs to do like that instead of adding some server only at system group other than inside GhostPredictionSystemGroup. It will add a lot of complexity to my project without this feature. And also my project most probably might not work properly after implementing other new workaround.
     
  2. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    900
    You can already do that. Just add a [UpdateInWorld(UpdateInWorldAttribute.Server)] attribute to the system class and it will only run in the server world.
    We don't do any special validation in PredictionSystemGroup as long as I remember