void Awake() { // Initialize String stringWrapper = new StringWrapper(null, camera, reorientBranding, fullscreen, alignment); // Load some image targets for (uint i = 0; i < rootObjects.Length; i++) { stringWrapper.LoadImageMarker("Marker " + (i + 1), "png"); } // Hide all rootObjects // Also, set them as children of the camera; // This is to more easily position them relative to the camera later for (uint i = 0; i < rootObjects.Length; i++) { rootObjects[i].SetActiveRecursively(false); rootObjects[i].transform.parent = transform; } // Allocate array to track the last time each marker was spotted lastSpottedTimes = new float[rootObjects.Length]; // Prevent the iOS keyboard from introducing an unwanted // black frame when rotating iPhoneKeyboard.autorotateToLandscapeLeft = false; iPhoneKeyboard.autorotateToLandscapeRight = false; iPhoneKeyboard.autorotateToPortrait = false; iPhoneKeyboard.autorotateToPortraitUpsideDown = false; }
void Awake() { // Initialize String stringWrapper = new StringWrapper(previewCamName, previewCamApproxVerticalFOV, camera, reorientIPhoneSplash, fullscreen, alignment); // Load some image targets stringWrapper.LoadImageMarker("Marker 1", "png"); }
void Awake() { // Initialize String stringWrapper = new StringWrapper(previewCamName, previewCamApproxVerticalFOV, camera, reorientIPhoneSplash, fullscreen, alignment); // Load some image targets stringWrapper.LoadImageMarker("Marker 1", "png"); }
void Awake() { // Initialize String stringWrapper = new StringWrapper(null, camera, reorientBranding, fullscreen, alignment); // Load some image targets for (uint i = 0; i < markerObjects.Length; i++) { stringWrapper.LoadImageMarker("Marker " + (i + 1), "png"); } // Prevent the iOS keyboard from introducing an unwanted // black frame when rotating iPhoneKeyboard.autorotateToLandscapeLeft = false; iPhoneKeyboard.autorotateToLandscapeRight = false; iPhoneKeyboard.autorotateToPortrait = false; iPhoneKeyboard.autorotateToPortraitUpsideDown = false; }
void Awake() { // Initialize String stringWrapper = new StringWrapper(previewCamName, previewCamApproxVerticalFOV, camera, reorientIPhoneSplash, fullscreen, alignment); // Load some image targets stringWrapper.LoadImageMarker("Marker 1", "png"); // Hide all rootObjects // Also, set them as children of the camera; // This is to more easily position them relative to the camera later for (uint i = 0; i < rootObjects.Length; i++) { rootObjects[i].SetActiveRecursively(false); rootObjects[i].transform.parent = transform; } // Allocate array to track the last time each marker was spotted lastSpottedTimes = new float[rootObjects.Length]; }
void Awake() { // Initialize String stringWrapper = new StringWrapper(previewCamName, previewCamApproxVerticalFOV, camera, reorientIPhoneSplash, fullscreen, alignment); // Load some image targets stringWrapper.LoadImageMarker("Marker 1", "png"); // Hide all rootObjects // Also, set them as children of the camera; // This is to more easily position them relative to the camera later for (uint i = 0; i < rootObjects.Length; i++) { rootObjects[i].SetActiveRecursively(false); rootObjects[i].transform.parent = transform; } // Allocate array to track the last time each marker was spotted lastSpottedTimes = new float[rootObjects.Length]; }