public static OrthographicCamera CreateZOrthographic() { OrthographicCamera camera = new OrthographicCamera(); camera.location = new Vector3(0, 0, 100); camera.lookAt = new Vector3(0, 0, 0); camera.up = new Vector3(0, 1, 0); camera.right = new Vector3(1, 0, 0); camera.Name = "Z Orthographic"; return camera; }
public void SetCamera(OrthographicCamera camera) { this.camera = camera; this.camera.cameraUpdated += OnCameraUpdated; UpdateUIFromCamera(); }