├── .editorconfig ├── .gitignore ├── Assets ├── MetaXR.meta ├── MetaXR │ ├── MetaXRProjectSettings.asset │ └── MetaXRProjectSettings.asset.meta ├── Oculus.meta ├── Oculus │ ├── OculusProjectConfig.asset │ └── OculusProjectConfig.asset.meta ├── PassthroughCameraApiSamples.meta ├── PassthroughCameraApiSamples │ ├── BrightnessEstimation.meta │ ├── BrightnessEstimation │ │ ├── BrightnessEstimation.unity │ │ ├── BrightnessEstimation.unity.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── BrightnessEstimationColorPurple.mat │ │ │ ├── BrightnessEstimationColorPurple.mat.meta │ │ │ ├── BrightnessEstimationColorYellow.mat │ │ │ └── BrightnessEstimationColorYellow.mat.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── BrightnessEstimationDebuggerPrefab.prefab │ │ │ ├── BrightnessEstimationDebuggerPrefab.prefab.meta │ │ │ ├── BrightnessEstimationManagerPrefab.prefab │ │ │ └── BrightnessEstimationManagerPrefab.prefab.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── BrightnessEstimationDebugger.cs │ │ │ ├── BrightnessEstimationDebugger.cs.meta │ │ │ ├── BrightnessEstimationManager.cs │ │ │ └── BrightnessEstimationManager.cs.meta │ ├── CameraToWorld.meta │ ├── CameraToWorld │ │ ├── CameraToWorld.unity │ │ ├── CameraToWorld.unity.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── CameraToWorldCircle_Outline.mat │ │ │ ├── CameraToWorldCircle_Outline.mat.meta │ │ │ ├── CameraToWorldCircle_Outline.png │ │ │ ├── CameraToWorldCircle_Outline.png.meta │ │ │ ├── CameraToWorldRed.mat │ │ │ └── CameraToWorldRed.mat.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── CameraToWorldButtonA_Highlight.prefab │ │ │ ├── CameraToWorldButtonA_Highlight.prefab.meta │ │ │ ├── CameraToWorldCameraCanvas.prefab │ │ │ └── CameraToWorldCameraCanvas.prefab.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── CameraToWorldCameraCanvas.cs │ │ │ ├── CameraToWorldCameraCanvas.cs.meta │ │ │ ├── CameraToWorldManager.cs │ │ │ ├── CameraToWorldManager.cs.meta │ │ │ ├── CameraToWorldRayRenderer.cs │ │ │ └── CameraToWorldRayRenderer.cs.meta │ ├── CameraViewer.meta │ ├── CameraViewer │ │ ├── CameraViewer.unity │ │ ├── CameraViewer.unity.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── CameraViewerManagerPrefab.prefab │ │ │ └── CameraViewerManagerPrefab.prefab.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── CameraViewerManager.cs │ │ │ └── CameraViewerManager.cs.meta │ ├── LICENSE.txt │ ├── LICENSE.txt.meta │ ├── MultiObjectDetection.meta │ ├── MultiObjectDetection │ │ ├── DetectionManager.meta │ │ ├── DetectionManager │ │ │ ├── Audio.meta │ │ │ ├── Audio │ │ │ │ ├── Detection_Ui_Accept.mp3 │ │ │ │ ├── Detection_Ui_Accept.mp3.meta │ │ │ │ ├── Detection_Ui_Ambient.mp3 │ │ │ │ └── Detection_Ui_Ambient.mp3.meta │ │ │ ├── Materials.meta │ │ │ ├── Materials │ │ │ │ ├── DetectionSpawnMarkerMat.mat │ │ │ │ ├── DetectionSpawnMarkerMat.mat.meta │ │ │ │ ├── DetectionSpawnMarkerPointMat.mat │ │ │ │ └── DetectionSpawnMarkerPointMat.mat.meta │ │ │ ├── Prefabs.meta │ │ │ ├── Prefabs │ │ │ │ ├── DetectionManagerPrefab.prefab │ │ │ │ ├── DetectionManagerPrefab.prefab.meta │ │ │ │ ├── DetectionSpawnMarker.prefab │ │ │ │ ├── DetectionSpawnMarker.prefab.meta │ │ │ │ ├── DetectionUiMenuPrefab.prefab │ │ │ │ └── DetectionUiMenuPrefab.prefab.meta │ │ │ ├── Scripts.meta │ │ │ ├── Scripts │ │ │ │ ├── DetectionManager.cs │ │ │ │ ├── DetectionManager.cs.meta │ │ │ │ ├── DetectionSpawnMarkerAnim.cs │ │ │ │ ├── DetectionSpawnMarkerAnim.cs.meta │ │ │ │ ├── DetectionUiBlinkText.cs │ │ │ │ ├── DetectionUiBlinkText.cs.meta │ │ │ │ ├── DetectionUiMenuManager.cs │ │ │ │ ├── DetectionUiMenuManager.cs.meta │ │ │ │ ├── DetectionUiTextWritter.cs │ │ │ │ └── DetectionUiTextWritter.cs.meta │ │ │ ├── Textures.meta │ │ │ └── Textures │ │ │ │ ├── DetectionSpawnMarkerTexture.png │ │ │ │ └── DetectionSpawnMarkerTexture.png.meta │ │ ├── EnvironmentRaycast.meta │ │ ├── EnvironmentRaycast │ │ │ ├── Prefabs.meta │ │ │ ├── Prefabs │ │ │ │ ├── EnvironmentRaycastPrefab.prefab │ │ │ │ └── EnvironmentRaycastPrefab.prefab.meta │ │ │ ├── Scripts.meta │ │ │ └── Scripts │ │ │ │ ├── EnvironmentRayCastSampleManager.cs │ │ │ │ └── EnvironmentRayCastSampleManager.cs.meta │ │ ├── MultiObjectDetection.unity │ │ ├── MultiObjectDetection.unity.meta │ │ ├── SentisInference.meta │ │ └── SentisInference │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ ├── SentisModelEditorConverter.cs │ │ │ └── SentisModelEditorConverter.cs.meta │ │ │ ├── Model.meta │ │ │ ├── Model │ │ │ ├── SentisYoloClasses.txt │ │ │ ├── SentisYoloClasses.txt.meta │ │ │ ├── yolov9onnx.onnx │ │ │ ├── yolov9onnx.onnx.meta │ │ │ ├── yolov9sentis.sentis │ │ │ └── yolov9sentis.sentis.meta │ │ │ ├── Prefabs.meta │ │ │ ├── Prefabs │ │ │ ├── SentisInferenceManagerPrefab.prefab │ │ │ └── SentisInferenceManagerPrefab.prefab.meta │ │ │ ├── Scripts.meta │ │ │ └── Scripts │ │ │ ├── SentisInferenceRunManager.cs │ │ │ ├── SentisInferenceRunManager.cs.meta │ │ │ ├── SentisInferenceUiManager.cs │ │ │ ├── SentisInferenceUiManager.cs.meta │ │ │ ├── SentisObjectDetectedUiManager.cs │ │ │ └── SentisObjectDetectedUiManager.cs.meta │ ├── PassthroughCamera.meta │ ├── PassthroughCamera │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── PassthroughCameraEditorUpdateManifest.cs │ │ │ └── PassthroughCameraEditorUpdateManifest.cs.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── WebCamTextureManagerPrefab.prefab │ │ │ └── WebCamTextureManagerPrefab.prefab.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── PassthroughCameraDebugger.cs │ │ │ ├── PassthroughCameraDebugger.cs.meta │ │ │ ├── PassthroughCameraPermissions.cs │ │ │ ├── PassthroughCameraPermissions.cs.meta │ │ │ ├── PassthroughCameraUtils.cs │ │ │ ├── PassthroughCameraUtils.cs.meta │ │ │ ├── WebCamTextureManager.cs │ │ │ └── WebCamTextureManager.cs.meta │ ├── ShaderSample.meta │ ├── ShaderSample │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── ShaderSampleWaterMat.mat │ │ │ └── ShaderSampleWaterMat.mat.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── ShaderSampleManagerPrefab.prefab │ │ │ └── ShaderSampleManagerPrefab.prefab.meta │ │ ├── Scripts.meta │ │ ├── Scripts │ │ │ ├── ShaderSampleManager.cs │ │ │ └── ShaderSampleManager.cs.meta │ │ ├── ShaderSample.unity │ │ ├── ShaderSample.unity.meta │ │ ├── Shaders.meta │ │ ├── Shaders │ │ │ ├── ShaderSampleWater.shader │ │ │ └── ShaderSampleWater.shader.meta │ │ ├── Textures.meta │ │ └── Textures │ │ │ ├── waterNormal.jpg │ │ │ ├── waterNormal.jpg.meta │ │ │ ├── waterdetail.jpg │ │ │ └── waterdetail.jpg.meta │ ├── StartScene.meta │ └── StartScene │ │ ├── Fonts.meta │ │ ├── Fonts │ │ ├── Montserrat.meta │ │ └── Montserrat │ │ │ ├── Montserrat-Bold.ttf │ │ │ ├── Montserrat-Bold.ttf.meta │ │ │ ├── Montserrat-BoldItalic.ttf │ │ │ ├── Montserrat-BoldItalic.ttf.meta │ │ │ ├── Montserrat-Light.ttf │ │ │ ├── Montserrat-Light.ttf.meta │ │ │ ├── Montserrat-LightItalic.ttf │ │ │ ├── Montserrat-LightItalic.ttf.meta │ │ │ ├── Montserrat-Medium.ttf │ │ │ ├── Montserrat-Medium.ttf.meta │ │ │ ├── Montserrat-MediumItalic.ttf │ │ │ ├── Montserrat-MediumItalic.ttf.meta │ │ │ ├── OFL.txt │ │ │ └── OFL.txt.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ ├── DebugDrawLine.mat │ │ └── DebugDrawLine.mat.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ ├── CanvasWithDebug.prefab │ │ ├── CanvasWithDebug.prefab.meta │ │ ├── DebugButton.prefab │ │ ├── DebugButton.prefab.meta │ │ ├── DebugDivider.prefab │ │ ├── DebugDivider.prefab.meta │ │ ├── DebugLabel.prefab │ │ ├── DebugLabel.prefab.meta │ │ ├── DebugRadio.prefab │ │ ├── DebugRadio.prefab.meta │ │ ├── DebugSlider.prefab │ │ ├── DebugSlider.prefab.meta │ │ ├── DebugTextField.prefab │ │ ├── DebugTextField.prefab.meta │ │ ├── DebugToggle.prefab │ │ ├── DebugToggle.prefab.meta │ │ ├── DebugUITestCanvas.prefab │ │ ├── DebugUITestCanvas.prefab.meta │ │ ├── ReturnToStartScene.prefab │ │ ├── ReturnToStartScene.prefab.meta │ │ ├── UIHelpers.prefab │ │ └── UIHelpers.prefab.meta │ │ ├── Scripts.meta │ │ ├── Scripts │ │ ├── DebugUIBuilder.cs │ │ ├── DebugUIBuilder.cs.meta │ │ ├── HandedInputSelector.cs │ │ ├── HandedInputSelector.cs.meta │ │ ├── LaserPointer.cs │ │ ├── LaserPointer.cs.meta │ │ ├── ReturnToStartScene.cs │ │ ├── ReturnToStartScene.cs.meta │ │ ├── StartMenu.cs │ │ └── StartMenu.cs.meta │ │ ├── StartScene.unity │ │ ├── StartScene.unity.meta │ │ ├── Textures.meta │ │ └── Textures │ │ ├── BlackCubemap.png │ │ ├── BlackCubemap.png.meta │ │ ├── Loading.png │ │ ├── Loading.png.meta │ │ ├── button.png │ │ ├── button.png.meta │ │ ├── button9slice.png │ │ ├── button9slice.png.meta │ │ ├── dialog.png │ │ ├── dialog.png.meta │ │ ├── header.png │ │ ├── header.png.meta │ │ ├── noise_01.png │ │ ├── noise_01.png.meta │ │ ├── panel_background.PNG │ │ ├── panel_background.PNG.meta │ │ ├── radio_PSD.psd │ │ ├── radio_PSD.psd.meta │ │ ├── radio_disabled.png │ │ ├── radio_disabled.png.meta │ │ ├── radio_off.png │ │ ├── radio_off.png.meta │ │ ├── radio_on.png │ │ ├── radio_on.png.meta │ │ ├── radio_on_off.png │ │ ├── radio_on_off.png.meta │ │ ├── radio_over.png │ │ ├── radio_over.png.meta │ │ ├── separator.png │ │ ├── separator.png.meta │ │ ├── slider_bar.png │ │ ├── slider_bar.png.meta │ │ ├── slider_slider.png │ │ ├── slider_slider.png.meta │ │ ├── translucent_01.png │ │ └── translucent_01.png.meta ├── Plugins.meta ├── Plugins │ ├── Android.meta │ └── Android │ │ ├── AndroidManifest.xml │ │ └── AndroidManifest.xml.meta ├── Resources.meta ├── Resources │ ├── ImmersiveDebuggerSettings.asset │ ├── ImmersiveDebuggerSettings.asset.meta │ ├── OVRBuildConfig.asset │ ├── OVRBuildConfig.asset.meta │ ├── OVRPlatformToolSettings.asset │ ├── OVRPlatformToolSettings.asset.meta │ ├── OculusRuntimeSettings.asset │ ├── OculusRuntimeSettings.asset.meta │ ├── buildInfo.txt │ └── buildInfo.txt.meta ├── XR.meta └── XR │ ├── Loaders.meta │ ├── Loaders │ ├── OculusLoader.asset │ └── OculusLoader.asset.meta │ ├── Settings.meta │ ├── Settings │ ├── OculusSettings.asset │ └── OculusSettings.asset.meta │ ├── XRGeneralSettingsPerBuildTarget.asset │ └── XRGeneralSettingsPerBuildTarget.asset.meta ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.txt ├── Media ├── BrightnessEstimation.gif ├── CameraToWorld.gif ├── ObjectDetectionSentis.gif └── ShaderSample.gif ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── MultiplayerManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Packages │ └── com.unity.testtools.codecoverage │ │ └── Settings.json ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── TimelineSettings.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRPackageSettings.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | Temp/ 2 | UserSettings/ 3 | Library/ 4 | Logs/ 5 | obj/ 6 | Build/ 7 | .vs/ 8 | .vsconfig 9 | *.csproj 10 | *.sln 11 | /.utmp 12 | *.zip 13 | RuntimeActionBindings.json 14 | RuntimeActionBindings.json.meta 15 | ProjectSettings\Packages\com.unity.testtools.codecoverage\Settings.json 16 | PerformanceTestRun*.* 17 | StreamingAssets* 18 | !NativeSamples.zip 19 | -------------------------------------------------------------------------------- /Assets/MetaXR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fae7357b0edb640a5a33d167b8278c05 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/MetaXR/MetaXRProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 0bfde92e0a2190c4ca32f6fb0a0c73ce, type: 3} 13 | m_Name: MetaXRProjectSettings 14 | m_EditorClassIdentifier: 15 | boolProperties: 16 | keys: 17 | - Meta.XR.SDK.UsageSettings.UsesBuildingBlocks 18 | values: 01 19 | intProperties: 20 | keys: [] 21 | values: 22 | -------------------------------------------------------------------------------- /Assets/MetaXR/MetaXRProjectSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35c26c3bc0c074ea694c2e430125b54e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Oculus.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a217258d3901a4e36ae3b7eef70d8a57 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Oculus/OculusProjectConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 05d394ae2a81edd4cbc3c51917e766e3, type: 3} 13 | m_Name: OculusProjectConfig 14 | m_EditorClassIdentifier: 15 | targetDeviceTypes: 02000000030000000400000005000000 16 | allowOptional3DofHeadTracking: 0 17 | handTrackingSupport: 0 18 | handTrackingFrequency: 0 19 | handTrackingVersion: 0 20 | anchorSupport: 1 21 | sharedAnchorSupport: 0 22 | renderModelSupport: 0 23 | trackedKeyboardSupport: 0 24 | bodyTrackingSupport: 0 25 | faceTrackingSupport: 0 26 | eyeTrackingSupport: 0 27 | virtualKeyboardSupport: 0 28 | colocationSessionSupport: 0 29 | sceneSupport: 2 30 | boundaryVisibilitySupport: 0 31 | disableBackups: 1 32 | enableNSCConfig: 1 33 | securityXmlPath: 34 | horizonOsSdkEnabled: 0 35 | minHorizonOsSdkVersion: 68 36 | targetHorizonOsSdkVersion: 74 37 | skipUnneededShaders: 0 38 | enableIL2CPPLTO: 0 39 | removeGradleManifest: 1 40 | focusAware: 1 41 | requiresSystemKeyboard: 0 42 | experimentalFeaturesEnabled: 0 43 | insightPassthroughEnabled: 0 44 | _insightPassthroughSupport: 1 45 | _processorFavor: 0 46 | systemSplashScreen: {fileID: 0} 47 | systemSplashScreenType: 0 48 | _systemLoadingScreenBackground: 1 49 | -------------------------------------------------------------------------------- /Assets/Oculus/OculusProjectConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8fd5696825b043d892054288fe8d1e5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af06743ddabfb44c5b8df8c37048e4cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bd3d2dc758f9214b86dc0667a2fad07 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/BrightnessEstimation.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ea13e682474e1748965f8e21972f2b2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16080fb10102e4d0ba812477d9d1475b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Materials/BrightnessEstimationColorPurple.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: BrightnessEstimationColorPurple 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: 15 | - _ALPHABLEND_ON 16 | - _EMISSION 17 | m_InvalidKeywords: [] 18 | m_LightmapFlags: 2 19 | m_EnableInstancingVariants: 0 20 | m_DoubleSidedGI: 0 21 | m_CustomRenderQueue: 3000 22 | stringTagMap: 23 | RenderType: Transparent 24 | disabledShaderPasses: [] 25 | m_LockedProperties: 26 | m_SavedProperties: 27 | serializedVersion: 3 28 | m_TexEnvs: 29 | - _BumpMap: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailAlbedoMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _DetailMask: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _DetailNormalMap: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _EmissionMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _OcclusionMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _ParallaxMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Ints: [] 66 | m_Floats: 67 | - _BumpScale: 1 68 | - _Cutoff: 0.5 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 10 71 | - _GlossMapScale: 1 72 | - _Glossiness: 0.5 73 | - _GlossyReflections: 1 74 | - _Metallic: 0.182 75 | - _Mode: 2 76 | - _OcclusionStrength: 1 77 | - _Parallax: 0.02 78 | - _SmoothnessTextureChannel: 0 79 | - _SpecularHighlights: 1 80 | - _SrcBlend: 5 81 | - _UVSec: 0 82 | - _ZWrite: 0 83 | m_Colors: 84 | - _Color: {r: 0.8370025, g: 0.54901963, b: 1, a: 1} 85 | - _EmissionColor: {r: 1, g: 0, b: 0.7159629, a: 1} 86 | m_BuildTextureStacks: [] 87 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Materials/BrightnessEstimationColorPurple.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 805041a4397724b25b3df6a5fa8ccc3c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Materials/BrightnessEstimationColorYellow.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: BrightnessEstimationColorYellow 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: 15 | - _ALPHABLEND_ON 16 | - _EMISSION 17 | m_InvalidKeywords: [] 18 | m_LightmapFlags: 2 19 | m_EnableInstancingVariants: 0 20 | m_DoubleSidedGI: 0 21 | m_CustomRenderQueue: 3000 22 | stringTagMap: 23 | RenderType: Transparent 24 | disabledShaderPasses: [] 25 | m_LockedProperties: 26 | m_SavedProperties: 27 | serializedVersion: 3 28 | m_TexEnvs: 29 | - _BumpMap: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailAlbedoMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _DetailMask: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _DetailNormalMap: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _EmissionMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _OcclusionMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _ParallaxMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Ints: [] 66 | m_Floats: 67 | - _BumpScale: 1 68 | - _Cutoff: 0.5 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 10 71 | - _GlossMapScale: 1 72 | - _Glossiness: 0.5 73 | - _GlossyReflections: 1 74 | - _Metallic: 0.182 75 | - _Mode: 2 76 | - _OcclusionStrength: 1 77 | - _Parallax: 0.02 78 | - _SmoothnessTextureChannel: 0 79 | - _SpecularHighlights: 1 80 | - _SrcBlend: 5 81 | - _UVSec: 0 82 | - _ZWrite: 0 83 | m_Colors: 84 | - _Color: {r: 0.99469477, g: 1, b: 0.54905653, a: 1} 85 | - _EmissionColor: {r: 0.7685938, g: 1, b: 0, a: 1} 86 | m_BuildTextureStacks: [] 87 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Materials/BrightnessEstimationColorYellow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61649241b3e7d4c2e8334d6a4ee78a9d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92fa702ff617441f097985bcb81786aa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Prefabs/BrightnessEstimationDebuggerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3de6244464d9540749c66b96df933fdc 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Prefabs/BrightnessEstimationManagerPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7913714425780672624 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 61028222603950516} 12 | - component: {fileID: 3276925356859633287} 13 | m_Layer: 0 14 | m_Name: BrightnessEstimationManagerPrefab 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &61028222603950516 21 | Transform: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 7913714425780672624} 27 | serializedVersion: 2 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_ConstrainProportionsScale: 0 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &3276925356859633287 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 7913714425780672624} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 84883d84bf9ea4dbc8c436392a2979f1, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | m_webCamTextureManager: {fileID: 0} 48 | m_refreshTime: 0.05 49 | m_bufferSize: 10 50 | m_onBrightnessChange: 51 | m_PersistentCalls: 52 | m_Calls: 53 | - m_Target: {fileID: 0} 54 | m_TargetAssemblyTypeName: PassthroughCameraSamples.BrightnessEstimation.BrightnessEstimationDebugger, 55 | Assembly-CSharp 56 | m_MethodName: OnChangeBrightness 57 | m_Mode: 0 58 | m_Arguments: 59 | m_ObjectArgument: {fileID: 0} 60 | m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine 61 | m_IntArgument: 0 62 | m_FloatArgument: 0 63 | m_StringArgument: 64 | m_BoolArgument: 0 65 | m_CallState: 2 66 | m_debugger: {fileID: 0} 67 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Prefabs/BrightnessEstimationManagerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f71908e6e26f41318b7a03b4e02efae 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa3cc040b0276497b9e2b6e0a01c0241 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Scripts/BrightnessEstimationDebugger.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using UnityEngine; 5 | using UnityEngine.Events; 6 | using UnityEngine.UI; 7 | 8 | namespace PassthroughCameraSamples.BrightnessEstimation 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-BrightnessEstimation")] 11 | public class BrightnessEstimationDebugger : MonoBehaviour 12 | { 13 | [SerializeField] private Text m_debugger; 14 | [SerializeField] private UnityEvent m_onTooDark; 15 | [SerializeField] private UnityEvent m_onTooLight; 16 | [Range(0, 100)][SerializeField] private float m_minBrightnessLevel = 10; 17 | [Range(0, 100)][SerializeField] private float m_maxBrightnessLevel = 50; 18 | 19 | private int m_isDark = 2; 20 | private string m_brightnessStatus = ""; 21 | 22 | public void OnChangeBrightness(float value) 23 | { 24 | if (m_debugger) 25 | { 26 | m_debugger.text = $"Brightness level: {value} \n\n {m_brightnessStatus}"; 27 | } 28 | 29 | if (value <= m_minBrightnessLevel && m_isDark != 2) 30 | { 31 | m_onTooDark?.Invoke(); 32 | m_isDark = 2; 33 | } 34 | else if (value >= m_maxBrightnessLevel && m_isDark != 1) 35 | { 36 | m_onTooLight?.Invoke(); 37 | m_isDark = 1; 38 | } 39 | } 40 | 41 | public void TooDark() 42 | { 43 | m_brightnessStatus = "IS TOO DARK, TURN LIGHTS ON!"; 44 | } 45 | 46 | public void TooLight() 47 | { 48 | m_brightnessStatus = "TOO BRIGHT, TURN LIGHTS OFF!"; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Scripts/BrightnessEstimationDebugger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22789a99b1a6b4318b89207ae0d4f492 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/BrightnessEstimation/Scripts/BrightnessEstimationManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84883d84bf9ea4dbc8c436392a2979f1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9e848390d3ad44cab74070baf71c508 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/CameraToWorld.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 756785b371a4f49438b7e2148816e892 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4efb1411a022e46148699cf186277705 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Materials/CameraToWorldCircle_Outline.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: CameraToWorldCircle_Outline 11 | m_Shader: {fileID: 211, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: 15 | - _ALPHABLEND_ON 16 | m_InvalidKeywords: [] 17 | m_LightmapFlags: 0 18 | m_EnableInstancingVariants: 0 19 | m_DoubleSidedGI: 0 20 | m_CustomRenderQueue: 3000 21 | stringTagMap: 22 | RenderType: Transparent 23 | disabledShaderPasses: 24 | - GRABPASS 25 | m_LockedProperties: 26 | m_SavedProperties: 27 | serializedVersion: 3 28 | m_TexEnvs: 29 | - _BumpMap: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailAlbedoMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _DetailMask: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _DetailNormalMap: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _EmissionMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 2800000, guid: 008ae4ad11145aa42aba6f2a22c5d793, type: 3} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _OcclusionMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _ParallaxMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Ints: [] 66 | m_Floats: 67 | - _BlendOp: 0 68 | - _BumpScale: 1 69 | - _CameraFadingEnabled: 0 70 | - _CameraFarFadeDistance: 2 71 | - _CameraNearFadeDistance: 1 72 | - _ColorMode: 0 73 | - _Cull: 2 74 | - _Cutoff: 0.5 75 | - _DetailNormalMapScale: 1 76 | - _DistortionBlend: 0.5 77 | - _DistortionEnabled: 0 78 | - _DistortionStrength: 1 79 | - _DistortionStrengthScaled: 0 80 | - _DstBlend: 10 81 | - _EmissionEnabled: 0 82 | - _FlipbookMode: 0 83 | - _GlossMapScale: 1 84 | - _Glossiness: 0.5 85 | - _GlossyReflections: 1 86 | - _LightingEnabled: 0 87 | - _Metallic: 0 88 | - _Mode: 2 89 | - _OcclusionStrength: 1 90 | - _Parallax: 0.02 91 | - _SmoothnessTextureChannel: 0 92 | - _SoftParticlesEnabled: 0 93 | - _SoftParticlesFarFadeDistance: 1 94 | - _SoftParticlesNearFadeDistance: 0 95 | - _SpecularHighlights: 1 96 | - _SrcBlend: 5 97 | - _UVSec: 0 98 | - _ZWrite: 0 99 | m_Colors: 100 | - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} 101 | - _Color: {r: 0.9529412, g: 0.22352941, b: 0.22352941, a: 1} 102 | - _ColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0} 103 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 104 | - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} 105 | m_BuildTextureStacks: [] 106 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Materials/CameraToWorldCircle_Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acc9df4a6797c6949bc6c62f07d988b8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Materials/CameraToWorldCircle_Outline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/CameraToWorld/Materials/CameraToWorldCircle_Outline.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Materials/CameraToWorldRed.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: CameraToWorldRed 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: [] 15 | m_InvalidKeywords: [] 16 | m_LightmapFlags: 4 17 | m_EnableInstancingVariants: 0 18 | m_DoubleSidedGI: 0 19 | m_CustomRenderQueue: -1 20 | stringTagMap: {} 21 | disabledShaderPasses: [] 22 | m_LockedProperties: 23 | m_SavedProperties: 24 | serializedVersion: 3 25 | m_TexEnvs: 26 | - _BumpMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailAlbedoMap: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailMask: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _DetailNormalMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _EmissionMap: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MainTex: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _MetallicGlossMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _OcclusionMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | - _ParallaxMap: 59 | m_Texture: {fileID: 0} 60 | m_Scale: {x: 1, y: 1} 61 | m_Offset: {x: 0, y: 0} 62 | m_Ints: [] 63 | m_Floats: 64 | - _BumpScale: 1 65 | - _Cutoff: 0.5 66 | - _DetailNormalMapScale: 1 67 | - _DstBlend: 0 68 | - _GlossMapScale: 1 69 | - _Glossiness: 0.5 70 | - _GlossyReflections: 1 71 | - _Metallic: 0 72 | - _Mode: 0 73 | - _OcclusionStrength: 1 74 | - _Parallax: 0.02 75 | - _SmoothnessTextureChannel: 0 76 | - _SpecularHighlights: 1 77 | - _SrcBlend: 1 78 | - _UVSec: 0 79 | - _ZWrite: 1 80 | m_Colors: 81 | - _Color: {r: 0.99215686, g: 0.14901961, b: 0, a: 1} 82 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 83 | m_BuildTextureStacks: [] 84 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Materials/CameraToWorldRed.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eba957e988718ab4c85bee62c133feaf 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93e4cd56f1f9f45e8b6db92e5b802862 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Prefabs/CameraToWorldButtonA_Highlight.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &8066264837082905886 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 8066264837082905885} 12 | - component: {fileID: 8066264837082905883} 13 | - component: {fileID: 8066264837082905884} 14 | m_Layer: 0 15 | m_Name: CameraToWorldButtonA_Highlight 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &8066264837082905885 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 8066264837082905886} 28 | serializedVersion: 2 29 | m_LocalRotation: {x: 0.6460577, y: -0.05681602, z: 0.049311772, w: 0.75957215} 30 | m_LocalPosition: {x: -0.0049074553, y: 0.0028516252, z: -0.009478999} 31 | m_LocalScale: {x: 0.017823664, y: 0.017823663, z: 0.01782366} 32 | m_ConstrainProportionsScale: 0 33 | m_Children: [] 34 | m_Father: {fileID: 0} 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!33 &8066264837082905883 37 | MeshFilter: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 8066264837082905886} 43 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 44 | --- !u!23 &8066264837082905884 45 | MeshRenderer: 46 | m_ObjectHideFlags: 0 47 | m_CorrespondingSourceObject: {fileID: 0} 48 | m_PrefabInstance: {fileID: 0} 49 | m_PrefabAsset: {fileID: 0} 50 | m_GameObject: {fileID: 8066264837082905886} 51 | m_Enabled: 1 52 | m_CastShadows: 1 53 | m_ReceiveShadows: 1 54 | m_DynamicOccludee: 1 55 | m_StaticShadowCaster: 0 56 | m_MotionVectors: 1 57 | m_LightProbeUsage: 1 58 | m_ReflectionProbeUsage: 1 59 | m_RayTracingMode: 2 60 | m_RayTraceProcedural: 0 61 | m_RenderingLayerMask: 1 62 | m_RendererPriority: 0 63 | m_Materials: 64 | - {fileID: 2100000, guid: acc9df4a6797c6949bc6c62f07d988b8, type: 2} 65 | m_StaticBatchInfo: 66 | firstSubMesh: 0 67 | subMeshCount: 0 68 | m_StaticBatchRoot: {fileID: 0} 69 | m_ProbeAnchor: {fileID: 0} 70 | m_LightProbeVolumeOverride: {fileID: 0} 71 | m_ScaleInLightmap: 1 72 | m_ReceiveGI: 1 73 | m_PreserveUVs: 0 74 | m_IgnoreNormalsForChartDetection: 0 75 | m_ImportantGI: 0 76 | m_StitchLightmapSeams: 1 77 | m_SelectedEditorRenderState: 3 78 | m_MinimumChartSize: 4 79 | m_AutoUVMaxDistance: 0.5 80 | m_AutoUVMaxAngle: 89 81 | m_LightmapParameters: {fileID: 0} 82 | m_SortingLayerID: 0 83 | m_SortingLayer: 0 84 | m_SortingOrder: 0 85 | m_AdditionalVertexStreams: {fileID: 0} 86 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Prefabs/CameraToWorldButtonA_Highlight.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2af0ee586cd2a9043b60071834518c77 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Prefabs/CameraToWorldCameraCanvas.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bf474b46cc73474cae478c4b9b8246a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91b1f370e3d6547448ab3fc274ee0828 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Scripts/CameraToWorldCameraCanvas.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using System.Collections; 4 | using Meta.XR.Samples; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace PassthroughCameraSamples.CameraToWorld 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-CameraToWorld")] 11 | public class CameraToWorldCameraCanvas : MonoBehaviour 12 | { 13 | [SerializeField] private WebCamTextureManager m_webCamTextureManager; 14 | [SerializeField] private Text m_debugText; 15 | [SerializeField] private RawImage m_image; 16 | private Texture2D m_cameraSnapshot; 17 | private Color32[] m_pixelsBuffer; 18 | 19 | public void MakeCameraSnapshot() 20 | { 21 | var webCamTexture = m_webCamTextureManager.WebCamTexture; 22 | if (webCamTexture == null || !webCamTexture.isPlaying) 23 | return; 24 | 25 | if (m_cameraSnapshot == null) 26 | { 27 | m_cameraSnapshot = new Texture2D(webCamTexture.width, webCamTexture.height, TextureFormat.RGBA32, false); 28 | } 29 | 30 | // Copy the last available image from WebCamTexture to a separate object 31 | m_pixelsBuffer ??= new Color32[webCamTexture.width * webCamTexture.height]; 32 | _ = m_webCamTextureManager.WebCamTexture.GetPixels32(m_pixelsBuffer); 33 | m_cameraSnapshot.SetPixels32(m_pixelsBuffer); 34 | m_cameraSnapshot.Apply(); 35 | 36 | m_image.texture = m_cameraSnapshot; 37 | } 38 | 39 | public void ResumeStreamingFromCamera() 40 | { 41 | m_image.texture = m_webCamTextureManager.WebCamTexture; 42 | } 43 | 44 | private IEnumerator Start() 45 | { 46 | while (m_webCamTextureManager.WebCamTexture == null) 47 | { 48 | yield return null; 49 | } 50 | m_debugText.text = "WebCamTexture Object ready and playing."; 51 | ResumeStreamingFromCamera(); 52 | } 53 | 54 | private void Update() 55 | { 56 | if (PassthroughCameraPermissions.HasCameraPermission != true) 57 | { 58 | m_debugText.text = "No permission granted."; 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Scripts/CameraToWorldCameraCanvas.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8be86b360e3460ab4048e58e05bd601 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Scripts/CameraToWorldManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb84f70f9ad67492caf8fd4d470a3b97 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Scripts/CameraToWorldRayRenderer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using UnityEngine; 5 | 6 | namespace PassthroughCameraSamples.CameraToWorld 7 | { 8 | [MetaCodeSample("PassthroughCameraApiSamples-CameraToWorld")] 9 | public class CameraToWorldRayRenderer : MonoBehaviour 10 | { 11 | [SerializeField] private GameObject m_middleSegment; 12 | 13 | public void RenderMiddleSegment(bool shouldRender) 14 | { 15 | m_middleSegment.SetActive(shouldRender); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraToWorld/Scripts/CameraToWorldRayRenderer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26fd32d3e92848646b65f4c2022c772d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f708a834bc426cd4e91bbe8842b8b42d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer/CameraViewer.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad5bb12b10679b840999aa322aa7a491 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e3b9302457b04666a2c1aeec2a6305b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer/Prefabs/CameraViewerManagerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e9e59a9b5566489fad35afecaeac3a9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39efe2fbf87044177a02b7f7b117a076 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer/Scripts/CameraViewerManager.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using System.Collections; 4 | using Meta.XR.Samples; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace PassthroughCameraSamples.CameraViewer 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-CameraViewer")] 11 | public class CameraViewerManager : MonoBehaviour 12 | { 13 | // Create a field to attach the reference to the WebCamTextureManager prefab 14 | [SerializeField] private WebCamTextureManager m_webCamTextureManager; 15 | [SerializeField] private Text m_debugText; 16 | [SerializeField] private RawImage m_image; 17 | 18 | private IEnumerator Start() 19 | { 20 | while (m_webCamTextureManager.WebCamTexture == null) 21 | { 22 | yield return null; 23 | } 24 | m_debugText.text += "\nWebCamTexture Object ready and playing."; 25 | // Set WebCamTexture GPU texture to the RawImage Ui element 26 | m_image.texture = m_webCamTextureManager.WebCamTexture; 27 | } 28 | 29 | private void Update() => m_debugText.text = PassthroughCameraPermissions.HasCameraPermission == true ? "Permission granted." : "No permission granted."; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/CameraViewer/Scripts/CameraViewerManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8bf844e5c0cc42f1bac2aae9e5944f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Meta Platforms, Inc. and its affiliates. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/LICENSE.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5042d4e80965409586b5b9fd990ca37 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 298be0456427d43eb83b135631f4436f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3df267597125df4d995faa070556163 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381e0841d91c2ad44b29b91edee74a2b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio/Detection_Ui_Accept.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio/Detection_Ui_Accept.mp3 -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio/Detection_Ui_Accept.mp3.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3327ace5a003c054bb9ed11651b01c25 3 | AudioImporter: 4 | externalObjects: {} 5 | serializedVersion: 7 6 | defaultSettings: 7 | serializedVersion: 2 8 | loadType: 0 9 | sampleRateSetting: 0 10 | sampleRateOverride: 44100 11 | compressionFormat: 0 12 | quality: 1 13 | conversionMode: 0 14 | preloadAudioData: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 1 17 | normalize: 1 18 | loadInBackground: 0 19 | ambisonic: 0 20 | 3D: 1 21 | userData: 22 | assetBundleName: 23 | assetBundleVariant: 24 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio/Detection_Ui_Ambient.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio/Detection_Ui_Ambient.mp3 -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Audio/Detection_Ui_Ambient.mp3.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4804e700e9d98948a701d12b8a2a97a 3 | AudioImporter: 4 | externalObjects: {} 5 | serializedVersion: 7 6 | defaultSettings: 7 | serializedVersion: 2 8 | loadType: 0 9 | sampleRateSetting: 0 10 | sampleRateOverride: 44100 11 | compressionFormat: 1 12 | quality: 1 13 | conversionMode: 0 14 | preloadAudioData: 1 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | loadInBackground: 0 19 | ambisonic: 0 20 | 3D: 1 21 | userData: 22 | assetBundleName: 23 | assetBundleVariant: 24 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d7b645c3f0db0c4c818e495dcf2034e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Materials/DetectionSpawnMarkerMat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: DetectionSpawnMarkerMat 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: 15 | - _ALPHABLEND_ON 16 | - _EMISSION 17 | m_InvalidKeywords: [] 18 | m_LightmapFlags: 2 19 | m_EnableInstancingVariants: 0 20 | m_DoubleSidedGI: 0 21 | m_CustomRenderQueue: 3000 22 | stringTagMap: 23 | RenderType: Transparent 24 | disabledShaderPasses: [] 25 | m_LockedProperties: 26 | m_SavedProperties: 27 | serializedVersion: 3 28 | m_TexEnvs: 29 | - _BumpMap: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailAlbedoMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _DetailMask: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _DetailNormalMap: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _EmissionMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 2800000, guid: c15b6bad3923e364aa5a8d68b3b21594, type: 3} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _OcclusionMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _ParallaxMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Ints: [] 66 | m_Floats: 67 | - _BumpScale: 1 68 | - _Cutoff: 0.5 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 10 71 | - _GlossMapScale: 1 72 | - _Glossiness: 0.369 73 | - _GlossyReflections: 1 74 | - _Metallic: 0 75 | - _Mode: 2 76 | - _OcclusionStrength: 1 77 | - _Parallax: 0.02 78 | - _SmoothnessTextureChannel: 0 79 | - _SpecularHighlights: 1 80 | - _SrcBlend: 5 81 | - _UVSec: 0 82 | - _ZWrite: 0 83 | m_Colors: 84 | - _Color: {r: 0, g: 1, b: 0.998022, a: 0.42745098} 85 | - _EmissionColor: {r: 0, g: 1, b: 0.47359085, a: 1} 86 | m_BuildTextureStacks: [] 87 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Materials/DetectionSpawnMarkerMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83f25a02bcafe8647a01a7cfbb84d75a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Materials/DetectionSpawnMarkerPointMat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: DetectionSpawnMarkerPointMat 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: 15 | - _ALPHABLEND_ON 16 | - _EMISSION 17 | m_InvalidKeywords: [] 18 | m_LightmapFlags: 2 19 | m_EnableInstancingVariants: 0 20 | m_DoubleSidedGI: 0 21 | m_CustomRenderQueue: 3000 22 | stringTagMap: 23 | RenderType: Transparent 24 | disabledShaderPasses: [] 25 | m_LockedProperties: 26 | m_SavedProperties: 27 | serializedVersion: 3 28 | m_TexEnvs: 29 | - _BumpMap: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailAlbedoMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _DetailMask: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _DetailNormalMap: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _EmissionMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _MainTex: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _MetallicGlossMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | - _OcclusionMap: 58 | m_Texture: {fileID: 0} 59 | m_Scale: {x: 1, y: 1} 60 | m_Offset: {x: 0, y: 0} 61 | - _ParallaxMap: 62 | m_Texture: {fileID: 0} 63 | m_Scale: {x: 1, y: 1} 64 | m_Offset: {x: 0, y: 0} 65 | m_Ints: [] 66 | m_Floats: 67 | - _BumpScale: 1 68 | - _Cutoff: 0.5 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 10 71 | - _GlossMapScale: 0.679 72 | - _Glossiness: 1 73 | - _GlossyReflections: 1 74 | - _Metallic: 0 75 | - _Mode: 2 76 | - _OcclusionStrength: 1 77 | - _Parallax: 0.02 78 | - _SmoothnessTextureChannel: 0 79 | - _SpecularHighlights: 1 80 | - _SrcBlend: 5 81 | - _UVSec: 0 82 | - _ZWrite: 0 83 | m_Colors: 84 | - _Color: {r: 0, g: 1, b: 0.998022, a: 0.3529412} 85 | - _EmissionColor: {r: 0, g: 1, b: 0.47359085, a: 1} 86 | m_BuildTextureStacks: [] 87 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Materials/DetectionSpawnMarkerPointMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce5231e0a4607fe4db2bb4fbeda8aeb4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e84a41e3d75cd504f8c74589e98c6504 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Prefabs/DetectionManagerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 946c4bcf5ee78c2438bd71dd2f9fe1f9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Prefabs/DetectionSpawnMarker.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be69472e7a9b58243aa0493fa78acef1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Prefabs/DetectionUiMenuPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 259c0c899b7e0c14aa431eefdc0aacc6 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f64c28a1ba2d115489e59f072fc130f3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94f39b6ee0e7e784aafa2d2facf740e5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionSpawnMarkerAnim.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using UnityEngine; 5 | 6 | namespace PassthroughCameraSamples.MultiObjectDetection 7 | { 8 | [MetaCodeSample("PassthroughCameraApiSamples-MultiObjectDetection")] 9 | public class DetectionSpawnMarkerAnim : MonoBehaviour 10 | { 11 | [SerializeField] private Vector3 m_anglesSpeed = new(20.0f, 40.0f, 60.0f); 12 | [SerializeField] private Transform m_model; 13 | [SerializeField] private TextMesh m_textModel; 14 | [SerializeField] private Transform m_textEntity; 15 | 16 | private Vector3 m_angles; 17 | private OVRCameraRig m_camera; 18 | 19 | private void Update() 20 | { 21 | m_angles.x = AddAngle(m_angles.x, m_anglesSpeed.x * Time.deltaTime); 22 | m_angles.y = AddAngle(m_angles.y, m_anglesSpeed.y * Time.deltaTime); 23 | m_angles.z = AddAngle(m_angles.z, m_anglesSpeed.z * Time.deltaTime); 24 | 25 | m_model.rotation = Quaternion.Euler(m_angles); 26 | 27 | if (!m_camera) 28 | { 29 | m_camera = FindFirstObjectByType(); 30 | } 31 | else 32 | { 33 | m_textEntity.gameObject.transform.LookAt(m_camera.centerEyeAnchor); 34 | } 35 | } 36 | 37 | private float AddAngle(float value, float toAdd) 38 | { 39 | value += toAdd; 40 | if (value > 360.0f) 41 | { 42 | value -= 360.0f; 43 | } 44 | 45 | if (value < 0.0f) 46 | { 47 | value = 360.0f - value; 48 | } 49 | 50 | return value; 51 | } 52 | 53 | public void SetYoloClassName(string name) 54 | { 55 | m_textModel.text = name; 56 | } 57 | 58 | public string GetYoloClassName() 59 | { 60 | return m_textModel.text; 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionSpawnMarkerAnim.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0f898c057f130b4c89f969de9d2aa6a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionUiBlinkText.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using UnityEngine; 5 | using UnityEngine.UI; 6 | 7 | namespace PassthroughCameraSamples.MultiObjectDetection 8 | { 9 | [MetaCodeSample("PassthroughCameraApiSamples-MultiObjectDetection")] 10 | public class DetectionUiBlinkText : MonoBehaviour 11 | { 12 | [SerializeField] private Text m_labelInfo; 13 | [SerializeField] private float m_blinkSpeed = 0.2f; 14 | private float m_blinkTime = 0.0f; 15 | private Color m_color; 16 | 17 | private void Start() 18 | { 19 | m_color = m_labelInfo.color; 20 | } 21 | 22 | private void LateUpdate() 23 | { 24 | m_blinkTime += Time.deltaTime; 25 | 26 | if (m_blinkTime >= m_blinkSpeed) 27 | { 28 | 29 | m_color.a = m_color.a > 0f ? 0f : 1f; 30 | m_labelInfo.color = m_color; 31 | m_blinkTime = 0; 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionUiBlinkText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 142a891cf2017894e9bee19a195f2eaf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionUiMenuManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea678c754c1748f40b56a3732c318359 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionUiTextWritter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using UnityEngine; 5 | using UnityEngine.Events; 6 | using UnityEngine.UI; 7 | 8 | namespace PassthroughCameraSamples.MultiObjectDetection 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-MultiObjectDetection")] 11 | public class DetectionUiTextWritter : MonoBehaviour 12 | { 13 | [SerializeField] private Text m_labelInfo; 14 | [SerializeField] private float m_writtingSpeed = 0.00015f; 15 | [SerializeField] private float m_writtingInfoPause = 0.005f; 16 | [SerializeField] private AudioSource m_writtingSound; 17 | 18 | public UnityEvent OnStartWritting; 19 | public UnityEvent OnFinishWritting; 20 | 21 | private float m_writtingTime = 0; 22 | private bool m_isWritting = false; 23 | private string m_currentInfo = ""; 24 | private int m_currentInfoIndex = 0; 25 | 26 | private void Start() 27 | { 28 | SetWrittingConfig(); 29 | } 30 | 31 | private void OnEnable() 32 | { 33 | SetWrittingConfig(); 34 | } 35 | 36 | private void OnDisable() 37 | { 38 | m_isWritting = false; 39 | m_writtingTime = 0; 40 | m_currentInfoIndex = 0; 41 | m_labelInfo.text = m_currentInfo; 42 | } 43 | 44 | private void LateUpdate() 45 | { 46 | if (m_isWritting) 47 | { 48 | if (m_writtingTime <= 0) 49 | { 50 | m_writtingTime = m_writtingSpeed; 51 | 52 | m_writtingSound?.Play(); 53 | 54 | var nextChar = m_currentInfo.Substring(m_currentInfoIndex, 1); 55 | m_labelInfo.text += nextChar; 56 | 57 | if (nextChar == ":") 58 | { 59 | m_writtingTime += m_writtingInfoPause; 60 | } 61 | 62 | m_currentInfoIndex++; 63 | if (m_currentInfoIndex >= m_currentInfo.Length) 64 | { 65 | m_isWritting = false; 66 | OnFinishWritting?.Invoke(); 67 | } 68 | } 69 | else 70 | { 71 | m_writtingTime -= Time.deltaTime; 72 | } 73 | } 74 | } 75 | 76 | private void SetWrittingConfig() 77 | { 78 | if (!m_isWritting) 79 | { 80 | m_isWritting = true; 81 | m_currentInfo = m_labelInfo.text; 82 | m_labelInfo.text = ""; 83 | OnStartWritting?.Invoke(); 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Scripts/DetectionUiTextWritter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80b46107ac3a4b84cb5b4b32c8f8c354 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d19ef3104395cf45a22558c2cf66dc6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Textures/DetectionSpawnMarkerTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/MultiObjectDetection/DetectionManager/Textures/DetectionSpawnMarkerTexture.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd13bb64e533147449eae59026647857 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 041fdb2c7b44f42148f656d00fa40a73 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast/Prefabs/EnvironmentRaycastPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &5464317018167149569 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 317315602491919229} 12 | - component: {fileID: 1924335826680339430} 13 | - component: {fileID: 2281515814721962400} 14 | m_Layer: 0 15 | m_Name: EnvironmentRaycastPrefab 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &317315602491919229 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 5464317018167149569} 28 | serializedVersion: 2 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 0, y: 0, z: 0} 31 | m_LocalScale: {x: 1, y: 1, z: 1} 32 | m_ConstrainProportionsScale: 0 33 | m_Children: [] 34 | m_Father: {fileID: 0} 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!114 &1924335826680339430 37 | MonoBehaviour: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 5464317018167149569} 43 | m_Enabled: 1 44 | m_EditorHideFlags: 0 45 | m_Script: {fileID: 11500000, guid: 0cc36683f00754ee3ba9303b5060e815, type: 3} 46 | m_Name: 47 | m_EditorClassIdentifier: 48 | m_raycastManager: {fileID: 2281515814721962400} 49 | --- !u!114 &2281515814721962400 50 | MonoBehaviour: 51 | m_ObjectHideFlags: 0 52 | m_CorrespondingSourceObject: {fileID: 0} 53 | m_PrefabInstance: {fileID: 0} 54 | m_PrefabAsset: {fileID: 0} 55 | m_GameObject: {fileID: 5464317018167149569} 56 | m_Enabled: 1 57 | m_EditorHideFlags: 0 58 | m_Script: {fileID: 11500000, guid: 2d8affdff7ba47d892cc734baac9ac71, type: 3} 59 | m_Name: 60 | m_EditorClassIdentifier: 61 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast/Prefabs/EnvironmentRaycastPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 749c2b64d9125458da0686ace4bec00b 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d53e4a48d7c34292b4cf0c11bcc5010 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast/Scripts/EnvironmentRayCastSampleManager.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR; 4 | using Meta.XR.Samples; 5 | using UnityEngine; 6 | 7 | #if UNITY_ANDROID 8 | using UnityEngine.Android; 9 | #endif 10 | 11 | namespace PassthroughCameraSamples.MultiObjectDetection 12 | { 13 | [MetaCodeSample("PassthroughCameraApiSamples-MultiObjectDetection")] 14 | public class EnvironmentRayCastSampleManager : MonoBehaviour 15 | { 16 | private const string SPATIALPERMISSION = "com.oculus.permission.USE_SCENE"; 17 | [SerializeField] private EnvironmentRaycastManager m_raycastManager; 18 | 19 | private void Start() 20 | { 21 | if (!EnvironmentRaycastManager.IsSupported) 22 | { 23 | Debug.LogError("EnvironmentRaycastManager is not supported: please read the official documentation to get more details. (https://developers.meta.com/horizon/documentation/unity/unity-depthapi-overview/)"); 24 | } 25 | } 26 | 27 | public bool HasScenePermission() 28 | { 29 | #if UNITY_ANDROID 30 | return Permission.HasUserAuthorizedPermission(SPATIALPERMISSION); 31 | #else 32 | return true; 33 | #endif 34 | } 35 | 36 | public Vector3? PlaceGameObjectByScreenPos(Ray ray) 37 | { 38 | if (EnvironmentRaycastManager.IsSupported) 39 | { 40 | if (m_raycastManager.Raycast(ray, out var hitInfo)) 41 | { 42 | return hitInfo.point; 43 | } 44 | else 45 | { 46 | Debug.Log("RaycastManager failed"); 47 | return null; 48 | } 49 | } 50 | else 51 | { 52 | Debug.LogError("EnvironmentRaycastManager is not supported"); 53 | return null; 54 | } 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/EnvironmentRaycast/Scripts/EnvironmentRayCastSampleManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cc36683f00754ee3ba9303b5060e815 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/MultiObjectDetection.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20c230cce46443841b5727b1d6100bfc 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 918aa563876689e4d854103486715590 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4289bc86ef7ed4be6b169400c546e997 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Editor/SentisModelEditorConverter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using Unity.Sentis; 5 | using UnityEditor; 6 | using UnityEngine; 7 | using FF = Unity.Sentis.Functional; 8 | 9 | namespace PassthroughCameraSamples.MultiObjectDetection.Editor 10 | { 11 | [MetaCodeSample("PassthroughCameraApiSamples-MultiObjectDetection")] 12 | [CustomEditor(typeof(SentisInferenceRunManager))] 13 | public class SentisModelEditorConverter : UnityEditor.Editor 14 | { 15 | private const string FILEPATH = "Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9sentis.sentis"; 16 | private SentisInferenceRunManager m_targetClass; 17 | private float m_iouThreshold; 18 | private float m_scoreThreshold; 19 | 20 | public void OnEnable() 21 | { 22 | m_targetClass = (SentisInferenceRunManager)target; 23 | m_iouThreshold = serializedObject.FindProperty("m_iouThreshold").floatValue; 24 | m_scoreThreshold = serializedObject.FindProperty("m_scoreThreshold").floatValue; 25 | } 26 | 27 | public override void OnInspectorGUI() 28 | { 29 | _ = DrawDefaultInspector(); 30 | 31 | if (GUILayout.Button("Generate Yolov9 Sentis model with Non-Max-Supression layer")) 32 | { 33 | OnEnable(); // Get the latest values from the serialized object 34 | ConvertModel(); // convert the ONNX model to sentis 35 | } 36 | } 37 | 38 | private void ConvertModel() 39 | { 40 | //Load model 41 | var model = ModelLoader.Load(m_targetClass.OnnxModel); 42 | 43 | //Here we transform the output of the model by feeding it through a Non-Max-Suppression layer. 44 | var graph = new FunctionalGraph(); 45 | var input = graph.AddInput(model, 0); 46 | 47 | var centersToCornersData = new[] 48 | { 49 | 1, 0, 1, 0, 50 | 0, 1, 0, 1, 51 | -0.5f, 0, 0.5f, 0, 52 | 0, -0.5f, 0, 0.5f 53 | }; 54 | var centersToCorners = FF.Constant(new TensorShape(4, 4), centersToCornersData); 55 | var modelOutput = FF.Forward(model, input)[0]; //shape(1,N,85) 56 | // Following for yolo model. in (1, 84, N) out put shape 57 | var boxCoords = modelOutput[0, ..4, ..].Transpose(0, 1); 58 | var allScores = modelOutput[0, 4.., ..].Transpose(0, 1); 59 | var scores = FF.ReduceMax(allScores, 1); //shape=(N) 60 | var classIDs = FF.ArgMax(allScores, 1); //shape=(N) 61 | var boxCorners = FF.MatMul(boxCoords, centersToCorners); //shape=(N,4) 62 | var indices = FF.NMS(boxCorners, scores, m_iouThreshold, m_scoreThreshold); //shape=(N) 63 | var indices2 = indices.Unsqueeze(-1).BroadcastTo(new[] { 4 }); //shape=(N,4) 64 | var labelIDs = FF.Gather(classIDs, 0, indices); //shape=(N) 65 | var coords = FF.Gather(boxCoords, 0, indices2); //shape=(N,4) 66 | 67 | var modelFinal = graph.Compile(coords, labelIDs); 68 | 69 | //Export the model to Sentis format 70 | ModelQuantizer.QuantizeWeights(QuantizationType.Uint8, ref modelFinal); 71 | ModelWriter.Save(FILEPATH, modelFinal); 72 | 73 | // refresh assets 74 | AssetDatabase.Refresh(); 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Editor/SentisModelEditorConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97e9ff3fbb64647bda2d47c8cd0b5eeb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ab8c2f57984c894abff3798eef9168d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/SentisYoloClasses.txt: -------------------------------------------------------------------------------- 1 | person 2 | bicycle 3 | car 4 | motorbike 5 | aeroplane 6 | bus 7 | train 8 | truck 9 | boat 10 | traffic light 11 | fire hydrant 12 | stop sign 13 | parking meter 14 | bench 15 | bird 16 | cat 17 | dog 18 | horse 19 | sheep 20 | cow 21 | elephant 22 | bear 23 | zebra 24 | giraffe 25 | backpack 26 | umbrella 27 | handbag 28 | tie 29 | suitcase 30 | frisbee 31 | skis 32 | snowboard 33 | sports ball 34 | kite 35 | baseball bat 36 | baseball glove 37 | skateboard 38 | surfboard 39 | tennis racket 40 | bottle 41 | wine glass 42 | cup 43 | fork 44 | knife 45 | spoon 46 | bowl 47 | banana 48 | apple 49 | sandwich 50 | orange 51 | broccoli 52 | carrot 53 | hot dog 54 | pizza 55 | donut 56 | cake 57 | chair 58 | sofa 59 | pottedplant 60 | bed 61 | diningtable 62 | toilet 63 | tvmonitor 64 | laptop 65 | mouse 66 | remote 67 | keyboard 68 | cell phone 69 | microwave 70 | oven 71 | toaster 72 | sink 73 | refrigerator 74 | book 75 | clock 76 | vase 77 | scissors 78 | teddy bear 79 | hair drier 80 | toothbrush 81 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/SentisYoloClasses.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c01c64149c7930b45a76559caabd5c78 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9onnx.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9onnx.onnx -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9onnx.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e61826a46beb24bb380fd628c56eacaa 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9sentis.sentis: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9sentis.sentis -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Model/yolov9sentis.sentis.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69ab50aef18ae412cac4b305492d527c 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fbac7b160becb464595912d0eaee98cb, type: 3} 11 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c45907bda9d1a914aa65bb0e7783f9d9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Prefabs/SentisInferenceManagerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 927c1b782bb796b4b9b433d533cbccca 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f929c185aed87c428037317c91a3590 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Scripts/SentisInferenceRunManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a85fc80cf14595479bd0967c6f46dc2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Scripts/SentisInferenceUiManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad237abe1df8fba4da80d86f3cb45a6b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/MultiObjectDetection/SentisInference/Scripts/SentisObjectDetectedUiManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8c536e29614c424c829f1696492a0a3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 441d1cde382f24138b75843f2734749b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90efdf35a0374460b8376cc23416c64f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Editor/PassthroughCameraEditorUpdateManifest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 950b75a9a90cd489e8129267e0e6a8f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 462f4a420876e4cf19b348fe86649fbb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Prefabs/WebCamTextureManagerPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &7847449403238870662 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 7047676844597515174} 12 | - component: {fileID: 1748868316715821956} 13 | - component: {fileID: 7412840042211121785} 14 | m_Layer: 0 15 | m_Name: WebCamTextureManagerPrefab 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &7047676844597515174 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 7847449403238870662} 28 | serializedVersion: 2 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 0, y: 0, z: 0} 31 | m_LocalScale: {x: 1, y: 1, z: 1} 32 | m_ConstrainProportionsScale: 0 33 | m_Children: [] 34 | m_Father: {fileID: 0} 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!114 &1748868316715821956 37 | MonoBehaviour: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 7847449403238870662} 43 | m_Enabled: 1 44 | m_EditorHideFlags: 0 45 | m_Script: {fileID: 11500000, guid: ef9a7893e57c04c0db4114c70954b915, type: 3} 46 | m_Name: 47 | m_EditorClassIdentifier: 48 | Eye: 0 49 | RequestedResolution: {x: 0, y: 0} 50 | CameraPermissions: {fileID: 7412840042211121785} 51 | --- !u!114 &7412840042211121785 52 | MonoBehaviour: 53 | m_ObjectHideFlags: 0 54 | m_CorrespondingSourceObject: {fileID: 0} 55 | m_PrefabInstance: {fileID: 0} 56 | m_PrefabAsset: {fileID: 0} 57 | m_GameObject: {fileID: 7847449403238870662} 58 | m_Enabled: 1 59 | m_EditorHideFlags: 0 60 | m_Script: {fileID: 11500000, guid: 6f5e9631f3cd04da0acc02bc5b51f5d4, type: 3} 61 | m_Name: 62 | m_EditorClassIdentifier: 63 | PermissionRequestsOnStartup: 64 | - com.oculus.permission.USE_SCENE 65 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Prefabs/WebCamTextureManagerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abfaad578d05e4a09838223134c41c46 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e18783c9fe9c46fa91f006748238998 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Scripts/PassthroughCameraDebugger.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using Meta.XR.Samples; 4 | using UnityEngine; 5 | 6 | namespace PassthroughCameraSamples 7 | { 8 | [MetaCodeSample("PassthroughCameraApiSamples-PassthroughCamera")] 9 | public static class PassthroughCameraDebugger 10 | { 11 | public enum DebuglevelEnum 12 | { 13 | ALL, 14 | NONE, 15 | ONLY_ERROR, 16 | ONLY_LOG, 17 | ONLY_WARNING 18 | } 19 | 20 | public static DebuglevelEnum DebugLevel = DebuglevelEnum.ALL; 21 | 22 | /// 23 | /// Send debug information to Unity console based on DebugType and DebugLevel 24 | /// 25 | /// 26 | /// 27 | public static void DebugMessage(LogType mType, string message) 28 | { 29 | switch (mType) 30 | { 31 | case LogType.Error: 32 | if (DebugLevel is DebuglevelEnum.ALL or DebuglevelEnum.ONLY_ERROR) 33 | { 34 | Debug.LogError(message); 35 | } 36 | break; 37 | case LogType.Log: 38 | if (DebugLevel is DebuglevelEnum.ALL or DebuglevelEnum.ONLY_LOG) 39 | { 40 | Debug.Log(message); 41 | } 42 | break; 43 | case LogType.Warning: 44 | if (DebugLevel is DebuglevelEnum.ALL or DebuglevelEnum.ONLY_WARNING) 45 | { 46 | Debug.LogWarning(message); 47 | } 48 | break; 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Scripts/PassthroughCameraDebugger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 706cbed4a242d4719b45f6030dd1c8c1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Scripts/PassthroughCameraPermissions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f5e9631f3cd04da0acc02bc5b51f5d4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Scripts/PassthroughCameraUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 319a22a1d27fb40d6a6a9faa3ad7034d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/PassthroughCamera/Scripts/WebCamTextureManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef9a7893e57c04c0db4114c70954b915 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3ec834d1ef7c4f5982a024458649b83 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c3d27cc709d047d780b41f260e000f9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Materials/ShaderSampleWaterMat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: ShaderSampleWaterMat 11 | m_Shader: {fileID: 4800000, guid: 26d6efc6402bf47acbadbb5e39fa5443, type: 3} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: [] 15 | m_InvalidKeywords: [] 16 | m_LightmapFlags: 4 17 | m_EnableInstancingVariants: 0 18 | m_DoubleSidedGI: 0 19 | m_CustomRenderQueue: 3000 20 | stringTagMap: {} 21 | disabledShaderPasses: [] 22 | m_LockedProperties: 23 | m_SavedProperties: 24 | serializedVersion: 3 25 | m_TexEnvs: 26 | - _DetailMap: 27 | m_Texture: {fileID: 2800000, guid: 74ff359841d77444cb0c68bcafaba5fb, type: 3} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _MainTex: 31 | m_Texture: {fileID: 10309, guid: 0000000000000000f000000000000000, type: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _NormalMap: 35 | m_Texture: {fileID: 2800000, guid: bcdfc476a5db84843bfa1c92dd6c3edf, type: 3} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _ReflectionTex: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _Tex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | m_Ints: [] 47 | m_Floats: 48 | - _Exposure: 1 49 | - _NormalOffsetX: 4 50 | - _NormalOffsetY: 4 51 | - _NormalStrength: 3 52 | - _ReflectIntensity: 3 53 | - _ReflectionDistortion: 1 54 | - _ReflectionScale: 1 55 | - _RippleAmplitude: 0.2 56 | - _RippleSpeed: 10 57 | - _Rotation: 0 58 | - _SpecularPower: 1 59 | - _Time: 0 60 | - _Timer: 0 61 | - _WaveAmplitude: 8 62 | - _WaveFrequency: 0 63 | - _WaveSpeed: 1 64 | m_Colors: 65 | - _Color: {r: 0.6581524, g: 0.9554302, b: 0.9622641, a: 1} 66 | - _Tint: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 67 | - _WaterColor: {r: 0.39604834, g: 0.6922603, b: 0.9433962, a: 1} 68 | m_BuildTextureStacks: [] 69 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Materials/ShaderSampleWaterMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f6238d7d05ae4a1c855895d5e0a3bde 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3261a0090e8c74f479662f8c2617b4a8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Prefabs/ShaderSampleManagerPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 486a1df2d533a4420a4a2aab8bfffe26 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2033e19559410498e9363089f0ac3eee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Scripts/ShaderSampleManager.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | 3 | using System.Collections; 4 | using Meta.XR.Samples; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace PassthroughCameraSamples.ShaderSample 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-ShaderSample")] 11 | public class ShaderSampleManager : MonoBehaviour 12 | { 13 | // Create a field to attach the reference to the webCamTextureManager prefab 14 | [SerializeField] private WebCamTextureManager m_webCamTextureManager; 15 | [SerializeField] private Text m_debugText; 16 | [SerializeField] private MeshRenderer m_renderer; 17 | 18 | private IEnumerator Start() 19 | { 20 | while (m_webCamTextureManager.WebCamTexture == null) 21 | { 22 | yield return null; 23 | } 24 | m_debugText.text += "\nWebCamTexture Object ready and playing."; 25 | // Set WebCamTexture GPU texture as a Main texture of our material 26 | m_renderer.material.SetTexture("_MainTex", m_webCamTextureManager.WebCamTexture); 27 | } 28 | 29 | private void Update() => m_debugText.text = PassthroughCameraPermissions.HasCameraPermission == true ? "Permission granted." : "No permission granted."; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Scripts/ShaderSampleManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f79b7777c2e8e419c98791f75a37daf8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/ShaderSample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 708e8dca6055146b28afe2481f141457 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5df599fd96a24a98aec64e22694fe1d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Shaders/ShaderSampleWater.shader: -------------------------------------------------------------------------------- 1 | Shader "Meta/PCA/ShaderSampleWater" { 2 | Properties { 3 | _MainTex ("Texture", 2D) = "white" {} 4 | _NormalMap ("Normal Map", 2D) = "bump" {} 5 | _DetailMap ("Texture", 2D) = "white" {} 6 | _WaveAmplitude ("Wave Amplitude", Float) = 0.1 7 | _NormalOffsetX ("Normal Offset X", Float) = 0.01 8 | _NormalOffsetY ("Normal Offset Y", Float) = 0.01 9 | _Color ("Color", Color) = (1, 1, 1, 1) 10 | _ReflectIntensity ("Reflection Intensity", Float) = 1.0 11 | } 12 | 13 | SubShader { 14 | Tags {"RenderType"="Opaque"} 15 | LOD 100 16 | 17 | Pass { 18 | CGPROGRAM 19 | #pragma vertex vert 20 | #pragma fragment frag 21 | 22 | #include "UnityCG.cginc" 23 | 24 | struct appdata { 25 | float4 vertex : POSITION; 26 | float2 uv : TEXCOORD0; 27 | }; 28 | 29 | struct v2f { 30 | float4 vertex : SV_POSITION; 31 | float2 uv : TEXCOORD0; 32 | float3 viewDir : TEXCOORD2; 33 | float4 screenPos : TEXCOORD3; 34 | }; 35 | 36 | sampler2D _MainTex; 37 | float4 _MainTex_ST; 38 | 39 | sampler2D _NormalMap; 40 | float4 _NormalMap_ST; 41 | 42 | sampler2D _DetailMap; 43 | float4 _DetailMap_ST; 44 | 45 | float _WaveAmplitude; 46 | float _NormalOffsetX; 47 | float _NormalOffsetY; 48 | 49 | fixed4 _Color; 50 | 51 | float _ReflectIntensity; 52 | 53 | v2f vert (appdata v) { 54 | v2f o; 55 | o.vertex = UnityObjectToClipPos(v.vertex); 56 | o.uv = TRANSFORM_TEX(v.uv, _MainTex); 57 | o.viewDir = normalize(UnityWorldSpaceViewDir(v.vertex.xyz)); 58 | o.screenPos = ComputeScreenPos(o.vertex); 59 | return o; 60 | } 61 | 62 | fixed4 frag (v2f i) : SV_Target { 63 | // Align the UV to the screen 64 | float2 screenUV = i.screenPos.xy / i.screenPos.w; 65 | 66 | // Control waves speed 67 | float nX = ((_NormalOffsetX * _SinTime.y)); 68 | float nY = ((_NormalOffsetY * _SinTime.y)); 69 | float3 normal = tex2D(_NormalMap, i.uv + float2(nX,nY)).rgb; 70 | 71 | // Set the wave distorsion 72 | float2 distortedUV = screenUV + normal.xy * (_WaveAmplitude/100); 73 | float2 detailDistortedUV = i.uv + normal.xy * (_WaveAmplitude/100); 74 | 75 | // Mirror the texture 76 | distortedUV.y = 1 - distortedUV.y; 77 | 78 | // Set the color 79 | fixed4 reflectionCol = tex2D(_MainTex, distortedUV) * _ReflectIntensity; 80 | fixed4 col = reflectionCol * tex2D(_DetailMap,detailDistortedUV) * _Color; 81 | col.a = 1; 82 | return col; 83 | } 84 | ENDCG 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Shaders/ShaderSampleWater.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26d6efc6402bf47acbadbb5e39fa5443 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e873e14490f6d4ddea394ff6df5fdbf3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Textures/waterNormal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/ShaderSample/Textures/waterNormal.jpg -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Textures/waterNormal.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcdfc476a5db84843bfa1c92dd6c3edf 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 256 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 0 41 | wrapV: 0 42 | wrapW: 0 43 | nPOTScale: 1 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 0 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 0 56 | spriteTessellationDetail: -1 57 | textureType: 1 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 0 67 | swizzle: 50462976 68 | cookieLightType: 0 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 512 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 0 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 256 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 0 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 256 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 0 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Textures/waterdetail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/ShaderSample/Textures/waterdetail.jpg -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/ShaderSample/Textures/waterdetail.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74ff359841d77444cb0c68bcafaba5fb 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 256 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 0 41 | wrapV: 0 42 | wrapW: 0 43 | nPOTScale: 1 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 0 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 0 56 | spriteTessellationDetail: -1 57 | textureType: 0 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 0 67 | swizzle: 50462976 68 | cookieLightType: 0 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 256 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 0 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 256 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 0 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 256 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 0 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac0bc589465f944a3b1791c1cbb51c3c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a110181a5694464094c6ae73f3f2be1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1fd6158c59236b49ad461511f6b0d25 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Bold.ttf -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Bold.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e89e80fce8fc06478c726f2f3de7863 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Montserrat 13 | fallbackFontReferences: 14 | - {fileID: 12800000, guid: dba3a4605aed95e4991d5303660007a8, type: 3} 15 | - {fileID: 12800000, guid: dd1257833540417499e3676db3e49fcc, type: 3} 16 | - {fileID: 12800000, guid: cfdcfaf55b0afd1418f5b469ac9001fb, type: 3} 17 | - {fileID: 12800000, guid: 8252fce8d85d8cd4aa7dd218b750602e, type: 3} 18 | - {fileID: 12800000, guid: 738e52ae65d118f4e8f2d3278738e43f, type: 3} 19 | customCharacters: 20 | fontRenderingMode: 0 21 | ascentCalculationMode: 1 22 | useLegacyBoundsCalculation: 0 23 | shouldRoundAdvanceValue: 1 24 | userData: 25 | assetBundleName: 26 | assetBundleVariant: 27 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-BoldItalic.ttf -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-BoldItalic.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 440e99598766dbd40a4d8bc01445b5ca 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Montserrat 13 | fallbackFontReferences: 14 | - {fileID: 12800000, guid: dba3a4605aed95e4991d5303660007a8, type: 3} 15 | - {fileID: 12800000, guid: cfdcfaf55b0afd1418f5b469ac9001fb, type: 3} 16 | - {fileID: 12800000, guid: 8252fce8d85d8cd4aa7dd218b750602e, type: 3} 17 | - {fileID: 12800000, guid: 738e52ae65d118f4e8f2d3278738e43f, type: 3} 18 | customCharacters: 19 | fontRenderingMode: 0 20 | ascentCalculationMode: 1 21 | useLegacyBoundsCalculation: 0 22 | shouldRoundAdvanceValue: 1 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Light.ttf -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Light.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c90d3c4d98a33647872e06a6f654f9f 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Montserrat 13 | fallbackFontReferences: 14 | - {fileID: 12800000, guid: 30a231280cba8564bbf7799d54d1fa04, type: 3} 15 | - {fileID: 12800000, guid: 440e99598766dbd40a4d8bc01445b5ca, type: 3} 16 | customCharacters: 17 | fontRenderingMode: 0 18 | ascentCalculationMode: 1 19 | useLegacyBoundsCalculation: 0 20 | shouldRoundAdvanceValue: 1 21 | userData: 22 | assetBundleName: 23 | assetBundleVariant: 24 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-LightItalic.ttf -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-LightItalic.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d30609de8a17cfb409c74b4302ca60e3 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Montserrat 13 | fallbackFontReferences: 14 | - {fileID: 12800000, guid: 738e52ae65d118f4e8f2d3278738e43f, type: 3} 15 | customCharacters: 16 | fontRenderingMode: 0 17 | ascentCalculationMode: 1 18 | useLegacyBoundsCalculation: 0 19 | shouldRoundAdvanceValue: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Medium.ttf -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-Medium.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6921a454aa104cf47a67f59c64acaa17 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Montserrat 13 | fallbackFontReferences: 14 | - {fileID: 12800000, guid: cfdcfaf55b0afd1418f5b469ac9001fb, type: 3} 15 | - {fileID: 12800000, guid: 8252fce8d85d8cd4aa7dd218b750602e, type: 3} 16 | - {fileID: 12800000, guid: 738e52ae65d118f4e8f2d3278738e43f, type: 3} 17 | customCharacters: 18 | fontRenderingMode: 0 19 | ascentCalculationMode: 1 20 | useLegacyBoundsCalculation: 0 21 | shouldRoundAdvanceValue: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-MediumItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-MediumItalic.ttf -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/Montserrat-MediumItalic.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53b4534908f8f324d8ffe0fc5fa5a31f 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Montserrat 13 | fallbackFontReferences: 14 | - {fileID: 12800000, guid: 8252fce8d85d8cd4aa7dd218b750602e, type: 3} 15 | - {fileID: 12800000, guid: 738e52ae65d118f4e8f2d3278738e43f, type: 3} 16 | customCharacters: 17 | fontRenderingMode: 0 18 | ascentCalculationMode: 1 19 | useLegacyBoundsCalculation: 0 20 | shouldRoundAdvanceValue: 1 21 | userData: 22 | assetBundleName: 23 | assetBundleVariant: 24 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Fonts/Montserrat/OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97e698aca5ae2b547a94d4620810cb08 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5580546c0327f43658f65bd45a9ac45e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Materials/DebugDrawLine.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: DebugDrawLine 11 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 12 | m_Parent: {fileID: 0} 13 | m_ModifiedSerializedProperties: 0 14 | m_ValidKeywords: [] 15 | m_InvalidKeywords: 16 | - _EMISSION 17 | m_LightmapFlags: 1 18 | m_EnableInstancingVariants: 0 19 | m_DoubleSidedGI: 0 20 | m_CustomRenderQueue: -1 21 | stringTagMap: {} 22 | disabledShaderPasses: [] 23 | m_LockedProperties: 24 | m_SavedProperties: 25 | serializedVersion: 3 26 | m_TexEnvs: 27 | - _BumpMap: 28 | m_Texture: {fileID: 0} 29 | m_Scale: {x: 1, y: 1} 30 | m_Offset: {x: 0, y: 0} 31 | - _DetailAlbedoMap: 32 | m_Texture: {fileID: 0} 33 | m_Scale: {x: 1, y: 1} 34 | m_Offset: {x: 0, y: 0} 35 | - _DetailMask: 36 | m_Texture: {fileID: 0} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _DetailNormalMap: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | - _EmissionMap: 44 | m_Texture: {fileID: 0} 45 | m_Scale: {x: 1, y: 1} 46 | m_Offset: {x: 0, y: 0} 47 | - _MainTex: 48 | m_Texture: {fileID: 0} 49 | m_Scale: {x: 1, y: 1} 50 | m_Offset: {x: 0, y: 0} 51 | - _MetallicGlossMap: 52 | m_Texture: {fileID: 0} 53 | m_Scale: {x: 1, y: 1} 54 | m_Offset: {x: 0, y: 0} 55 | - _OcclusionMap: 56 | m_Texture: {fileID: 0} 57 | m_Scale: {x: 1, y: 1} 58 | m_Offset: {x: 0, y: 0} 59 | - _ParallaxMap: 60 | m_Texture: {fileID: 0} 61 | m_Scale: {x: 1, y: 1} 62 | m_Offset: {x: 0, y: 0} 63 | m_Ints: [] 64 | m_Floats: 65 | - _BumpScale: 1 66 | - _Cutoff: 0.5 67 | - _DetailNormalMapScale: 1 68 | - _DstBlend: 0 69 | - _GlossMapScale: 1 70 | - _Glossiness: 0.5 71 | - _GlossyReflections: 1 72 | - _Metallic: 0 73 | - _Mode: 0 74 | - _OcclusionStrength: 1 75 | - _Parallax: 0.02 76 | - _SmoothnessTextureChannel: 0 77 | - _SpecularHighlights: 1 78 | - _SrcBlend: 1 79 | - _UVSec: 0 80 | - _ZWrite: 1 81 | m_Colors: 82 | - _Color: {r: 0, g: 0, b: 1, a: 1} 83 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 84 | m_BuildTextureStacks: [] 85 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Materials/DebugDrawLine.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99b889c916c1e43c2bef770be7224c80 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea1ce0a6a9ed24291b350de5a0ac1ea6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/CanvasWithDebug.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddb963bcde7d8a04a88b3ee4709f46c7 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugButton.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa84e2bd72d699a4db1fe9b0b0186c33 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugDivider.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61d9c2baaf4c42944ae89394cdca96a1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugLabel.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &1605166081573656 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 224113878955223432} 12 | - component: {fileID: 222546433005716318} 13 | - component: {fileID: 114008995620095466} 14 | m_Layer: 5 15 | m_Name: DebugLabel 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!224 &224113878955223432 22 | RectTransform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 1605166081573656} 28 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_ConstrainProportionsScale: 0 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | m_AnchorMin: {x: 0, y: 1} 36 | m_AnchorMax: {x: 0, y: 1} 37 | m_AnchoredPosition: {x: 0, y: 0} 38 | m_SizeDelta: {x: 500, y: 75} 39 | m_Pivot: {x: 0, y: 1} 40 | --- !u!222 &222546433005716318 41 | CanvasRenderer: 42 | m_ObjectHideFlags: 0 43 | m_CorrespondingSourceObject: {fileID: 0} 44 | m_PrefabInstance: {fileID: 0} 45 | m_PrefabAsset: {fileID: 0} 46 | m_GameObject: {fileID: 1605166081573656} 47 | m_CullTransparentMesh: 1 48 | --- !u!114 &114008995620095466 49 | MonoBehaviour: 50 | m_ObjectHideFlags: 0 51 | m_CorrespondingSourceObject: {fileID: 0} 52 | m_PrefabInstance: {fileID: 0} 53 | m_PrefabAsset: {fileID: 0} 54 | m_GameObject: {fileID: 1605166081573656} 55 | m_Enabled: 1 56 | m_EditorHideFlags: 0 57 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 58 | m_Name: 59 | m_EditorClassIdentifier: 60 | m_Material: {fileID: 0} 61 | m_Color: {r: 0.87058824, g: 0.87058824, b: 0.87058824, a: 1} 62 | m_RaycastTarget: 1 63 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 64 | m_Maskable: 1 65 | m_OnCullStateChanged: 66 | m_PersistentCalls: 67 | m_Calls: [] 68 | m_FontData: 69 | m_Font: {fileID: 12800000, guid: 6921a454aa104cf47a67f59c64acaa17, type: 3} 70 | m_FontSize: 42 71 | m_FontStyle: 0 72 | m_BestFit: 1 73 | m_MinSize: 4 74 | m_MaxSize: 42 75 | m_Alignment: 4 76 | m_AlignByGeometry: 0 77 | m_RichText: 1 78 | m_HorizontalOverflow: 0 79 | m_VerticalOverflow: 0 80 | m_LineSpacing: 1 81 | m_Text: New Text 82 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugLabel.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b70f270c689802248940829a132bb9cc 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugRadio.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a508804a6c02d1c44885f209b9996929 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugSlider.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd44cad6bf2970e47939ef98a48a9190 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugTextField.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1af14ae596d9eeb4b8e4bd30a6c22ad3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugToggle.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ff769690226dec4ea7ad1cea633b2c3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/DebugUITestCanvas.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd91514fcd2ef484c8fbdbb2e2b504c0 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/ReturnToStartScene.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c8f51c0c4ebe4902a313954838e1de9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Prefabs/UIHelpers.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9d2de84afb308a4796cc671d3432b4d 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f09275b789c3fd4b9488408af0f5b99 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/DebugUIBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e679f22b1a03b94448cb5d40d9024213 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/HandedInputSelector.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | // Original Source code from Oculus Starter Samples (https://github.com/oculus-samples/Unity-StarterSamples) 3 | 4 | using Meta.XR.Samples; 5 | using UnityEngine; 6 | using UnityEngine.EventSystems; 7 | 8 | namespace PassthroughCameraSamples.StartScene 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-StartScene")] 11 | public class HandedInputSelector : MonoBehaviour 12 | { 13 | private OVRCameraRig m_cameraRig; 14 | private OVRInputModule m_inputModule; 15 | 16 | private void Start() 17 | { 18 | m_cameraRig = FindFirstObjectByType(); 19 | m_inputModule = FindFirstObjectByType(); 20 | } 21 | 22 | private void Update() 23 | { 24 | if (OVRInput.GetActiveController() == OVRInput.Controller.LTouch) 25 | { 26 | SetActiveController(OVRInput.Controller.LTouch); 27 | } 28 | else 29 | { 30 | SetActiveController(OVRInput.Controller.RTouch); 31 | } 32 | } 33 | 34 | private void SetActiveController(OVRInput.Controller c) 35 | { 36 | var t = c == OVRInput.Controller.LTouch ? m_cameraRig.leftHandAnchor : m_cameraRig.rightHandAnchor; 37 | m_inputModule.rayTransform = t; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/HandedInputSelector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef803169364cc6e4d9b4df31d9c7fed7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/LaserPointer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b558aa8ebb866bd4da56c536a7b4eb71 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/ReturnToStartScene.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Meta Platforms, Inc. and affiliates. 2 | // Original Source code from Oculus Starter Samples (https://github.com/oculus-samples/Unity-StarterSamples) 3 | 4 | using Meta.XR.Samples; 5 | using UnityEngine; 6 | using UnityEngine.SceneManagement; 7 | 8 | namespace PassthroughCameraSamples.StartScene 9 | { 10 | [MetaCodeSample("PassthroughCameraApiSamples-StartScene")] 11 | public class ReturnToStartScene : MonoBehaviour 12 | { 13 | public bool ShowStartButtonTooltip = true; 14 | private static ReturnToStartScene s_instance; 15 | [SerializeField] private GameObject m_tooltip; 16 | private const float FORWARDTOOLTIPOFFSET = -0.05f; 17 | private const float UPWARDTOOLTIPOFFSET = -0.003f; 18 | 19 | private void Awake() 20 | { 21 | if (s_instance == null) 22 | { 23 | s_instance = this; 24 | m_tooltip.SetActive(ShowStartButtonTooltip); 25 | DontDestroyOnLoad(gameObject); 26 | } 27 | else if (s_instance != this) 28 | { 29 | s_instance.ToggleStartButtonTooltip( 30 | ShowStartButtonTooltip); // copy the setting from the new loaded scene 31 | Destroy(gameObject); 32 | } 33 | } 34 | 35 | private void Update() 36 | { 37 | // Since this is the Start scene, we can assume it's the first index in build settings 38 | if (OVRInput.GetUp(OVRInput.Button.Start) && SceneManager.GetActiveScene().buildIndex != 0) 39 | { 40 | SceneManager.LoadScene(0); 41 | } 42 | 43 | if (ShowStartButtonTooltip) 44 | { 45 | var finalRotation = OVRInput.GetLocalControllerRotation(OVRInput.Controller.LTouch) * 46 | Quaternion.Euler(45, 0, 0); 47 | var forwardOffsetPosition = finalRotation * Vector3.forward * FORWARDTOOLTIPOFFSET; 48 | var upwardOffsetPosition = finalRotation * Vector3.up * UPWARDTOOLTIPOFFSET; 49 | var finalPosition = OVRInput.GetLocalControllerPosition(OVRInput.Controller.LTouch) + 50 | forwardOffsetPosition + upwardOffsetPosition; 51 | m_tooltip.transform.rotation = finalRotation; 52 | m_tooltip.transform.position = finalPosition; 53 | } 54 | } 55 | 56 | private void ToggleStartButtonTooltip(bool shouldShowTooltip) 57 | { 58 | ShowStartButtonTooltip = shouldShowTooltip; 59 | m_tooltip.SetActive(ShowStartButtonTooltip); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/ReturnToStartScene.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 770a4080c31aaf14894b494351c86cc6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Scripts/StartMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33962741a56c2a643ba07df6c6a1c133 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/StartScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69e1b31c45bac42f88f75017ee404de1 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80924337a452dc84ebfa7efaf00281bf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/BlackCubemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/BlackCubemap.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/BlackCubemap.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b40a1cb5f1124ec489cc1e7a533e46e6 3 | TextureImporter: 4 | internalIDToNameTable: 5 | - first: 6 | 89: 8900000 7 | second: generatedCubemap 8 | externalObjects: {} 9 | serializedVersion: 13 10 | mipmaps: 11 | mipMapMode: 0 12 | enableMipMap: 1 13 | sRGBTexture: 1 14 | linearTexture: 0 15 | fadeOut: 0 16 | borderMipMap: 0 17 | mipMapsPreserveCoverage: 0 18 | alphaTestReferenceValue: 0.5 19 | mipMapFadeDistanceStart: 1 20 | mipMapFadeDistanceEnd: 3 21 | bumpmap: 22 | convertToNormalMap: 0 23 | externalNormalMap: 0 24 | heightScale: 0.25 25 | normalMapFilter: 0 26 | flipGreenChannel: 0 27 | isReadable: 0 28 | streamingMipmaps: 0 29 | streamingMipmapsPriority: 0 30 | vTOnly: 0 31 | ignoreMipmapLimit: 0 32 | grayScaleToAlpha: 0 33 | generateCubemap: 6 34 | cubemapConvolution: 0 35 | seamlessCubemap: 1 36 | textureFormat: 1 37 | maxTextureSize: 2048 38 | textureSettings: 39 | serializedVersion: 2 40 | filterMode: 1 41 | aniso: 1 42 | mipBias: 0 43 | wrapU: 0 44 | wrapV: 0 45 | wrapW: 0 46 | nPOTScale: 1 47 | lightmap: 0 48 | compressionQuality: 50 49 | spriteMode: 0 50 | spriteExtrude: 1 51 | spriteMeshType: 1 52 | alignment: 0 53 | spritePivot: {x: 0.5, y: 0.5} 54 | spritePixelsToUnits: 100 55 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 56 | spriteGenerateFallbackPhysicsShape: 1 57 | alphaUsage: 1 58 | alphaIsTransparency: 0 59 | spriteTessellationDetail: -1 60 | textureType: 0 61 | textureShape: 2 62 | singleChannelComponent: 0 63 | flipbookRows: 1 64 | flipbookColumns: 1 65 | maxTextureSizeSet: 0 66 | compressionQualitySet: 0 67 | textureFormatSet: 0 68 | ignorePngGamma: 0 69 | applyGammaDecoding: 1 70 | swizzle: 50462976 71 | cookieLightType: 2 72 | platformSettings: 73 | - serializedVersion: 3 74 | buildTarget: DefaultTexturePlatform 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | ignorePlatformSupport: 0 84 | androidETC2FallbackOverride: 0 85 | forceMaximumCompressionQuality_BC6H_BC7: 1 86 | - serializedVersion: 3 87 | buildTarget: Standalone 88 | maxTextureSize: 2048 89 | resizeAlgorithm: 0 90 | textureFormat: -1 91 | textureCompression: 1 92 | compressionQuality: 50 93 | crunchedCompression: 0 94 | allowsAlphaSplitting: 0 95 | overridden: 0 96 | ignorePlatformSupport: 0 97 | androidETC2FallbackOverride: 0 98 | forceMaximumCompressionQuality_BC6H_BC7: 1 99 | - serializedVersion: 3 100 | buildTarget: Android 101 | maxTextureSize: 2048 102 | resizeAlgorithm: 0 103 | textureFormat: -1 104 | textureCompression: 1 105 | compressionQuality: 50 106 | crunchedCompression: 0 107 | allowsAlphaSplitting: 0 108 | overridden: 0 109 | ignorePlatformSupport: 0 110 | androidETC2FallbackOverride: 0 111 | forceMaximumCompressionQuality_BC6H_BC7: 1 112 | spriteSheet: 113 | serializedVersion: 2 114 | sprites: [] 115 | outline: [] 116 | physicsShape: [] 117 | bones: [] 118 | spriteID: 119 | internalID: 0 120 | vertices: [] 121 | indices: 122 | edges: [] 123 | weights: [] 124 | secondaryTextures: [] 125 | nameFileIdTable: {} 126 | mipmapLimitGroupName: 127 | pSDRemoveMatte: 0 128 | userData: 129 | assetBundleName: 130 | assetBundleVariant: 131 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/Loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/Loading.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/Loading.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b183318621228543aa9c27a736a1493 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 0 41 | wrapV: 0 42 | wrapW: 0 43 | nPOTScale: 1 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 0 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 0 56 | spriteTessellationDetail: -1 57 | textureType: 0 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/button.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/button9slice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/button9slice.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/button9slice.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eec623c29607b1447ac4dc6de3cdda6a 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 1 41 | wrapV: 1 42 | wrapW: 0 43 | nPOTScale: 0 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 1 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 24, y: 24, z: 24, w: 24} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 1 56 | spriteTessellationDetail: -1 57 | textureType: 8 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: b509190ff23b34d81b17028eeee94282 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/dialog.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/header.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/noise_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/noise_01.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/noise_01.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fff70cc323e7244f0a6fed5ecb11a9a1 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 0 41 | wrapV: 0 42 | wrapW: 0 43 | nPOTScale: 1 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 0 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 0 56 | spriteTessellationDetail: -1 57 | textureType: 0 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/panel_background.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/panel_background.PNG -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/panel_background.PNG.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d929e2a65a1cbc54dacdbdcdb33165e2 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 1 41 | wrapV: 1 42 | wrapW: 0 43 | nPOTScale: 0 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 1 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 5, y: 7, z: 6, w: 6} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 1 56 | spriteTessellationDetail: -1 57 | textureType: 8 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 1860cb20b7cf141ddab3687b539c12eb 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_PSD.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_PSD.psd -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_PSD.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e18f01d9439b38045b70e908d6f06d82 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 0 41 | wrapV: 0 42 | wrapW: 0 43 | nPOTScale: 1 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 0 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 0 56 | spriteTessellationDetail: -1 57 | textureType: 0 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 1 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_disabled.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_disabled.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdbd8a3ecf4a241499b36f4c13ded10b 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 1 41 | wrapV: 1 42 | wrapW: 0 43 | nPOTScale: 0 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 1 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 30, y: 30, z: 30, w: 30} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 1 56 | spriteTessellationDetail: -1 57 | textureType: 8 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 1dc1b6f4fd0b94828a31a61094e0cde4 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_off.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_on.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_on_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_on_off.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_over.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/radio_over.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d573cef9968bac840a82613c16823a0e 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 1 41 | wrapV: 1 42 | wrapW: 0 43 | nPOTScale: 0 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 1 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 30, y: 30, z: 30, w: 30} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 1 56 | spriteTessellationDetail: -1 57 | textureType: 8 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: d325dbfd39be946b6bcb84c50fcf5867 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/separator.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/slider_bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/slider_bar.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/slider_slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/slider_slider.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/translucent_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Assets/PassthroughCameraApiSamples/StartScene/Textures/translucent_01.png -------------------------------------------------------------------------------- /Assets/PassthroughCameraApiSamples/StartScene/Textures/translucent_01.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ebd72557d873024e8afa355e92d435f 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 13 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | flipGreenChannel: 0 24 | isReadable: 0 25 | streamingMipmaps: 0 26 | streamingMipmapsPriority: 0 27 | vTOnly: 0 28 | ignoreMipmapLimit: 0 29 | grayScaleToAlpha: 0 30 | generateCubemap: 6 31 | cubemapConvolution: 0 32 | seamlessCubemap: 0 33 | textureFormat: 1 34 | maxTextureSize: 2048 35 | textureSettings: 36 | serializedVersion: 2 37 | filterMode: 1 38 | aniso: 1 39 | mipBias: 0 40 | wrapU: 1 41 | wrapV: 1 42 | wrapW: 0 43 | nPOTScale: 0 44 | lightmap: 0 45 | compressionQuality: 50 46 | spriteMode: 1 47 | spriteExtrude: 1 48 | spriteMeshType: 1 49 | alignment: 0 50 | spritePivot: {x: 0.5, y: 0.5} 51 | spritePixelsToUnits: 100 52 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 53 | spriteGenerateFallbackPhysicsShape: 1 54 | alphaUsage: 1 55 | alphaIsTransparency: 1 56 | spriteTessellationDetail: -1 57 | textureType: 8 58 | textureShape: 1 59 | singleChannelComponent: 0 60 | flipbookRows: 1 61 | flipbookColumns: 1 62 | maxTextureSizeSet: 0 63 | compressionQualitySet: 0 64 | textureFormatSet: 0 65 | ignorePngGamma: 0 66 | applyGammaDecoding: 1 67 | swizzle: 50462976 68 | cookieLightType: 1 69 | platformSettings: 70 | - serializedVersion: 3 71 | buildTarget: DefaultTexturePlatform 72 | maxTextureSize: 2048 73 | resizeAlgorithm: 0 74 | textureFormat: -1 75 | textureCompression: 1 76 | compressionQuality: 50 77 | crunchedCompression: 0 78 | allowsAlphaSplitting: 0 79 | overridden: 0 80 | ignorePlatformSupport: 0 81 | androidETC2FallbackOverride: 0 82 | forceMaximumCompressionQuality_BC6H_BC7: 1 83 | - serializedVersion: 3 84 | buildTarget: Standalone 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | ignorePlatformSupport: 0 94 | androidETC2FallbackOverride: 0 95 | forceMaximumCompressionQuality_BC6H_BC7: 1 96 | - serializedVersion: 3 97 | buildTarget: Android 98 | maxTextureSize: 2048 99 | resizeAlgorithm: 0 100 | textureFormat: -1 101 | textureCompression: 1 102 | compressionQuality: 50 103 | crunchedCompression: 0 104 | allowsAlphaSplitting: 0 105 | overridden: 0 106 | ignorePlatformSupport: 0 107 | androidETC2FallbackOverride: 0 108 | forceMaximumCompressionQuality_BC6H_BC7: 1 109 | spriteSheet: 110 | serializedVersion: 2 111 | sprites: [] 112 | outline: [] 113 | physicsShape: [] 114 | bones: [] 115 | spriteID: 2c550f2a5a20b484ca380ea7bb18385a 116 | internalID: 0 117 | vertices: [] 118 | indices: 119 | edges: [] 120 | weights: [] 121 | secondaryTextures: [] 122 | nameFileIdTable: {} 123 | mipmapLimitGroupName: 124 | pSDRemoveMatte: 0 125 | userData: 126 | assetBundleName: 127 | assetBundleVariant: 128 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a91fddc438daa41b188175396307237d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d70688060b664f3ea2121c6128306e7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidManifest.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7963c63a022e24c848c2f604d77eba7a 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 294a7f6af08994272a5daa76b4ef7cd6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/ImmersiveDebuggerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: a7d75bea1662418ab5f9e0c22110bc09, type: 3} 13 | m_Name: ImmersiveDebuggerSettings 14 | m_EditorClassIdentifier: 15 | debugTypes: [] 16 | immersiveDebuggerEnabled: 0 17 | immersiveDebuggerDisplayAtStartup: 0 18 | showInspectors: 0 19 | showConsole: 0 20 | followOverride: 1 21 | rotateOverride: 0 22 | showInfoLog: 0 23 | showWarningLog: 1 24 | showErrorLog: 1 25 | collapsedIdenticalLogEntries: 0 26 | maximumNumberOfLogEntries: 1000 27 | panelDistance: 1 28 | createEventSystem: 1 29 | automaticLayerCullingUpdate: 1 30 | panelLayer: 20 31 | meshRendererLayer: 21 32 | overlayDepth: 10 33 | inspectedDataEnabled: 34 | inspectedDataAssets: [] 35 | useCustomIntegrationConfig: 0 36 | customIntegrationConfigClassName: 37 | hierarchyViewShowsPrivateMembers: 0 38 | clickButton: 8193 39 | toggleFollowTranslationButton: 0 40 | toggleFollowRotationButton: 0 41 | immersiveDebuggerToggleDisplayButton: 2 42 | -------------------------------------------------------------------------------- /Assets/Resources/ImmersiveDebuggerSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12b2a2acdaad14290ba23b2f363a6f00 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/OVRBuildConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 20553fac56ec59645857c0732b787431, type: 3} 13 | m_Name: OVRBuildConfig 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/Resources/OVRBuildConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb91d630076ad41eeb79a949b5e04491 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/OVRPlatformToolSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: cd7bb81df5b74b34dadbf531f381a26b, type: 3} 13 | m_Name: OVRPlatformToolSettings 14 | m_EditorClassIdentifier: 15 | riftRedistPackages: [] 16 | languagePackDirectory: 17 | assetConfigs: 18 | - configList: [] 19 | - configList: [] 20 | - configList: [] 21 | targetPlatform: 3 22 | runOvrLint: 1 23 | -------------------------------------------------------------------------------- /Assets/Resources/OVRPlatformToolSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d4803004827a4886a3e488601597202 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/OculusRuntimeSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 3863570e7e6387a40ae4f323d83291e5, type: 3} 13 | m_Name: OculusRuntimeSettings 14 | m_EditorClassIdentifier: 15 | handSkeletonVersion: 0 16 | colorSpace: 7 17 | requestsVisualFaceTracking: 1 18 | requestsAudioFaceTracking: 1 19 | enableFaceTrackingVisemesOutput: 0 20 | telemetryProjectGuid: d3b734c5-027a-4bf1-bcbc-9ef6111cb1bd 21 | bodyTrackingFidelity: 1 22 | bodyTrackingJointSet: 0 23 | -------------------------------------------------------------------------------- /Assets/Resources/OculusRuntimeSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08b72f952105345fc9de1afcc8699a7c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/buildInfo.txt: -------------------------------------------------------------------------------- 1 | 5:17 PM 11/21/2024 2 | -------------------------------------------------------------------------------- /Assets/Resources/buildInfo.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: adb9cc8111dea4e809ee6e77db66b40e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/XR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0cea61ae307d4100b0de327841a7076 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad26a72075e7e464cad56dd972d5de10 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/OculusLoader.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 03bc68f14d65e7747a59d5ff74bd199b, type: 3} 13 | m_Name: OculusLoader 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/OculusLoader.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5cef9052281a4476b932f9b74dcf466 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Settings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5c0bfd353e5843feaf6aab970f38639 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Settings/OculusSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: c353a8f1e58cf884584123914fe63cd5, type: 3} 13 | m_Name: OculusSettings 14 | m_EditorClassIdentifier: 15 | m_StereoRenderingModeDesktop: 1 16 | m_StereoRenderingModeAndroid: 2 17 | SharedDepthBuffer: 1 18 | DepthSubmission: 0 19 | DashSupport: 1 20 | LowOverheadMode: 0 21 | OptimizeBufferDiscards: 1 22 | PhaseSync: 1 23 | SymmetricProjection: 1 24 | SubsampledLayout: 0 25 | FoveatedRenderingMethod: 0 26 | LateLatching: 0 27 | LateLatchingDebug: 0 28 | EnableTrackingOriginStageMode: 0 29 | SpaceWarp: 0 30 | TargetQuest2: 1 31 | TargetQuestPro: 0 32 | TargetQuest3: 0 33 | TargetQuest3S: 0 34 | SystemSplashScreen: {fileID: 0} 35 | UseStickControlThumbsticks: 0 36 | -------------------------------------------------------------------------------- /Assets/XR/Settings/OculusSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2bf97b3acdb64248a707c407c9fc54e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/XRGeneralSettingsPerBuildTarget.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-7700934463049909239 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} 13 | m_Name: Android Providers 14 | m_EditorClassIdentifier: 15 | m_RequiresSettingsUpdate: 0 16 | m_AutomaticLoading: 0 17 | m_AutomaticRunning: 0 18 | m_Loaders: 19 | - {fileID: 11400000, guid: e5cef9052281a4476b932f9b74dcf466, type: 2} 20 | --- !u!114 &11400000 21 | MonoBehaviour: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 0} 27 | m_Enabled: 1 28 | m_EditorHideFlags: 0 29 | m_Script: {fileID: 11500000, guid: d2dc886499c26824283350fa532d087d, type: 3} 30 | m_Name: XRGeneralSettingsPerBuildTarget 31 | m_EditorClassIdentifier: 32 | Keys: 0700000001000000 33 | Values: 34 | - {fileID: 4351115104115131797} 35 | - {fileID: 4684498340666457720} 36 | --- !u!114 &4026433780728256070 37 | MonoBehaviour: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 0} 43 | m_Enabled: 1 44 | m_EditorHideFlags: 0 45 | m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3} 46 | m_Name: Standalone Providers 47 | m_EditorClassIdentifier: 48 | m_RequiresSettingsUpdate: 0 49 | m_AutomaticLoading: 0 50 | m_AutomaticRunning: 0 51 | m_Loaders: [] 52 | --- !u!114 &4351115104115131797 53 | MonoBehaviour: 54 | m_ObjectHideFlags: 0 55 | m_CorrespondingSourceObject: {fileID: 0} 56 | m_PrefabInstance: {fileID: 0} 57 | m_PrefabAsset: {fileID: 0} 58 | m_GameObject: {fileID: 0} 59 | m_Enabled: 1 60 | m_EditorHideFlags: 0 61 | m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} 62 | m_Name: Android Settings 63 | m_EditorClassIdentifier: 64 | m_LoaderManagerInstance: {fileID: -7700934463049909239} 65 | m_InitManagerOnStart: 1 66 | --- !u!114 &4684498340666457720 67 | MonoBehaviour: 68 | m_ObjectHideFlags: 0 69 | m_CorrespondingSourceObject: {fileID: 0} 70 | m_PrefabInstance: {fileID: 0} 71 | m_PrefabAsset: {fileID: 0} 72 | m_GameObject: {fileID: 0} 73 | m_Enabled: 1 74 | m_EditorHideFlags: 0 75 | m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3} 76 | m_Name: Standalone Settings 77 | m_EditorClassIdentifier: 78 | m_LoaderManagerInstance: {fileID: 4026433780728256070} 79 | m_InitManagerOnStart: 1 80 | -------------------------------------------------------------------------------- /Assets/XR/XRGeneralSettingsPerBuildTarget.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a971eac5e950046e586c5e153e32d05c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | We want to make contributing to this project as easy and transparent as possible. 3 | 4 | ## Pull Requests 5 | We actively welcome your pull requests. 6 | 7 | 1. Fork the repo and create your branch from `main`. 8 | 2. If you've added code that should be tested, add tests. 9 | 3. If you've changed APIs, update the documentation. 10 | 4. Ensure the test suite passes. 11 | 5. Make sure your code lints. 12 | 6. If you haven't already, complete the Contributor License Agreement ("CLA"). 13 | 14 | ## Contributor License Agreement ("CLA") 15 | In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects. 16 | 17 | Complete your CLA here: 18 | 19 | ## Issues 20 | We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue. 21 | 22 | Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue. 23 | 24 | ## License 25 | By contributing, you agree that your contributions will be licensed under the LICENSE file in the root directory of this source tree. 26 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) Meta Platforms, Inc. and affiliates. 2 | All rights reserved. 3 | 4 | Licensed under the Oculus SDK License Agreement (the "License"); 5 | you may not use the Oculus SDK except in compliance with the License, 6 | which is provided at the time of installation or download, or which 7 | otherwise accompanies this software in either electronic or hard copy form. 8 | 9 | You may obtain a copy of the License at 10 | 11 | https://developer.oculus.com/licenses/oculussdk/ 12 | 13 | Unless required by applicable law or agreed to in writing, the Oculus SDK 14 | distributed under the License is distributed on an "AS IS" BASIS, 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | See the License for the specific language governing permissions and 17 | limitations under the License. 18 | -------------------------------------------------------------------------------- /Media/BrightnessEstimation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Media/BrightnessEstimation.gif -------------------------------------------------------------------------------- /Media/CameraToWorld.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Media/CameraToWorld.gif -------------------------------------------------------------------------------- /Media/ObjectDetectionSentis.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Media/ObjectDetectionSentis.gif -------------------------------------------------------------------------------- /Media/ShaderSample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/9c9ffc4409a35b2d262c062c871cd676fbbc7817/Media/ShaderSample.gif -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.meta.xr.mrutilitykit": "74.0.0", 4 | "com.unity.feature.development": "1.0.2", 5 | "com.unity.sentis": "2.1.1", 6 | "com.unity.ugui": "1.0.0", 7 | "com.unity.xr.management": "4.5.0", 8 | "com.unity.xr.oculus": "4.5.0", 9 | "com.unity.modules.ai": "1.0.0", 10 | "com.unity.modules.androidjni": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.assetbundle": "1.0.0", 13 | "com.unity.modules.audio": "1.0.0", 14 | "com.unity.modules.cloth": "1.0.0", 15 | "com.unity.modules.director": "1.0.0", 16 | "com.unity.modules.imageconversion": "1.0.0", 17 | "com.unity.modules.imgui": "1.0.0", 18 | "com.unity.modules.jsonserialize": "1.0.0", 19 | "com.unity.modules.particlesystem": "1.0.0", 20 | "com.unity.modules.physics": "1.0.0", 21 | "com.unity.modules.physics2d": "1.0.0", 22 | "com.unity.modules.screencapture": "1.0.0", 23 | "com.unity.modules.terrain": "1.0.0", 24 | "com.unity.modules.terrainphysics": "1.0.0", 25 | "com.unity.modules.tilemap": "1.0.0", 26 | "com.unity.modules.ui": "1.0.0", 27 | "com.unity.modules.uielements": "1.0.0", 28 | "com.unity.modules.umbra": "1.0.0", 29 | "com.unity.modules.unityanalytics": "1.0.0", 30 | "com.unity.modules.unitywebrequest": "1.0.0", 31 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 32 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 33 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 34 | "com.unity.modules.unitywebrequestwww": "1.0.0", 35 | "com.unity.modules.vehicles": "1.0.0", 36 | "com.unity.modules.video": "1.0.0", 37 | "com.unity.modules.vr": "1.0.0", 38 | "com.unity.modules.wind": "1.0.0", 39 | "com.unity.modules.xr": "1.0.0" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_EnableOutputSuspension: 1 16 | m_SpatializerPlugin: 17 | m_AmbisonicDecoderPlugin: 18 | m_DisableAudio: 0 19 | m_VirtualizeEffects: 1 20 | m_RequestedDSPBufferSize: 1024 21 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 14 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_DefaultMaxDepenetrationVelocity: 10 11 | m_SleepThreshold: 0.005 12 | m_DefaultContactOffset: 0.01 13 | m_DefaultSolverIterations: 6 14 | m_DefaultSolverVelocityIterations: 1 15 | m_QueriesHitBackfaces: 0 16 | m_QueriesHitTriggers: 1 17 | m_EnableAdaptiveForce: 0 18 | m_ClothInterCollisionDistance: 0 19 | m_ClothInterCollisionStiffness: 0 20 | m_ContactsGeneration: 1 21 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 22 | m_SimulationMode: 0 23 | m_AutoSyncTransforms: 0 24 | m_ReuseCollisionCallbacks: 1 25 | m_InvokeCollisionCallbacks: 1 26 | m_ClothInterCollisionSettingsToggle: 0 27 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 28 | m_ContactPairsMode: 0 29 | m_BroadphaseType: 0 30 | m_WorldBounds: 31 | m_Center: {x: 0, y: 0, z: 0} 32 | m_Extent: {x: 250, y: 250, z: 250} 33 | m_WorldSubdivisions: 8 34 | m_FrictionType: 0 35 | m_EnableEnhancedDeterminism: 0 36 | m_EnableUnifiedHeightmaps: 1 37 | m_ImprovedPatchFriction: 0 38 | m_SolverType: 0 39 | m_DefaultMaxAngularSpeed: 7 40 | m_FastMotionThreshold: 3.4028235e+38 41 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/PassthroughCameraApiSamples/StartScene/StartScene.unity 10 | guid: 69e1b31c45bac42f88f75017ee404de1 11 | - enabled: 1 12 | path: Assets/PassthroughCameraApiSamples/CameraViewer/CameraViewer.unity 13 | guid: ad5bb12b10679b840999aa322aa7a491 14 | - enabled: 1 15 | path: Assets/PassthroughCameraApiSamples/CameraToWorld/CameraToWorld.unity 16 | guid: 756785b371a4f49438b7e2148816e892 17 | - enabled: 1 18 | path: Assets/PassthroughCameraApiSamples/BrightnessEstimation/BrightnessEstimation.unity 19 | guid: 8ea13e682474e1748965f8e21972f2b2 20 | - enabled: 1 21 | path: Assets/PassthroughCameraApiSamples/MultiObjectDetection/MultiObjectDetection.unity 22 | guid: 20c230cce46443841b5727b1d6100bfc 23 | - enabled: 1 24 | path: Assets/PassthroughCameraApiSamples/ShaderSample/ShaderSample.unity 25 | guid: 708e8dca6055146b28afe2481f141457 26 | m_configObjects: 27 | Unity.XR.Oculus.Settings: {fileID: 11400000, guid: f2bf97b3acdb64248a707c407c9fc54e, type: 2} 28 | com.unity.xr.management.loader_settings: {fileID: 11400000, guid: a971eac5e950046e586c5e153e32d05c, type: 2} 29 | com.unity.xr.openxr.settings4: {fileID: 11400000, guid: 9d6cad077b11c47aa8de68032ce78bdd, type: 2} 30 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 0 9 | m_DefaultBehaviorMode: 0 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 0 13 | m_SpritePackerCacheSize: 10 14 | m_SpritePackerPaddingPower: 1 15 | m_Bc7TextureCompressor: 0 16 | m_EtcTextureCompressorBehavior: 1 17 | m_EtcTextureFastCompressor: 1 18 | m_EtcTextureNormalCompressor: 2 19 | m_EtcTextureBestCompressor: 4 20 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 21 | m_ProjectGenerationRootNamespace: 22 | m_EnableTextureStreamingInEditMode: 1 23 | m_EnableTextureStreamingInPlayMode: 1 24 | m_EnableEditorAsyncCPUTextureLoading: 0 25 | m_AsyncShaderCompilation: 1 26 | m_PrefabModeAllowAutoSave: 1 27 | m_EnterPlayModeOptionsEnabled: 0 28 | m_EnterPlayModeOptions: 3 29 | m_GameObjectNamingDigits: 1 30 | m_GameObjectNamingScheme: 0 31 | m_AssetNamingUsesSpace: 1 32 | m_InspectorUseIMGUIDefaultInspector: 0 33 | m_UseLegacyProbeSampleCount: 0 34 | m_SerializeInlineMappingsOnOneLine: 1 35 | m_DisableCookiesInLightmapper: 0 36 | m_AssetPipelineMode: 1 37 | m_RefreshImportMode: 0 38 | m_CacheServerMode: 0 39 | m_CacheServerEndpoint: 40 | m_CacheServerNamespacePrefix: default 41 | m_CacheServerEnableDownload: 1 42 | m_CacheServerEnableUpload: 1 43 | m_CacheServerEnableAuth: 0 44 | m_CacheServerEnableTls: 0 45 | m_CacheServerValidationMode: 2 46 | m_CacheServerDownloadBatchSize: 128 47 | m_EnableEnlightenBakedGI: 0 48 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 15 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_DepthNormals: 17 | m_Mode: 1 18 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 19 | m_MotionVectors: 20 | m_Mode: 1 21 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 22 | m_LightHalo: 23 | m_Mode: 1 24 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LensFlare: 26 | m_Mode: 1 27 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 28 | m_VideoShadersIncludeMode: 2 29 | m_AlwaysIncludedShaders: 30 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 31 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 32 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 36 | m_PreloadedShaders: [] 37 | m_PreloadShadersBatchTimeLimit: -1 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 39 | m_CustomRenderPipeline: {fileID: 0} 40 | m_TransparencySortMode: 0 41 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 42 | m_DefaultRenderingPath: 1 43 | m_DefaultMobileRenderingPath: 1 44 | m_TierSettings: [] 45 | m_LightmapStripping: 0 46 | m_FogStripping: 0 47 | m_InstancingStripping: 0 48 | m_BrgStripping: 0 49 | m_LightmapKeepPlain: 1 50 | m_LightmapKeepDirCombined: 1 51 | m_LightmapKeepDynamicPlain: 1 52 | m_LightmapKeepDynamicDirCombined: 1 53 | m_LightmapKeepShadowMask: 1 54 | m_LightmapKeepSubtractive: 1 55 | m_FogKeepLinear: 1 56 | m_FogKeepExp: 1 57 | m_FogKeepExp2: 1 58 | m_AlbedoSwatchInfos: [] 59 | m_LightsUseLinearIntensity: 0 60 | m_LightsUseColorTemperature: 0 61 | m_DefaultRenderingLayerMask: 1 62 | m_LogWhenShaderIsCompiled: 0 63 | m_SRPDefaultSettings: {} 64 | m_LightProbeOutsideHullStrategy: 0 65 | m_CameraRelativeLightCulling: 0 66 | m_CameraRelativeShadowCulling: 0 67 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/MultiplayerManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!655991488 &1 4 | MultiplayerManager: 5 | m_ObjectHideFlags: 0 6 | m_EnableMultiplayerRoles: 0 7 | m_ActiveMultiplayerRole: 0 8 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 3 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | buildHeightMesh: 0 88 | maxJobWorkers: 0 89 | preserveTilesOutsideBounds: 0 90 | debug: 91 | m_Flags: 0 92 | m_SettingNames: 93 | - Humanoid 94 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_AdvancedSettingsExpanded: 1 17 | m_ScopedRegistriesSettingsExpanded: 1 18 | m_SeeAllPackageVersions: 0 19 | m_DismissPreviewPackagesInUse: 0 20 | oneTimeWarningShown: 0 21 | oneTimeDeprecatedPopUpShown: 0 22 | m_Registries: 23 | - m_Id: main 24 | m_Name: 25 | m_Url: https://packages.unity.com 26 | m_Scopes: [] 27 | m_IsDefault: 1 28 | m_Capabilities: 7 29 | m_ConfigSource: 0 30 | m_UserSelectedRegistryName: 31 | m_UserAddingNewScopedRegistry: 0 32 | m_RegistryInfoDraft: 33 | m_Modified: 0 34 | m_ErrorMessage: 35 | m_UserModificationsInstanceId: -872 36 | m_OriginalInstanceId: -876 37 | m_LoadAssets: 0 38 | -------------------------------------------------------------------------------- /ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "m_Dictionary": { 3 | "m_DictionaryValues": [] 4 | } 5 | } -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 6 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_SimulationMode: 0 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_GizmoOptions: 10 48 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 49 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.52f1 2 | m_EditorVersionWithRevision: 2022.3.52f1 (1120fcb54228) 3 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/TimelineSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 53 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | assetDefaultFramerate: 60 16 | m_DefaultFrameRate: 60 17 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | m_PackageRequiringCoreStatsPresent: 0 27 | UnityAdsSettings: 28 | m_Enabled: 0 29 | m_InitializeOnStartup: 1 30 | m_TestMode: 0 31 | m_IosGameId: 32 | m_AndroidGameId: 33 | m_GameIds: {} 34 | m_GameId: 35 | PerformanceReportingSettings: 36 | m_Enabled: 0 37 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_EmptyShader: {fileID: 0} 11 | m_RenderPipeSettingsPath: 12 | m_FixedTimeStep: 0.016666668 13 | m_MaxDeltaTime: 0.05 14 | m_MaxScrubTime: 30 15 | m_CompiledVersion: 0 16 | m_RuntimeVersion: 0 17 | m_RuntimeResources: {fileID: 0} 18 | m_BatchEmptyLifetime: 300 19 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRPackageSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_Settings": [ 3 | "RemoveLegacyInputHelpersForReload" 4 | ] 5 | } -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } --------------------------------------------------------------------------------