- Home /
Question by
MadHatterXp · Feb 27 at 12:21 AM ·
scripting problem
Help with code for camera rotation
Hello I'm trying out a tutorial but when it comes the cameras position it won't work does anyone know how to fix this issue Code: using System.Collections; using System.Collections.Generic; using UnityEngine;
public class POS : MonoBehaviour {
[SerializeField]
Transform trans;
// Update is called once per frame
void Update()
{
transform.position = trans.position;
}
}
Comment