private void Start() { // Force screen brightness #if UNITY_IOS MiraiOSBridge.ForceBrightness(); #endif SanityCheck(); }
void Awake() { // Initialize Wikitude Camera as Front Facing ArCam = GetComponent <WikitudeCamera>(); ArCam.DevicePosition = CaptureDevicePosition.Front; Debug.Log("Using front facing camera"); Vector2 exposurepoint = new Vector2(0.15f, 0.2f); ArCam.ExposeAtPointOfInterest(exposurepoint, CaptureExposureMode.ContinuousAutoExpose); #if UNITY_IOS MiraiOSBridge.ForceBrightness(); #endif Screen.orientation = ScreenOrientation.LandscapeLeft; }
private void Start() { // For screen orientation Screen.autorotateToPortrait = true; Screen.autorotateToLandscapeLeft = true; Screen.autorotateToPortraitUpsideDown = false; Screen.autorotateToLandscapeRight = false; Screen.orientation = ScreenOrientation.AutoRotation; // Force screen brightness #if UNITY_IOS MiraiOSBridge.ForceBrightness(); #endif SanityCheck(); }