This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.
Using OnRep_StaticMesh() in code or using the Set Static Mesh node does not replicate across server/client in game.
1. Open UE4Editor (any project)
2. Create new blueprint based on Actor
3. Add Static Mesh Component and set to Cube
4. In event graph add Key press Even (F key)
5. Add reference to Static Mesh component
6. Drag off from SM ref node to create a Set Static Mesh node (Leave New Mesh pin as "Select Mesh")
7. Wire F key event node to Set Static Mesh node
8. In BP defaults, set actor to replicate and set Auto Receive Input to Player 0.
9 Add instance of BP to the level and PIE
Result:
Pressing F on either server / client will remove the mesh on that one but will not affect the other.
Expected: Changing what mesh is set updates across clients and server.
Head over to the existing Questions & Answers thread and let us know what's up.
30 |
Component | UE - Networking |
---|---|
Affects Versions | 4.7.6, 4.8, 4.13 |
Created | Jun 2, 2015 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |