-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Xml; | ||
using UnityEditor.Build.Reporting; | ||
using UnityEditor.XR.OpenXR.Features; | ||
|
||
namespace Zappar.OpenXR.GenericAndroidLoader.Editor | ||
{ | ||
internal class ModifyAndroidManfest : OpenXRFeatureBuildHooks | ||
{ | ||
public override int callbackOrder => 1; | ||
|
||
public override Type featureType => typeof(GenericFeature); | ||
|
||
protected override void OnPostGenerateGradleAndroidProjectExt(string path) | ||
{ | ||
//throw new NotImplementedException(); | ||
} | ||
|
||
protected override void OnPostprocessBuildExt(BuildReport report) | ||
{ | ||
//throw new NotImplementedException(); | ||
} | ||
|
||
protected override void OnPreprocessBuildExt(BuildReport report) | ||
{ | ||
//throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using UnityEditor; | ||
|
||
namespace Zappar.OpenXR.GenericAndroidLoader.Editor | ||
{ | ||
[CustomEditor(typeof(GenericFeature))] | ||
public class GenericFeatureEditor : UnityEditor.Editor | ||
{ | ||
private SerializedProperty enableTracker; | ||
|
||
private void OnEnable() | ||
{ | ||
enableTracker = serializedObject.FindProperty(nameof(GenericFeature.EnableTracker)); | ||
} | ||
|
||
public override void OnInspectorGUI() | ||
{ | ||
serializedObject.Update(); | ||
|
||
EditorGUILayout.PropertyField(enableTracker); | ||
|
||
serializedObject.ApplyModifiedProperties(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using UnityEditor; | ||
using UnityEditor.XR.OpenXR.Features; | ||
|
||
namespace Zappar.OpenXR.GenericAndroidLoader.Editor | ||
{ | ||
[OpenXRFeatureSet( | ||
FeatureIds = new[] | ||
{ | ||
GenericFeature.featureId, | ||
}, | ||
UiName = "Generic OpenXR Support", | ||
Description = "For targetting generic OpenXR compatible runtime on android", | ||
FeatureSetId = "com.zappar.openxr.generic.featureset.loader", | ||
SupportedBuildTargets = new BuildTargetGroup[] { BuildTargetGroup.Android } | ||
)] | ||
sealed class GenericFeatureSet | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "com.zappar.openxr.genericandroidloader.editor", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:262f913ccd7417c46a908591bd2bb03e", | ||
"GUID:4847341ff46394e83bb78fbd0652937e", | ||
"GUID:96aa6ba065960476598f8f643e7252b6" | ||
], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2022 NFYNT© | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.DefaultCompany.OpenXRLoader" | ||
android:installLocation="auto" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
|
||
<!-- Tell the system this app works in either 3dof or 6dof mode --> | ||
<uses-feature | ||
android:name="android.hardware.vr.headtracking" | ||
android:required="false" | ||
android:version="1" /> | ||
|
||
<!-- If building externally with the OpenXR AAR, this would be merged in automatically. --> | ||
<uses-permission android:name="org.khronos.openxr.permission.OPENXR" /> | ||
<uses-permission android:name="org.khronos.openxr.permission.OPENXR_SYSTEM" /> | ||
<queries> | ||
<provider android:authorities="org.khronos.openxr.runtime_broker;org.khronos.openxr.system_runtime_broker" /> | ||
</queries> | ||
|
||
</manifest> |