unet custom observers for networked object .

hi .
i made a simple network game with HLAPI component (NetworkManager , network transform , network hud,…)
everything works fine and four players join in a server now i need to say " player 1 only see player 3 and player 2 only see player 4 and they must not see other player" in the same server they joined .
i see NetworkIdentity.observers but it’s read only .

Give each player its own rendering layer. Then, set the layerMask of each player’s camera to the layers you want that player to see. You will need some GameObject to store an array of players and corresponding arrays of layers and layerMasks. When a player joins, set its layer and layerMask to the respective items in the arrays. There may be better ways to do this, but this is what I am using.