void Start() { // request 60 fps targetFrameRate = 60; // don't put screen to sleep neverSleep = true; isVROneEnabled = true; isDistortionEnabled = true; runsInStereMode = true; #if UNITY_EDITOR /* * When using the Unity Editor to run the project, this call * make sure that all assets are imported properly when * shipping to actual devices. * This is very important for all LUTs as these are required to * be loaded using the RGB24 texture format and some other * settings. * When importing the Unity-Package all LUT-texture-settings * should be fine. But if new LUTs are integrated by a developer, * they should be checked and set properly. */ VROneAssetImporter.importAssets(); #endif //UNITY_EDITOR }
public static void importAssets() { Debug.Log("Importing assets with correct texture settings."); // loop over all available devices foreach (VROneSDKSupportedDeviceModel supportedDevice in System.Enum.GetValues(typeof(VROneSDKSupportedDeviceModel))) { VROneAssetImporter.importAssetsForDevice(supportedDevice); } }