C
C#15mo ago
._.

❔ Weird Timing of Functions

I have a question, I am making a game and im having a problem with my Third Person models. Each player saves a json and then loads the info, takes the ints and spawns the correct gameobject from a list i created. This works on the Host to spawn its own third person model (Which is hidden only to itself), but the host cannot see the client's. The client spawns its own and can see the host's so im not sure what the problem is. The aim is to make the client's Cosmetics show on the host player. I know that the Host does spawn cosmetics for the other player, but the number item it spawns is always 0, which is the default empty, and i dont know why my code is https://pastebin.com/YjcNufgL If other scripts are needed just @ me
Pastebin
using Mirror;using System.IO;using System.Threading;using UnityEngi...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
Buddy
Buddy15mo ago
It would be good to know what network solution you are using
._.
._.15mo ago
Mirror with Unity @LLVM im pretty sure that the setting of ModelData just finishes too late bc if I run the code a seccond time then it works bc the data then is already set so yea
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.