Created
June 6, 2017 22:50
-
-
Save olokobayusuf/e363e82193ecb4fb5eb28fc6f6deb657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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