- Home /
Question by
Daniel_12 · Jun 13, 2012 at 10:40 PM ·
cameranetworkingmultiplayernet
Simple Camera look script (MULTIPLAYER)
I made a simple camera look script for testing and it doesn't seem to work on my server scene but it does work on a separate scene.
using UnityEngine;
using System.Collections;
public class SimpleCamera : MonoBehaviour {
public Transform target;
void Update () {
if(networkView.isMine){
transform.position = target.transform.position;
transform.rotation = target.transform.rotation;
}
}
void Start(){
enabled = false;
}
}
I am enabling the camera script on another script i don't think it has to do with this though but if it does then tell me so i can post it.
Comment
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Spawning a child object with UNET 0 Answers
Trying to follow tutorial to set up Multiplayer camera follow on UNET... and it goes wrong. 0 Answers
How to trigger camera capture on each player in Unity Networking? 0 Answers
camera layer issue, multiplayer. 1 Answer