Multiplayer - Actor on client side only

Unreal Source 5.0.3

Hi,

We have a multiplayer game with a dedicated server

In the game, each client has an inventory, they pick clothes from it to wear it.

That part works fine, each item chosen by each client is correctly replicated and shown to all clients as it should.

But clients also have in their inventory UI an actor that contains a skeletal mesh that is a duplicate of their character with a scene capture component and that should also show the chosen clothe. That actor should only exist in 1 copy on each client and be owned by each client.

The problem is that if we have two clients, client 0 and client 1, if client 0 chose an item to wear, nothing appears on its Character Inventory but if client 1 chose an item it appears on its Character Inventory and also on the one of client 0 which should not be the case.

This happens even if the Character Inventory is set to not be replicated at all…

That actor is spawned by the client, its ownership is set to be the player character client that spawned it and we tried different settings of Server and Client and nothing UFUNCTION for both the spawn of the actor and the item wearing function, it can appear in 1 copy or other times we have two copies of that actor, sometimes the wearing just does not work at all, sometimes only client 1 can control it and it’s shows as is to client 0.

We thought at first that it could be a problem with the scene capture component perhaps but no we can see these issues on the character inventory actor directly.

Thank you.

Solved:
The issue we had was only appearing in the editor and not in the build.