Hey, I’m making a multiplayer game and I need to attach an actor to a mesh that the owner can’t see. How would I be able to make do this so the player can’t see the mesh but the actor attaching still replicates to the owner?
In case anyone knows if there’s a fix for this, please let me know
Just change the material to “transparent” (a material that has 1 scalar node for opacity set to fully transparent)
Additionally, you can have the mesh in the actor “Hidden in game” or set “Visible” to false… That way the actor is still there but the static mesh is practically deactivated. However if you need to interact with the mesh that’s not visible, I think using the “hidden in game” or false visible make deactivate some things like collisions etc for that component.
So I could set the material to transparent to the owner but replicate it to other clients as the proper material? And yeah I tried to set the visibility of the mesh to not visible/hidden in game but it doesn’t seem to change the outcome. I’ll try that material method though, thanks.
Yeah materials aren’t replicated in general. So yeah just change it on the specific machines that you want it changed on. And change it back when you want it visible.
Thanks for the help
So I found a fix for the mesh in case anyone else is wondering about the same thing. Apparently if owner no see is enabled on the default mesh component and you try attaching actors to it, for some reason it doesn’t do that. You need to have a separate skeletal mesh component for it to work properly