title: Own Camera for each player in multiplayer game
body: <p>Following unity <a href="https://unity3d.com/learn/tutorials/topics/multiplayer-networking/handling-non-player-objects?playlist=29690" rel="nofollow">official guide for multiplayer game</a> and Now I want camera for each player (Just like in counter strike).</p>
  
  <p>I have make A Camera child to the player gameobject but it is not working correctly and showing only one player camera for all player. One Camera is only showing of a specific player.</p>
  
  <p>How do i make separate camera for each player in multiplayer game.? So that a player can view the game from his perspective.</p>
  
  <p>I have also added this to my child camera but nothing worked</p>
  
  <pre><code>[RequireComponent(typeof(NetworkView))]
  public class PlayerCamera : MonoBehaviour {
  
      void Start () {
          NetworkView objNetworkView = GetComponent&lt;NetworkView&gt;();
          if (objNetworkView.isMine)
          {
              GetComponent&lt;Camera&gt;().enabled = true;
          }
          else {
              GetComponent&lt;Camera&gt;().enabled = false;
          }
      }
  
  }
  </code></pre>