-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
274 changed files
with
87,405 additions
and
505 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:installLocation="auto"> | ||
<application | ||
android:allowBackup="false"> | ||
<activity | ||
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" | ||
android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" | ||
android:launchMode="singleTask" | ||
android:name="com.unity3d.player.UnityPlayerActivity" | ||
android:excludeFromRecents="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.INFO"/> | ||
</intent-filter> | ||
</activity> | ||
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" /> | ||
</application> | ||
</manifest> |
8 changes: 8 additions & 0 deletions
8
Assets/Oculus/VR/Editor/AndroidManifest.OVRSubmission.xml.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/************************************************************************************ | ||
Copyright : Copyright 2017 Oculus VR, LLC. All Rights reserved. | ||
Licensed under the Oculus VR Rift SDK License Version 3.4.1 (the "License"); | ||
you may not use the Oculus VR Rift SDK except in compliance with the License, | ||
which is provided at the time of installation or download, or which | ||
otherwise accompanies this software in either electronic or hard copy form. | ||
You may obtain a copy of the License at | ||
https://developer.oculus.com/licenses/sdk-3.4.1 | ||
Unless required by applicable law or agreed to in writing, the Oculus VR SDK | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
************************************************************************************/ | ||
|
||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
/// <summary> | ||
/// Allows Oculus to build apps from the command line. | ||
/// </summary> | ||
partial class OculusBuildApp | ||
{ | ||
static void SetPCTarget() | ||
{ | ||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.StandaloneWindows) | ||
{ | ||
EditorUserBuildSettings.SwitchActiveBuildTarget (BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows); | ||
} | ||
UnityEditorInternal.VR.VREditor.SetVREnabledOnTargetGroup(BuildTargetGroup.Standalone, true); | ||
PlayerSettings.virtualRealitySupported = true; | ||
AssetDatabase.SaveAssets(); | ||
} | ||
|
||
static void SetAndroidTarget() | ||
{ | ||
EditorUserBuildSettings.androidBuildSubtarget = MobileTextureSubtarget.ASTC; | ||
EditorUserBuildSettings.androidBuildSystem = AndroidBuildSystem.Internal; | ||
|
||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android) | ||
{ | ||
EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android); | ||
} | ||
|
||
UnityEditorInternal.VR.VREditor.SetVREnabledOnTargetGroup(BuildTargetGroup.Standalone, true); | ||
PlayerSettings.virtualRealitySupported = true; | ||
AssetDatabase.SaveAssets(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.