#IInputComponent on child entity is not synchronized with server

1 messages · Page 1 of 1 (latest)

vale gale
#

We have a spawned owner predicted ghost prefab with following structure:

- Parent (Ghost)
    |-> Child
           |=> [GhostComponent(SendDataForChildEntity = true)] InputComponent : IInputComponent { public int Value; }

When setting the value on the client inside a system updated in the GhostInputSystemGroup the value is correctly set on the client but not replicated to the server.
With a GhostAuthoringInspectionComponent the InputComponent shows up to be synchronized for the ghost.

If the component is directly on the Parent entity it works just fine.

Any ideas on how to fix this?

final wagon
#

why inputcomponent is ghost? i thought you should never sync it from server to client because of the nature of input idea itself
iinputcomponentdata and icommand data components should not be ghosts as long as I know

vale gale
#

I just realized the original post messed up some line braks which are now fixed.

What do you mean by inputcomponent being a ghost?
The parent entity is a ghost. InputComponent is just a component on the child entity of the ghost and marked as [GhostComponent(SendDataForChildEntity = true)] since the default behavior is to not synchronize child data.

marsh rune
#

it's not a normal ghost component basically

vale gale
#

Is that documented in any way? That seems like relevant information 😅

marsh rune