Hello, everyone,
There a problem about cannot replication my own component when sceneReplication.
In my game, the client and server are two independent projects .
What I’m going to do is replication a characterNode with a component writing by myself (name is “Character”).
First , start server,:
When a client connected, the server create characterNode and Character Component , un-Local.
Next the server call SendRemoteEvent() to send ID of characterNode .
In client ,
Get the characterNode by ID from server.
Up to now, everything is ok.
But when I call Character chara = characterNode->GetComponent();
The chara is NULL…
Note: chara->MarkNetworkUpdate() has been called on HandlePhysicsPerStep(), server side.
Is this a typical mistake?
Or someone know about that.
Thanks.