-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
f552f81
commit adce288
Showing
174 changed files
with
7,641 additions
and
644 deletions.
There are no files selected for viewing
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
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
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
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,34 @@ | ||
// %BANNER_BEGIN% | ||
// --------------------------------------------------------------------- | ||
// %COPYRIGHT_BEGIN% | ||
// Copyright (c) (2019-2022) Magic Leap, Inc. All Rights Reserved. | ||
// Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 | ||
// Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. | ||
// %COPYRIGHT_END% | ||
// --------------------------------------------------------------------- | ||
// %BANNER_END% | ||
|
||
#if UNITY_OPENXR_1_7_0_OR_NEWER | ||
using UnityEditor; | ||
using UnityEditor.XR.OpenXR.Features; | ||
|
||
namespace UnityEngine.XR.OpenXR.Features.MagicLeapSupport | ||
{ | ||
[OpenXRFeatureSet( | ||
UiName = "Magic Leap", | ||
Description = "All Magic Leap OpenXR Features", | ||
FeatureSetId = "com.magicleap.openxr.featuregroup", | ||
SupportedBuildTargets = new [] { BuildTargetGroup.Android, BuildTargetGroup.Standalone }, | ||
FeatureIds = new [] { | ||
MagicLeapFeature.featureId , | ||
MagicLeapHandTrackingFeature.featureId, | ||
MagicLeapRenderingExtensionsFeature.featureId, | ||
MagicLeapReferenceSpacesFeature.featureId, | ||
MagicLeapClippingPlaneEnforcementFeature.featureId, | ||
MagicLeapPlanesFeature.FeatureId, | ||
} | ||
)] | ||
public class MagicLeapFeatureGroup | ||
{ } | ||
} | ||
#endif |
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,36 @@ | ||
// %BANNER_BEGIN% | ||
// --------------------------------------------------------------------- | ||
// %COPYRIGHT_BEGIN% | ||
// Copyright (c) (2019-2023) Magic Leap, Inc. All Rights Reserved. | ||
// Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 | ||
// Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. | ||
// %COPYRIGHT_END% | ||
// --------------------------------------------------------------------- | ||
// %BANNER_END% | ||
|
||
#if UNITY_OPENXR_1_7_0_OR_NEWER | ||
using UnityEngine; | ||
using UnityEngine.XR.OpenXR.Features.MagicLeapSupport; | ||
|
||
namespace UnityEditor.XR.OpenXR.Features.MagicLeapSupport | ||
{ | ||
public static class SegmentedDimmerMenuItem | ||
{ | ||
[MenuItem("GameObject/XR/Magic Leap Segmented Dimmer")] | ||
public static void AddSegmentedDimmerToScene() | ||
{ | ||
var mainCamera = Camera.main; | ||
if (mainCamera == null) | ||
{ | ||
Debug.LogError($"Could not find Main Camera! Before adding a Segmented Dimmer to your scene, you must add a Camera and tag it \"MainCamera\""); | ||
return; | ||
} | ||
|
||
var prefab = AssetDatabase.LoadAssetAtPath<DimmerCameraControl>("Packages/com.magicleap.unitysdk/Runtime/Tools/Prefabs/Segmented Dimmer.prefab"); | ||
var instance = GameObject.Instantiate(prefab.gameObject, mainCamera.transform); | ||
instance.name = "Segmented Dimmer"; | ||
Selection.objects = new Object[] { instance }; | ||
} | ||
} | ||
} | ||
#endif |
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
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.