(defines) { CESIUM_ML_DEFINE };
+ PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, definesSet.ToArray());
+#endif
+ }
+}
diff --git a/Assets/CesiumForUnitySamples/Scripts/Editor/CesiumMagicLeapDefine.cs.meta b/Assets/CesiumForUnitySamples/Scripts/Editor/CesiumMagicLeapDefine.cs.meta
new file mode 100644
index 0000000..3aa9ad3
--- /dev/null
+++ b/Assets/CesiumForUnitySamples/Scripts/Editor/CesiumMagicLeapDefine.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: f8ff52ab66906094fa58261f44f3150a
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/CesiumForUnitySamples/Settings/CesiumSamplesNewYorkCityLocations.asset b/Assets/CesiumForUnitySamples/Settings/CesiumSamplesNewYorkCityLocations.asset
new file mode 100644
index 0000000..a236fcb
--- /dev/null
+++ b/Assets/CesiumForUnitySamples/Settings/CesiumSamplesNewYorkCityLocations.asset
@@ -0,0 +1,85 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!114 &11400000
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 0}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: aa5e53a75492ec2458e267d6fb65843f, type: 3}
+ m_Name: CesiumSamplesNewYorkCityLocations
+ m_EditorClassIdentifier:
+ _locations:
+ - Name: New York City
+ Longitude: -74.06668402
+ Latitude: 40.71068528
+ Height: 3086.1461
+ IsEnabled: 0
+ - Name: One World Trade Center
+ Longitude: -74.01407807
+ Latitude: 40.71304984
+ Height: -18.587932
+ IsEnabled: 1
+ - Name: Statue of Liberty
+ Longitude: -74.04539309
+ Latitude: 40.69024158
+ Height: -18.7203
+ IsEnabled: 1
+ - Name: Belvedere Castle
+ Longitude: -73.96898954
+ Latitude: 40.7794302
+ Height: 22.2851
+ IsEnabled: 1
+ - Name: Empire State Building
+ Longitude: -73.98564288
+ Latitude: 40.74846975
+ Height: 362.0147
+ IsEnabled: 1
+ - Name: Brooklyn Bridge Park
+ Longitude: -73.99580302
+ Latitude: 40.70317212
+ Height: -19.2321
+ IsEnabled: 0
+ - Name: Times Square
+ Longitude: -73.98511558
+ Latitude: 40.75885471
+ Height: 0
+ IsEnabled: 1
+ - Name: Trinity Church
+ Longitude: -74.01170209
+ Latitude: 40.70774265
+ Height: -11.0372
+ IsEnabled: 1
+ - Name: Madison Square Park
+ Longitude: -73.98925736
+ Latitude: 40.4156237
+ Height: -9.6322
+ IsEnabled: 1
+ - Name: City Hall Park
+ Longitude: -74.00700125
+ Latitude: 40.71220486
+ Height: -9.8924
+ IsEnabled: 1
+ - Name: Ellis Island
+ Longitude: -74.04003879
+ Latitude: 40.6987499
+ Height: -19.7102
+ IsEnabled: 1
+ - Name: Rockefeller Center
+ Longitude: -73.97871193
+ Latitude: 40.75873755
+ Height: 0
+ IsEnabled: 0
+ - Name: Battery Park
+ Longitude: -74.01631
+ Latitude: 40.70369
+ Height: -18.0684
+ IsEnabled: 1
+ - Name: Little Island
+ Longitude: -74.0106259
+ Latitude: 40.7420177
+ Height: -14.5618
+ IsEnabled: 1
diff --git a/Assets/CesiumForUnitySamples/Settings/CesiumSamplesNewYorkCityLocations.asset.meta b/Assets/CesiumForUnitySamples/Settings/CesiumSamplesNewYorkCityLocations.asset.meta
new file mode 100644
index 0000000..214f8d1
--- /dev/null
+++ b/Assets/CesiumForUnitySamples/Settings/CesiumSamplesNewYorkCityLocations.asset.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 69e5117aca195304681bceabecb1fa20
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 11400000
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/CesiumForUnitySamples/Sprites.meta b/Assets/CesiumForUnitySamples/Sprites.meta
new file mode 100644
index 0000000..d4f7286
--- /dev/null
+++ b/Assets/CesiumForUnitySamples/Sprites.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: d1ef77a7b41ff5841b2f1352e207c6f2
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/CesiumForUnitySamples/Sprites/Triangle.png b/Assets/CesiumForUnitySamples/Sprites/Triangle.png
new file mode 100644
index 0000000..ff0ca33
Binary files /dev/null and b/Assets/CesiumForUnitySamples/Sprites/Triangle.png differ
diff --git a/Assets/CesiumForUnitySamples/Sprites/Triangle.png.meta b/Assets/CesiumForUnitySamples/Sprites/Triangle.png.meta
new file mode 100644
index 0000000..4996c0f
--- /dev/null
+++ b/Assets/CesiumForUnitySamples/Sprites/Triangle.png.meta
@@ -0,0 +1,140 @@
+fileFormatVersion: 2
+guid: 506c9440c7334794380d028097580e5d
+TextureImporter:
+ internalIDToNameTable: []
+ externalObjects: {}
+ serializedVersion: 12
+ mipmaps:
+ mipMapMode: 0
+ enableMipMap: 0
+ sRGBTexture: 1
+ linearTexture: 0
+ fadeOut: 0
+ borderMipMap: 0
+ mipMapsPreserveCoverage: 0
+ alphaTestReferenceValue: 0.5
+ mipMapFadeDistanceStart: 1
+ mipMapFadeDistanceEnd: 3
+ bumpmap:
+ convertToNormalMap: 0
+ externalNormalMap: 0
+ heightScale: 0.25
+ normalMapFilter: 0
+ flipGreenChannel: 0
+ isReadable: 0
+ streamingMipmaps: 0
+ streamingMipmapsPriority: 0
+ vTOnly: 0
+ ignoreMipmapLimit: 0
+ grayScaleToAlpha: 0
+ generateCubemap: 6
+ cubemapConvolution: 0
+ seamlessCubemap: 0
+ textureFormat: 1
+ maxTextureSize: 2048
+ textureSettings:
+ serializedVersion: 2
+ filterMode: 1
+ aniso: 1
+ mipBias: 0
+ wrapU: 1
+ wrapV: 1
+ wrapW: 0
+ nPOTScale: 0
+ lightmap: 0
+ compressionQuality: 50
+ spriteMode: 1
+ spriteExtrude: 1
+ spriteMeshType: 1
+ alignment: 0
+ spritePivot: {x: 0.5, y: 0.5}
+ spritePixelsToUnits: 100
+ spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+ spriteGenerateFallbackPhysicsShape: 1
+ alphaUsage: 1
+ alphaIsTransparency: 1
+ spriteTessellationDetail: -1
+ textureType: 8
+ textureShape: 1
+ singleChannelComponent: 0
+ flipbookRows: 1
+ flipbookColumns: 1
+ maxTextureSizeSet: 0
+ compressionQualitySet: 0
+ textureFormatSet: 0
+ ignorePngGamma: 0
+ applyGammaDecoding: 0
+ swizzle: 50462976
+ cookieLightType: 0
+ platformSettings:
+ - serializedVersion: 3
+ buildTarget: DefaultTexturePlatform
+ maxTextureSize: 2048
+ resizeAlgorithm: 0
+ textureFormat: -1
+ textureCompression: 1
+ compressionQuality: 50
+ crunchedCompression: 0
+ allowsAlphaSplitting: 0
+ overridden: 0
+ ignorePlatformSupport: 0
+ androidETC2FallbackOverride: 0
+ forceMaximumCompressionQuality_BC6H_BC7: 0
+ - serializedVersion: 3
+ buildTarget: Standalone
+ maxTextureSize: 2048
+ resizeAlgorithm: 0
+ textureFormat: -1
+ textureCompression: 1
+ compressionQuality: 50
+ crunchedCompression: 0
+ allowsAlphaSplitting: 0
+ overridden: 0
+ ignorePlatformSupport: 0
+ androidETC2FallbackOverride: 0
+ forceMaximumCompressionQuality_BC6H_BC7: 0
+ - serializedVersion: 3
+ buildTarget: Android
+ maxTextureSize: 2048
+ resizeAlgorithm: 0
+ textureFormat: -1
+ textureCompression: 1
+ compressionQuality: 50
+ crunchedCompression: 0
+ allowsAlphaSplitting: 0
+ overridden: 0
+ ignorePlatformSupport: 0
+ androidETC2FallbackOverride: 0
+ forceMaximumCompressionQuality_BC6H_BC7: 0
+ - serializedVersion: 3
+ buildTarget: Server
+ maxTextureSize: 2048
+ resizeAlgorithm: 0
+ textureFormat: -1
+ textureCompression: 1
+ compressionQuality: 50
+ crunchedCompression: 0
+ allowsAlphaSplitting: 0
+ overridden: 0
+ ignorePlatformSupport: 0
+ androidETC2FallbackOverride: 0
+ forceMaximumCompressionQuality_BC6H_BC7: 0
+ spriteSheet:
+ serializedVersion: 2
+ sprites: []
+ outline: []
+ physicsShape: []
+ bones: []
+ spriteID: 5e97eb03825dee720800000000000000
+ internalID: 0
+ vertices: []
+ indices:
+ edges: []
+ weights: []
+ secondaryTextures: []
+ nameFileIdTable: {}
+ mipmapLimitGroupName:
+ pSDRemoveMatte: 0
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Images~/new_york_magic_leap.jpg b/Images~/new_york_magic_leap.jpg
new file mode 100644
index 0000000..b66714f
Binary files /dev/null and b/Images~/new_york_magic_leap.jpg differ
diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset
index 1c92a78..a395a66 100644
--- a/ProjectSettings/TagManager.asset
+++ b/ProjectSettings/TagManager.asset
@@ -11,7 +11,7 @@ TagManager:
-
- Water
- UI
- -
+ - Metadata
-
-
-
diff --git a/README.md b/README.md
index c606bd9..a6be447 100644
--- a/README.md
+++ b/README.md
@@ -87,6 +87,24 @@ Cesium for Unity supports virtual reality platforms. This level is set up for us
In this scene, experience a miniature version of New York City using an Oculus Quest 2 and the XR Interaction Toolkit. You can walk around and point at buildings with your controller to view their detailed metadata.
+### :goggles: :three: VR Level 3 - New York City Landmarks in Mixed Reality
+
+**This sample requires Unity 2022.3.11f or newer.**
+
+This demo is intended for use with the Magic Leap 2 headset and SDK. In this scene, explore the New York City skyline visualized with Google Photorealistic 3D Tiles. You can visit a set of interesting locations in and around Manhattan, as well as view building metadata while you walk through the streets in Mixed Reality.
+
+Upon opening the **VR03_CesiumMagicLeap** scene or playing it in the editor, you will be prompted with instructions to configure the project for Magic Leap development. The scene will show you prompts that handle most of the configuration necessary. To build for the Magic Leap, follow these instructions:
+
+1. Open the scene in the editor.
+2. As prompted, [follow the steps in the Magic Leap documentation](https://developer-docs.magicleap.cloud/docs/guides/unity/getting-started/configure-unity-settings/#import-magic-leap-unity-sdk) to install the Magic Leap SDK in the project.
+3. Once installed, press play in the editor. This opens a prompt that will automatically change the project's Build Settings for the Magic Leap. Press "Ok" and wait.
+4. Once completed, check `Edit -> Project Settings -> XR Plug-in Management -> Project Validation` and make sure no issues are present. If there are, resolve them by clicking "Fix" next to each one.
+5. Go to `File -> Build Settings` and click "Build and Run" to create an APK and launch it on the headset.
+
+![New York City landmarks visualized with Photorealistic 3D Tiles in Cesium for Unity, rendered on the Magic Leap 2 headset.](Images~/new_york_magic_leap.jpg)
+
+*New York City landmarks visualized with Photorealistic 3D Tiles in Cesium for Unity, as rendered on the Magic Leap 2 headset.
Open VR03_CesiumMagicLeap in the Cesium for Unity Samples to explore the New York City skyline.
*
+
### :green_book:License
[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). Cesium for Unity Samples is free to use as starter project for both commercial and non-commercial use.