- Home /
Question by
galactichyperstar · Jun 04, 2018 at 03:51 AM ·
networkingvisibility
[UNET] How to do custom visibility for card games.
I'm creating a card game with UNET but have come across a problem. I spawn all cards from both decks at the start of the match, but how would I only spawn them on the server. No Client should know of the cards in their deck because it's face down. And when a Client draws a card, how would I hide the card that the opponent drew, but have that opponent still be able to see their own card? Do I have to send [TargetClient] Destroy() and [TargetClient] Instantiate() functions? Or is there a better way to do it like the Network Proximity Checker component?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612164037im_/https://answers.unity.com/themes/thub/images/avi.jpg)