Search Unity

Question Netcode for entities Ghostfield not replicating

Discussion in 'NetCode for ECS' started by pougouebill, Sep 30, 2023.

  1. pougouebill

    pougouebill

    Joined:
    Aug 5, 2022
    Posts:
    2
    Hi, i im trying to use ghostfields in my game to track (persistantly) chages in vehicle body parts, but whenever i make a change it doesn't replicate on the server.

    Nevertheless i noticed a change in the entity hierarchy, on the pink version of the entity which caries the component containing the ghostfield but nothing seems to change on the same component on the server

    Finally, what is the difference between the pink and the blue ghosts version of the same entity because i have a hard time finding an answer in the documentation
     
  2. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    316
    Hey! GhostFields replicate only from server to client. I.e. It's one way.
    • You can make client predicted, server authoritative modifications to ghosts using Input commands.
    • You can make non-predicted client authority changes to ghosts via RPCs.
    The blue one is the prefab entity. I agree that this isn't super clear.
     
    pougouebill likes this.
  3. pougouebill

    pougouebill

    Joined:
    Aug 5, 2022
    Posts:
    2
    Thank you very much.