# Instance Static Mesh Component is not visible client side, only collision is there.

**URL:** <https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 3, 2015, 5:03pm UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627 "2015-10-03T17:03:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [October 3, 2015, 5:03pm UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627/1 "2015-10-03T17:03:43Z")

</div>

I am working with a replicated instanced static mesh component.  
But am running in to some issues when a new instance is added server side.  
Collision gets placed but there is no visible mesh client side.

Searching around came up with some tips e.g: Change Mobility, Making sure Material is set to be used with instanced Static mesh.  
But no luck so far do anyone have any experience with this issue?

---

<div class="post-metadata">

**Author:** ![xulture](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xulture/32/921486_2.png) [@xulture](https://forums.unrealengine.com/u/xulture)\
**Post date:** [October 5, 2015, 11:27pm UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627/2 "2015-10-05T23:27:10Z")

</div>

I’m pretty sure you’ll need to wrap ‘AddInstance’ call in replicated function (possibly ‘RemoveInstance’ as well if you use it).

My interpretation of InstancedStaticMesh is that original intention is to use it at Edit time, then save and cook everything including lighting.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [October 6, 2015, 12:03pm UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627/3 "2015-10-06T12:03:18Z")

</div>

Hey am using it runtime for a building system.  
What i have concluded is that the instances do not replicate.  
The resson i get collision is becuse the instance excist server side, and server handels collision.

I only found NetMulticast to do what i need making sure it visible on all connections.  
For late connections i get some data from server and “duplicate the instances” when the client has finished adding instances, NetMulticast takes over again.

---

<div class="post-metadata">

**Author:** ![rioratt99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rioratt99](https://forums.unrealengine.com/u/rioratt99)\
**Post date:** [December 16, 2015, 5:31am UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627/4 "2015-12-16T05:31:09Z")

</div>

Im trying to figure something out that is similar to your problem hopefully you can help me. I have a building system that works when everyone is in the match at the same time. How did you get late connections to show the instanced meshes? Right now lets say i build a foundation and then someone joins it acts like the foundation is there but they can’t see it? Any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![xulture](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xulture/32/921486_2.png) [@xulture](https://forums.unrealengine.com/u/xulture)\
**Post date:** [December 16, 2015, 6:24am UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627/5 "2015-12-16T06:24:51Z")

</div>

RPC’s are called when event happens, not after. In your case, if people can connect after the event, it may be more suitable to replicate this information via variables – those will be replicated when actor becomes relevant to client (even if these clients connect later).

For instance, you may have some sort of BuildManager actor that is replicated from server to all clients (mark it Always Relevant), with replicated variable that stores TArray of structures with information needed to perform the build on the client. OnRep function that belongs to this actor can then iterate the variable and locally spawn whatever was already spawned.

If this variable is updated directly on the server, and also on the client when RPC executed, then OnRep will not fire off. (OnRep only fires if the variable’s value actually changed).

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Good luck,

---

<div class="post-metadata">

**Author:** ![rioratt99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rioratt99](https://forums.unrealengine.com/u/rioratt99)\
**Post date:** [December 16, 2015, 3:53pm UTC](https://forums.unrealengine.com/t/instance-static-mesh-component-is-not-visible-client-side-only-collision-is-there/43627/6 "2015-12-16T15:53:19Z")

</div>

Thanks!! I got it working using replicated Actors but would much prefer using instanced meshes for performance issues. Your answer gave me a little more insight and im going to try and get the instanced meshes working tonight. Thanks!!!
