Download Assets/Scripts/MoveCamera.cs from AliAch/my-unity-assets: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/datasets/AliAch/my-unity-assets/resolve/main/Assets/Scripts/MoveCamera.cs
- Command line
-
hf download hf://datasets/AliAch/my-unity-assets/Assets/Scripts/MoveCamera.cs
-
curl -L -o MoveCamera.cs https://huggingface.co/datasets/AliAch/my-unity-assets/resolve/main/Assets/Scripts/MoveCamera.cs
307 Bytes
| using UnityEngine; | |
| public class MoveCamera : MonoBehaviour | |
| { | |
| [] private Transform camPos; | |
| // LateUpdate prevents camera jittering/stuttering | |
| private void LateUpdate() | |
| { | |
| if (camPos != null) | |
| { | |
| transform.position = camPos.position; | |
| } | |
| } | |
| } | |