Skip to content

Instantly share code, notes, and snippets.

@olokobayusuf
Created June 6, 2017 22:50
Show Gist options
  • Save olokobayusuf/e363e82193ecb4fb5eb28fc6f6deb657 to your computer and use it in GitHub Desktop.
Save olokobayusuf/e363e82193ecb4fb5eb28fc6f6deb657 to your computer and use it in GitHub Desktop.
using UnityEngine;
using NatCamU.Core;
public class CheckCameras : MonoBehaviour {
void Start () {
foreach (var camera in NatCam.Cameras) if (camera) {
Debug.Log("Found a camera with facing: " + camera.Facing);
return;
}
Debug.LogError("No cameras found");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment