Search Unity

Clarity on Auto Command Target (just needs to be checked, and a buffer authoring component?)

Discussion in 'NetCode for ECS' started by adammpolak, May 30, 2022.

  1. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    In order to get ICommandData from the client to server:

    - Create prefab that has "Support Auto Command Target" selected in Ghost Authoring Component
    - Add a ICommandData buffer authoring component on that prefab
    - Add ICommandData to the buffer client side

    Is there any need for GhostOwnerComponent in this process?
     
  2. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    894
    To use the AutoCommandTarget, the GhostOwnerComponent is mandatory, otherwise the future does not work.
     
    adammpolak likes this.