├── .gitignore ├── DepthCapturePlugin ├── ProjectSettings │ ├── ProjectVersion.txt │ ├── ClusterInputManager.asset │ ├── NetworkManager.asset │ ├── TimeManager.asset │ ├── EditorBuildSettings.asset │ ├── PresetManager.asset │ ├── AudioManager.asset │ ├── TagManager.asset │ ├── EditorSettings.asset │ ├── UnityConnectSettings.asset │ ├── DynamicsManager.asset │ ├── NavMeshAreas.asset │ ├── Physics2DSettings.asset │ ├── GraphicsSettings.asset │ ├── QualitySettings.asset │ ├── InputManager.asset │ └── ProjectSettings.asset ├── UnityPackageManager │ └── manifest.json ├── Assets │ ├── Scenes │ │ ├── SampleScene.unity.meta │ │ └── SampleScene.unity │ ├── Editor.meta │ ├── Plugins.meta │ ├── Scenes.meta │ ├── Plugins │ │ ├── iOS.meta │ │ └── iOS │ │ │ ├── DepthCapture.meta │ │ │ └── DepthCapture │ │ │ ├── DepthCapture.cs.meta │ │ │ ├── DepthCapture.m.meta │ │ │ ├── DepthCapture.swift.meta │ │ │ ├── DepthCapture.m │ │ │ ├── DepthCapture.cs │ │ │ └── DepthCapture.swift │ ├── UnitySwift.meta │ ├── UnitySwift │ │ ├── UnitySwift-Bridging-Header.h │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── PostProcessor.cs.meta │ │ │ └── PostProcessor.cs │ │ └── UnitySwift-Bridging-Header.h.meta │ ├── QuadColor.mat.meta │ ├── CaptureButton.cs.meta │ ├── Editor │ │ ├── PostProcessor.cs.meta │ │ └── PostProcessor.cs │ ├── QuadColor.mat │ └── CaptureButton.cs ├── .gitignore └── Packages │ └── manifest.json ├── docs └── img │ └── sample.jpeg ├── Makefile ├── LICENSE └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | /depthcapture.unitypackage 2 | /DepthCapturePlugin.Xcode 3 | -------------------------------------------------------------------------------- /DepthCapturePlugin/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.4.0f1 2 | -------------------------------------------------------------------------------- /DepthCapturePlugin/UnityPackageManager/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | -------------------------------------------------------------------------------- /docs/img/sample.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AtsushiSuzuki/unity-depthcapture-ios/HEAD/docs/img/sample.jpeg -------------------------------------------------------------------------------- /DepthCapturePlugin/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 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b58d8011e26c848c18055d5b757f2faa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 003dba4bcae7c4bf19b31b949f01485e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 131a6b21c8605f84396be9f6751fb6e3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 042d35779bff04cf2b07fe588198a3cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /DepthCapturePlugin/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 430070ea2767345a98ddd00d6769476a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/UnitySwift.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5463632759494c0c9c76357197ff966 3 | folderAsset: yes 4 | timeCreated: 1467687641 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/UnitySwift/UnitySwift-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import 6 | #import 7 | #import "UnityInterface.h" 8 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/UnitySwift/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 391a19e6f711b498fa514c157fed3a7a 3 | folderAsset: yes 4 | timeCreated: 1467687641 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/QuadColor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88bd2f773ed2a4a648986277eb2afc08 3 | timeCreated: 1545024544 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/CaptureButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 368a9f572d6ab419094cf599c49f1ccb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Editor/PostProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 737e3496e267f4a65af7f74cfbc35712 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture/DepthCapture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f37642e12b03a449e93dc5c76728ab3c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/UnitySwift/Editor/PostProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd00e9b781c034ecfa81246579806b3f 3 | timeCreated: 1468687463 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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/Scenes/SampleScene.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | UNITY?=/Applications/Unity/Unity.app/Contents/MacOS/Unity 2 | FILES=$(addprefix Assets/Plugins/iOS/DepthCapture/,DepthCapture.swift DepthCapture.m DepthCapture.cs) 3 | 4 | all: export 5 | 6 | export: 7 | $(UNITY) -exportPackage $(FILES) $(abspath depthcapture.unitypackage) \ 8 | -projectPath DepthCapturePlugin \ 9 | -batchmode \ 10 | -nographics \ 11 | -logfile - \ 12 | -quit 13 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 20 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: bfcfc320427f8224bbb7a96f3d3aebad, 13 | type: 2} 14 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture/DepthCapture.m.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 849b9f950be50428eb20a6a2b4a1cf42 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | Any: 13 | second: 14 | enabled: 0 15 | settings: {} 16 | - first: 17 | Editor: Editor 18 | second: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | - first: 23 | iPhone: iOS 24 | second: 25 | enabled: 1 26 | settings: 27 | AddToEmbeddedBinaries: false 28 | userData: 29 | assetBundleName: 30 | assetBundleVariant: 31 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture/DepthCapture.swift.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d11724c14b1d4502bf032a01c26dc71 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | Any: 13 | second: 14 | enabled: 0 15 | settings: {} 16 | - first: 17 | Editor: Editor 18 | second: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | - first: 23 | iPhone: iOS 24 | second: 25 | enabled: 1 26 | settings: 27 | AddToEmbeddedBinaries: false 28 | userData: 29 | assetBundleName: 30 | assetBundleVariant: 31 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2018, Atsushi Suzuki 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /DepthCapturePlugin/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/unity 3 | # Edit at https://www.gitignore.io/?templates=unity 4 | 5 | ### Unity ### 6 | [Ll]ibrary/ 7 | [Tt]emp/ 8 | [Oo]bj/ 9 | [Bb]uild/ 10 | [Bb]uilds/ 11 | Assets/AssetStoreTools* 12 | 13 | # Visual Studio cache directory 14 | .vs/ 15 | 16 | # Autogenerated VS/MD/Consulo solution and project files 17 | ExportedObj/ 18 | .consulo/ 19 | *.csproj 20 | *.unityproj 21 | *.sln 22 | *.suo 23 | *.tmp 24 | *.user 25 | *.userprefs 26 | *.pidb 27 | *.booproj 28 | *.svd 29 | *.pdb 30 | *.opendb 31 | *.VC.db 32 | 33 | # Unity3D generated meta files 34 | *.pidb.meta 35 | *.pdb.meta 36 | 37 | # Unity3D Generated File On Crash Reports 38 | sysinfo.txt 39 | 40 | # Builds 41 | *.apk 42 | *.unitypackage 43 | 44 | # Crashlytics generated file 45 | Assets/StreamingAssets/crashlytics-build.properties 46 | 47 | 48 | # End of https://www.gitignore.io/api/unity 49 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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 | m_Enabled: 1 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 1 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 1 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Editor/PostProcessor.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEditor.Callbacks; 4 | using UnityEditor.iOS.Xcode; 5 | 6 | public static class Postprocessor 7 | { 8 | [PostProcessBuild] 9 | public static void OnPostProcessBuild(BuildTarget buildTarget, string path) 10 | { 11 | if (buildTarget == BuildTarget.iOS) 12 | { 13 | var projectPath = Path.Combine(path, "Unity-iPhone.xcodeproj/project.pbxproj"); 14 | var project = new PBXProject(); 15 | project.ReadFromFile(projectPath); 16 | var target = project.TargetGuidByName("Unity-iPhone"); 17 | project.SetBuildProperty(target, "SWIFT_VERSION", "4.2"); 18 | project.WriteToFile(projectPath); 19 | 20 | var infoPath = Path.Combine(path, "Info.plist"); 21 | var info = new PlistDocument(); 22 | info.ReadFromFile(infoPath); 23 | info.root.SetString("NSCameraUsageDescription", "深度カメラの動作テストのためにカメラAPIを使用します"); 24 | info.WriteToFile(infoPath); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/UnitySwift/UnitySwift-Bridging-Header.h.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d88763964993f492aaed83a9d99f81fb 3 | timeCreated: 1467687641 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 0 13 | settings: 14 | CPU: AnyCPU 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | DefaultValueInitialized: true 23 | OS: AnyOS 24 | Linux: 25 | enabled: 0 26 | settings: 27 | CPU: x86 28 | Linux64: 29 | enabled: 0 30 | settings: 31 | CPU: x86_64 32 | OSXIntel: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | OSXIntel64: 37 | enabled: 0 38 | settings: 39 | CPU: AnyCPU 40 | Win: 41 | enabled: 0 42 | settings: 43 | CPU: AnyCPU 44 | Win64: 45 | enabled: 0 46 | settings: 47 | CPU: AnyCPU 48 | iOS: 49 | enabled: 1 50 | settings: 51 | CompileFlags: 52 | FrameworkDependencies: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/UnitySwift/Editor/PostProcessor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using UnityEditor.Callbacks; 4 | using UnityEditor.iOS.Xcode; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using System.Diagnostics; 8 | using System.IO; 9 | using System.Linq; 10 | 11 | namespace UnitySwift { 12 | public static class PostProcessor { 13 | [PostProcessBuild] 14 | public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath) { 15 | if(buildTarget == BuildTarget.iOS) { 16 | // So PBXProject.GetPBXProjectPath returns wrong path, we need to construct path by ourselves instead 17 | // var projPath = PBXProject.GetPBXProjectPath(buildPath); 18 | var projPath = buildPath + "/Unity-iPhone.xcodeproj/project.pbxproj"; 19 | var proj = new PBXProject(); 20 | proj.ReadFromFile(projPath); 21 | 22 | var targetGuid = proj.TargetGuidByName(PBXProject.GetUnityTargetName()); 23 | 24 | //// Configure build settings 25 | proj.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO"); 26 | proj.SetBuildProperty(targetGuid, "SWIFT_OBJC_BRIDGING_HEADER", "Libraries/UnitySwift/UnitySwift-Bridging-Header.h"); 27 | proj.SetBuildProperty(targetGuid, "SWIFT_OBJC_INTERFACE_HEADER_NAME", "unityswift-Swift.h"); 28 | proj.AddBuildProperty(targetGuid, "LD_RUNPATH_SEARCH_PATHS", "@executable_path/Frameworks"); 29 | 30 | proj.WriteToFile(projPath); 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "2.0.16", 5 | "com.unity.package-manager-ui": "1.9.11", 6 | "com.unity.purchasing": "2.0.3", 7 | "com.unity.textmeshpro": "1.2.4", 8 | "com.unity.modules.ai": "1.0.0", 9 | "com.unity.modules.animation": "1.0.0", 10 | "com.unity.modules.assetbundle": "1.0.0", 11 | "com.unity.modules.audio": "1.0.0", 12 | "com.unity.modules.cloth": "1.0.0", 13 | "com.unity.modules.director": "1.0.0", 14 | "com.unity.modules.imageconversion": "1.0.0", 15 | "com.unity.modules.imgui": "1.0.0", 16 | "com.unity.modules.jsonserialize": "1.0.0", 17 | "com.unity.modules.particlesystem": "1.0.0", 18 | "com.unity.modules.physics": "1.0.0", 19 | "com.unity.modules.physics2d": "1.0.0", 20 | "com.unity.modules.screencapture": "1.0.0", 21 | "com.unity.modules.terrain": "1.0.0", 22 | "com.unity.modules.terrainphysics": "1.0.0", 23 | "com.unity.modules.tilemap": "1.0.0", 24 | "com.unity.modules.ui": "1.0.0", 25 | "com.unity.modules.uielements": "1.0.0", 26 | "com.unity.modules.umbra": "1.0.0", 27 | "com.unity.modules.unityanalytics": "1.0.0", 28 | "com.unity.modules.unitywebrequest": "1.0.0", 29 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 30 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 31 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 32 | "com.unity.modules.unitywebrequestwww": "1.0.0", 33 | "com.unity.modules.vehicles": "1.0.0", 34 | "com.unity.modules.video": "1.0.0", 35 | "com.unity.modules.vr": "1.0.0", 36 | "com.unity.modules.wind": "1.0.0", 37 | "com.unity.modules.xr": "1.0.0" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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: 2 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 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture/DepthCapture.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | typedef void (*DepthCaptureCallback)(const void *pVideoData, 6 | intptr_t videoWidth, 7 | intptr_t videoHeight, 8 | const void *pDepthData, 9 | intptr_t depthWidth, 10 | intptr_t depthHeight, 11 | const void *state); 12 | 13 | const void *DepthCapture_init(DepthCaptureCallback callback, const void *state) { 14 | return CFBridgingRetain([[DepthCapture alloc] initWithCallback:callback state:state]); 15 | } 16 | 17 | const intptr_t DepthCapture_configure(const void *capture, const char **deviceTypes, const int deviceTypeSize, const int position, const char *preset) { 18 | NSMutableArray *array = [NSMutableArray arrayWithCapacity:deviceTypeSize]; 19 | for (int i = 0; i < deviceTypeSize; i++) { 20 | array[i] = [NSString stringWithCString:deviceTypes[i] encoding:NSASCIIStringEncoding]; 21 | } 22 | return [(__bridge DepthCapture*)capture configureWithDeviceTypes:array 23 | position:position 24 | preset:[NSString stringWithCString:preset encoding:NSASCIIStringEncoding]]; 25 | } 26 | 27 | void DepthCapture_start(const void *capture) { 28 | [(__bridge DepthCapture*)capture start]; 29 | } 30 | 31 | void DepthCapture_stop(const void *capture) { 32 | [(__bridge DepthCapture*)capture stop]; 33 | } 34 | 35 | void DepthCapture_release(const void *capture) { 36 | CFBridgingRelease(capture); 37 | } 38 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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: 3 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_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_AutoSyncTransforms: 1 46 | m_AlwaysShowColliders: 0 47 | m_ShowColliderSleep: 1 48 | m_ShowColliderContacts: 0 49 | m_ShowColliderAABB: 0 50 | m_ContactArrowScale: 0.2 51 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 52 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 53 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 54 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 55 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 56 | -------------------------------------------------------------------------------- /DepthCapturePlugin/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: 12 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_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 37 | m_PreloadedShaders: [] 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 39 | type: 0} 40 | m_CustomRenderPipeline: {fileID: 0} 41 | m_TransparencySortMode: 0 42 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 43 | m_DefaultRenderingPath: 1 44 | m_DefaultMobileRenderingPath: 1 45 | m_TierSettings: [] 46 | m_LightmapStripping: 0 47 | m_FogStripping: 0 48 | m_InstancingStripping: 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 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/QuadColor.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: QuadColor 10 | m_Shader: {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _ColorMask: 15 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _Stencil: 0 74 | - _StencilComp: 8 75 | - _StencilOp: 0 76 | - _StencilReadMask: 255 77 | - _StencilWriteMask: 255 78 | - _UVSec: 0 79 | - _UseUIAlphaClip: 0 80 | - _ZWrite: 1 81 | m_Colors: 82 | - _Color: {r: 1, g: 1, b: 1, a: 1} 83 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 84 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/CaptureButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Runtime.InteropServices; 4 | using UnityEngine; 5 | 6 | public class CaptureButton : MonoBehaviour 7 | { 8 | DepthCapture capture_; 9 | public GameObject quad; 10 | 11 | // Use this for initialization 12 | IEnumerator Start() 13 | { 14 | Debug.Log("Start"); 15 | 16 | if (Application.platform == RuntimePlatform.IPhonePlayer) 17 | { 18 | capture_ = new DepthCapture(); 19 | 20 | yield return Application.RequestUserAuthorization(UserAuthorization.WebCam); 21 | 22 | capture_.Configure(); 23 | capture_.Start(); 24 | } 25 | } 26 | 27 | // Update is called once per frame 28 | void Update() 29 | { 30 | } 31 | 32 | public void OnClick() 33 | { 34 | Debug.Log("OnClick"); 35 | 36 | if (Application.platform == RuntimePlatform.IPhonePlayer) 37 | { 38 | int width = 0, height = 0; 39 | float[] pixels = null; 40 | capture_.AcquireNextFrame((pVideoData, videoWidth, videoHeight, pDepthData, depthWidth, depthHeight) => 41 | { 42 | width = depthWidth; 43 | height = depthHeight; 44 | pixels = new float[width * height]; 45 | Marshal.Copy(pDepthData, pixels, 0, width * height); 46 | }); 47 | 48 | var texture = new Texture2D(width, height); 49 | for (var y = 0; y < (int)height; y++) 50 | { 51 | for (var x = 0; x < (int)width; x++) 52 | { 53 | var v = pixels[y * width + x]; 54 | Color color; 55 | if (float.IsNaN(v)) 56 | { 57 | color = new Color(0f, 1f, 0f); 58 | } 59 | else 60 | { 61 | color = new Color(v, v, v); 62 | } 63 | texture.SetPixel(x, y, color); 64 | } 65 | } 66 | 67 | quad.GetComponent().material.mainTexture = texture; 68 | texture.Apply(); 69 | } 70 | } 71 | 72 | void OnDestroy() 73 | { 74 | Debug.Log("OnDestroy"); 75 | 76 | if (Application.platform == RuntimePlatform.IPhonePlayer) 77 | { 78 | capture_.Stop(); 79 | capture_.Dispose(); 80 | } 81 | } 82 | } -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture/DepthCapture.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Runtime.InteropServices; 4 | using System.Threading; 5 | using AOT; 6 | 7 | public class DepthCapture : IDisposable 8 | { 9 | public delegate void DepthCaptureEventHandler( 10 | IntPtr pVideoData, 11 | int videoWidth, 12 | int videoHeight, 13 | IntPtr pDepthData, 14 | int depthWidth, 15 | int depthHeight); 16 | 17 | private delegate void DepthCaptureCallback( 18 | IntPtr pVideoData, 19 | IntPtr videoWidth, 20 | IntPtr videoHeight, 21 | IntPtr pDepthData, 22 | IntPtr depthWidth, 23 | IntPtr depthHeight, 24 | IntPtr state); 25 | 26 | [DllImport("__Internal")] 27 | private static extern IntPtr DepthCapture_init(DepthCaptureCallback callback, IntPtr state); 28 | 29 | [DllImport("__Internal")] 30 | private static extern IntPtr DepthCapture_configure(IntPtr capture, string[] deviceTypes, int deviceTypeSize, int position, string preset); 31 | 32 | [DllImport("__Internal")] 33 | private static extern void DepthCapture_start(IntPtr capture); 34 | 35 | [DllImport("__Internal")] 36 | private static extern void DepthCapture_stop(IntPtr capture); 37 | 38 | [DllImport("__Internal")] 39 | private static extern void DepthCapture_release(IntPtr capture); 40 | 41 | public enum DeviceType 42 | { 43 | AVCaptureDeviceTypeBuiltInDualCamera, 44 | AVCaptureDeviceTypeBuiltInMicrophone, 45 | AVCaptureDeviceTypeBuiltInTelephotoCamera, 46 | AVCaptureDeviceTypeBuiltInTrueDepthCamera, 47 | AVCaptureDeviceTypeBuiltInWideAngleCamera, 48 | } 49 | 50 | public enum Position 51 | { 52 | Unspecified = 0, 53 | Back = 1, 54 | Front = 2, 55 | } 56 | 57 | public enum Preset 58 | { 59 | AVCaptureSessionPreset352x288, 60 | AVCaptureSessionPreset1280x720, 61 | AVCaptureSessionPreset1920x1080, 62 | AVCaptureSessionPreset3840x2160, 63 | AVCaptureSessionPresetHigh, 64 | AVCaptureSessionPresetiFrame1280x720, 65 | AVCaptureSessionPresetiFrame960x540, 66 | AVCaptureSessionPresetInputPriority, 67 | AVCaptureSessionPresetLow, 68 | AVCaptureSessionPresetMedium, 69 | AVCaptureSessionPresetPhoto, 70 | AVCaptureSessionPreset640x480, 71 | } 72 | 73 | 74 | private IntPtr capture_; 75 | private IntPtr state_; 76 | 77 | public event DepthCaptureEventHandler DepthCaptured; 78 | 79 | public DepthCapture() 80 | { 81 | state_ = (IntPtr)GCHandle.Alloc(this); 82 | capture_ = DepthCapture_init(OnDepthCaptured, state_); 83 | } 84 | 85 | public void Configure(DeviceType[] deviceTypes = null, Position position = Position.Unspecified, Preset preset = Preset.AVCaptureSessionPreset640x480) 86 | { 87 | deviceTypes = deviceTypes ?? new[] { DeviceType.AVCaptureDeviceTypeBuiltInTrueDepthCamera,DeviceType.AVCaptureDeviceTypeBuiltInDualCamera,}; 88 | var error = DepthCapture_configure( 89 | capture_, 90 | deviceTypes.Select(t => t.ToString()).ToArray(), 91 | deviceTypes.Length, 92 | (int)position, 93 | preset.ToString()); 94 | 95 | if ((long)error != 0) { 96 | throw new Exception(string.Format("DepthCapture.configure: error: {0}", error)); 97 | } 98 | } 99 | 100 | public void Start() 101 | { 102 | DepthCapture_start(capture_); 103 | } 104 | 105 | public void Stop() 106 | { 107 | DepthCapture_stop(capture_); 108 | } 109 | 110 | public virtual void Dispose() 111 | { 112 | Dispose(true); 113 | } 114 | 115 | protected virtual void Dispose(bool disposing) 116 | { 117 | DepthCapture_release(capture_); 118 | GCHandle.FromIntPtr(state_).Free(); 119 | } 120 | 121 | [MonoPInvokeCallback(typeof(DepthCaptureCallback))] 122 | private static void OnDepthCaptured( 123 | IntPtr pVideoData, 124 | IntPtr videoWidth, 125 | IntPtr videoHeight, 126 | IntPtr pDepthData, 127 | IntPtr depthWidth, 128 | IntPtr depthHeight, 129 | IntPtr state) 130 | { 131 | ((DepthCapture)GCHandle.FromIntPtr(state).Target).OnDepthCaptured( 132 | pVideoData, 133 | (int)videoWidth, 134 | (int)videoHeight, 135 | pDepthData, 136 | (int)depthWidth, 137 | (int)depthHeight); 138 | } 139 | 140 | protected virtual void OnDepthCaptured( 141 | IntPtr pVideoData, 142 | int videoWidth, 143 | int videoHeight, 144 | IntPtr pDepthData, 145 | int depthWidth, 146 | int depthHeight) 147 | { 148 | var handler = DepthCaptured; 149 | if (handler != null) 150 | { 151 | handler(pVideoData, videoWidth, videoHeight, pDepthData, depthWidth, depthHeight); 152 | } 153 | } 154 | 155 | public void AcquireNextFrame(DepthCaptureEventHandler action) 156 | { 157 | var ev = new AutoResetEvent(false); 158 | DepthCaptureEventHandler handler = null; 159 | handler = (pVideoData, videoWidth, videoHeight, pDepthData, depthWidth, depthHeight) => 160 | { 161 | action(pVideoData, videoWidth, videoHeight, pDepthData, depthWidth, depthHeight); 162 | DepthCaptured -= handler; 163 | ev.Set(); 164 | }; 165 | DepthCaptured += handler; 166 | ev.WaitOne(); 167 | } 168 | } 169 | -------------------------------------------------------------------------------- /DepthCapturePlugin/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 0 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 0 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 0 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 0 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 0 112 | billboardsFaceCameraPosition: 0 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 0 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 0 136 | antiAliasing: 0 137 | softParticles: 0 138 | softVegetation: 1 139 | realtimeReflectionProbes: 0 140 | billboardsFaceCameraPosition: 0 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 0 153 | shadowResolution: 0 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 0 164 | antiAliasing: 0 165 | softParticles: 0 166 | softVegetation: 1 167 | realtimeReflectionProbes: 0 168 | billboardsFaceCameraPosition: 0 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Standalone: 5 185 | Tizen: 2 186 | WebGL: 3 187 | WiiU: 5 188 | Windows Store Apps: 5 189 | XboxOne: 5 190 | iPhone: 2 191 | tvOS: 2 192 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | unity-depthcapture-ios 2 | ====================== 3 | unity-depthcapture-ios is Unity plugin to obtain depth map from iPhone camera. 4 | 5 | 6 | ## Development environment 7 | - Unity 2018.2.18f1 8 | - Xcode 10.1 or later 9 | 10 | 11 | ## Target environment 12 | - iPhone X or later (True Depth Camera) 13 | - or iPhone 7 or later (Dual Camera) 14 | 15 | 16 | ## Usage 17 | 1. Import [unity-swift](https://github.com/miyabi/unity-swift) on your Unity project 18 |
or configure Swift-ObjC bridging by yourself 19 | 2. Import [depthcapture.unitypackage](https://github.com/AtsushiSuzuki/unity-depthcapture-ios/releases) on your Unity project 20 | 3. Conifgure your Xcode project 21 | - Set Deployment Target to `11.1` or laters 22 | - Set `SWIFT_VERSION` to `4.2` or later 23 | - Add `NSCameraUsageDescription` on `Info.plist` 24 | 4. Implement camera permission request, see https://docs.unity3d.com/ScriptReference/Application.RequestUserAuthorization.html 25 | 5. Use `DepthCapture` class in your script (see [example](DepthCapturePlugin/Assets/CaptureButton.cs)) 26 | 27 | 28 | ## Example 29 | 30 | ![sample image](docs/img/sample.jpeg) 31 | 32 | ```csharp 33 | // set up capture 34 | var capture = new DepthCapture(); 35 | capture.Configure(); 36 | capture.Start(); 37 | 38 | // acquire captured frame 39 | int width = 0, height = 0; 40 | float[] pixels = null; 41 | capture.AcquireNextFrame((pVideoData, videoWidth, videoHeight, pDepthData, depthWidth, depthHeight) => 42 | { 43 | width = depthWidth; 44 | height = depthHeight; 45 | pixels = new float[width * height]; 46 | Marshal.Copy(pDepthData, pixels, 0, width * height); 47 | }); 48 | 49 | var texture = new Texture2D(width, height); 50 | for (var y = 0; y < (int)height; y++) 51 | { 52 | for (var x = 0; x < (int)width; x++) 53 | { 54 | var v = pixels[y * width + x]; 55 | Color color; 56 | if (float.IsNaN(v)) 57 | { 58 | color = new Color(0f, 1f, 0f); 59 | } 60 | else 61 | { 62 | color = new Color(v, v, v); 63 | } 64 | texture.SetPixel(x, y, color); 65 | } 66 | } 67 | 68 | quad.GetComponent().material.mainTexture = texture; 69 | texture.Apply(); 70 | 71 | // release capture 72 | capture.Stop(); 73 | capture.Dispose(); 74 | ``` 75 | 76 | 77 | ## API 78 | ### class `DepthCapture` 79 | 80 | `DepthCapture` utilizes an [AVCaptureSession](https://developer.apple.com/documentation/avfoundation/avcapturesession) and related objects. 81 | 82 | #### constructor `DepthCapture()` 83 | `DepthCapture()` constructs an instance. 84 | 85 | #### method `Configure(DeviecType[], Position, Preset)` 86 | `Configure(DeviecType[], Position, Preset)` sets up capture session. 87 | 88 | `Configure(DeviecType[], Position, Preset)` can be called only once for each instance. 89 | 90 | `Configure(DeviecType[], Position, Preset)` may throw exception if configuration failed. 91 | 92 | - Parameter `DeviceType[] deviceTypes`: 93 |
selection criteria for camera device. 94 |
see https://developer.apple.com/documentation/avfoundation/avcapturedevice/discoverysession. 95 |
defaults to `{ DeviceType.AVCaptureDeviceTypeBuiltInDualCamera, DeviceType.AVCaptureDeviceTypeBuiltInTrueDepthCamera }`. 96 | - Parameter `Position position`: 97 |
selection criteria for camera device. 98 |
see https://developer.apple.com/documentation/avfoundation/avcapturedevice/discoverysession. 99 |
defaults to `Position.Unspecified`. 100 | - Parameter `Preset preset`: 101 |
Video settings preset. 102 |
see https://developer.apple.com/documentation/avfoundation/avcapturesession/1389696-sessionpreset. 103 |
defaults to `Preset.AVCaptureSessionPreset640x480` 104 | 105 | #### method `Start()` 106 | `Start()` starts capture session. 107 | 108 | `Start()` can be called after `Configure` or `Stop`. 109 | 110 | #### method `Stop()` 111 | `Stop()` stops capture session. 112 | 113 | `Stop()` can be called after `Start`. 114 | 115 | #### method `Dispose()` 116 | `Dispose()` release all related resources. 117 | 118 | `Dispose()` can be called after `Stop` or `Configure`. 119 | 120 | #### event `DepthCaptured` 121 | `DepthCaptured` is invoked when a frame (video image + depth map) is captured. 122 | This event is invoked on non-main thread. 123 | 124 | #### method `AcquireNextFrame(DepthCaptureEventHandler action)` 125 | `AcquireNextFrame(DepthCaptureEventHandler action)` waits for next frame captured, and calls provided callback. 126 | The callback is invoked on non-main thread. 127 | 128 | #### delegate `DepthCaptureEventHandler(IntPtr pVideoData, int videoWidth, int videoHeight, IntPtr pDepthData, int depthWidth, int depthHeight)` 129 | `DepthCaptureEventHandler(IntPtr pVideoData, int videoWidth, int videoHeight, IntPtr pDepthData, int depthWidth, int depthHeight)` is used by event `DepthCaptured` or method `AcquireNextFrame(DepthCaptureEventHandler action)`. 130 | 131 | - Parameter `IntPtr pVideoData`: 132 |
Pointer to video image buffer. pixel format is 32bit BGRA. this pointer is valid only in callback. 133 | - Parameter `int videoWidth`: 134 |
image width for `pVideoData`. 135 | - Parameter `int videoHeight`: 136 |
image height for `pVideoData`. 137 | - Parameter `int pDepthData`: 138 |
Pointer to depth map buffer. pixel format is 32bit float. this pointer is valid only in callback. 139 |
Each pixel value represents distance in meter, see https://developer.apple.com/documentation/avfoundation/avdepthdata. 140 | - Parameter `int depthWidth`: 141 |
depth width for `pDepthData`. 142 | - Parameter `int depthHeight`: 143 |
depth height for `pDepthData`. 144 | 145 | 146 | ## Build unitypackage 147 | ```sh 148 | $ make 149 | 150 | # generates `depthcapture.unitypackage` 151 | # requires `make` 152 | ``` 153 | 154 | 155 | ## Build example 156 | 1. Open "DepthCapturePlugin" by Unity 157 | 2. In "Files" > "Build Settings", select "iOS" as platform 158 | 3. Generate Xcode project by "Build and Run" 159 | 4. In Xcode, open project settings for "Unity-iPhone" and select your development team 160 | 5. In Xcode, "Product" > "Run" 161 | 162 | 163 | ## LICENSE 164 | ISC 165 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Plugins/iOS/DepthCapture/DepthCapture.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import AVFoundation 3 | 4 | class DepthCaptureBase: NSObject, AVCaptureDataOutputSynchronizerDelegate { 5 | enum Error: Int, Swift.Error { 6 | case noCameraDeviceFound = 1 7 | case noCaptureConnection 8 | case noConfigurationFound 9 | case noFormatFound 10 | } 11 | 12 | let queue = DispatchQueue(label: "com.github.AtsushiSuzuki.unity-depthcapture-ios.DepthCapture.queue") 13 | let session = AVCaptureSession() 14 | let videoOutput = AVCaptureVideoDataOutput() 15 | let depthOutput = AVCaptureDepthDataOutput() 16 | var outputSynchronizer: AVCaptureDataOutputSynchronizer? 17 | 18 | func configure(deviceTypes: [AVCaptureDevice.DeviceType] = [.builtInTrueDepthCamera, .builtInDualCamera], 19 | position: AVCaptureDevice.Position = .unspecified, 20 | preset: AVCaptureSession.Preset = .vga640x480) throws { 21 | try queue.sync { 22 | let discovery = AVCaptureDevice.DiscoverySession(deviceTypes: deviceTypes, 23 | mediaType: .video, 24 | position: position) 25 | guard let device = discovery.devices.first else { 26 | throw Error.noCameraDeviceFound 27 | } 28 | 29 | session.beginConfiguration() 30 | session.sessionPreset = preset 31 | session.addInput(try AVCaptureDeviceInput(device: device)) 32 | 33 | session.addOutput(videoOutput) 34 | videoOutput.videoSettings = [kCVPixelBufferPixelFormatTypeKey as String: Int(kCVPixelFormatType_32BGRA)] 35 | 36 | session.addOutput(depthOutput) 37 | depthOutput.isFilteringEnabled = false 38 | if let connection = depthOutput.connection(with: .depthData) { 39 | connection.isEnabled = true 40 | } else { 41 | throw Error.noCaptureConnection 42 | } 43 | 44 | let format = device.activeFormat.supportedDepthDataFormats.filter { 45 | return CMFormatDescriptionGetMediaSubType($0.formatDescription) == kCVPixelFormatType_DepthFloat32 46 | }.max { first, second in 47 | return CMVideoFormatDescriptionGetDimensions(first.formatDescription).width 48 | < CMVideoFormatDescriptionGetDimensions(second.formatDescription).width 49 | } 50 | if format == nil { 51 | throw Error.noFormatFound 52 | } 53 | 54 | try device.lockForConfiguration() 55 | device.activeDepthDataFormat = format 56 | device.unlockForConfiguration() 57 | 58 | outputSynchronizer = AVCaptureDataOutputSynchronizer(dataOutputs: [videoOutput, depthOutput]) 59 | outputSynchronizer!.setDelegate(self, queue: queue) 60 | 61 | session.commitConfiguration() 62 | } 63 | } 64 | 65 | func start() { 66 | queue.sync { 67 | session.startRunning() 68 | } 69 | } 70 | 71 | func stop() { 72 | queue.sync { 73 | session.stopRunning() 74 | } 75 | } 76 | 77 | func depthCapture(videoData: CMSampleBuffer, depthData: AVDepthData, timestamp: CMTime) { 78 | } 79 | 80 | func dataOutputSynchronizer(_ synchronizer: AVCaptureDataOutputSynchronizer, didOutput synchronizedDataCollection: AVCaptureSynchronizedDataCollection) { 81 | guard let syncedVideoData = synchronizedDataCollection.synchronizedData(for: videoOutput) as? AVCaptureSynchronizedSampleBufferData, 82 | !syncedVideoData.sampleBufferWasDropped, 83 | let syncedDepthData = synchronizedDataCollection.synchronizedData(for: depthOutput) as? AVCaptureSynchronizedDepthData, 84 | !syncedDepthData.depthDataWasDropped else { 85 | return 86 | } 87 | depthCapture(videoData: syncedVideoData.sampleBuffer, depthData: syncedDepthData.depthData, timestamp: syncedVideoData.timestamp) 88 | } 89 | } 90 | 91 | typealias DepthCaptureCallback = @convention(c) (UnsafeRawPointer, Int, Int, UnsafeRawPointer, Int, Int, UnsafeRawPointer) -> Void 92 | 93 | class DepthCapture: DepthCaptureBase { 94 | let callback: DepthCaptureCallback 95 | let state: UnsafeRawPointer 96 | 97 | @objc init(callback: @escaping DepthCaptureCallback, state: UnsafeRawPointer) { 98 | self.callback = callback 99 | self.state = state 100 | } 101 | 102 | @objc func configure(deviceTypes: [String], 103 | position: Int, 104 | preset: String) -> Int { 105 | do { 106 | try super.configure(deviceTypes: deviceTypes.map { AVCaptureDevice.DeviceType(rawValue: $0) }, 107 | position: AVCaptureDevice.Position(rawValue: position)!, 108 | preset: AVCaptureSession.Preset(rawValue: preset)) 109 | } catch { 110 | return (error as NSError).code 111 | } 112 | return 0 113 | } 114 | 115 | @objc override func start() { 116 | super.start() 117 | } 118 | 119 | @objc override func stop() { 120 | super.stop() 121 | } 122 | 123 | override func depthCapture(videoData: CMSampleBuffer, depthData: AVDepthData, timestamp: CMTime) { 124 | let videoBuffer = CMSampleBufferGetImageBuffer(videoData)! 125 | let depthBuffer = depthData.depthDataMap 126 | CVPixelBufferLockBaseAddress(videoBuffer, [.readOnly]) 127 | CVPixelBufferLockBaseAddress(depthBuffer, [.readOnly]) 128 | callback(CVPixelBufferGetBaseAddress(videoBuffer)!, 129 | CVPixelBufferGetWidth(videoBuffer), 130 | CVPixelBufferGetHeight(videoBuffer), 131 | CVPixelBufferGetBaseAddress(depthBuffer)!, 132 | CVPixelBufferGetWidth(depthBuffer), 133 | CVPixelBufferGetHeight(depthBuffer), 134 | state) 135 | CVPixelBufferUnlockBaseAddress(videoBuffer, [.readOnly]) 136 | CVPixelBufferUnlockBaseAddress(depthBuffer, [.readOnly]) 137 | } 138 | } 139 | -------------------------------------------------------------------------------- /DepthCapturePlugin/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /DepthCapturePlugin/Assets/Scenes/SampleScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 1 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &519420028 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_PrefabParentObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 5 122 | m_Component: 123 | - component: {fileID: 519420032} 124 | - component: {fileID: 519420031} 125 | - component: {fileID: 519420029} 126 | m_Layer: 0 127 | m_Name: Main Camera 128 | m_TagString: MainCamera 129 | m_Icon: {fileID: 0} 130 | m_NavMeshLayer: 0 131 | m_StaticEditorFlags: 0 132 | m_IsActive: 1 133 | --- !u!81 &519420029 134 | AudioListener: 135 | m_ObjectHideFlags: 0 136 | m_PrefabParentObject: {fileID: 0} 137 | m_PrefabInternal: {fileID: 0} 138 | m_GameObject: {fileID: 519420028} 139 | m_Enabled: 1 140 | --- !u!20 &519420031 141 | Camera: 142 | m_ObjectHideFlags: 0 143 | m_PrefabParentObject: {fileID: 0} 144 | m_PrefabInternal: {fileID: 0} 145 | m_GameObject: {fileID: 519420028} 146 | m_Enabled: 1 147 | serializedVersion: 2 148 | m_ClearFlags: 2 149 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 150 | m_NormalizedViewPortRect: 151 | serializedVersion: 2 152 | x: 0 153 | y: 0 154 | width: 1 155 | height: 1 156 | near clip plane: 0.3 157 | far clip plane: 1000 158 | field of view: 60 159 | orthographic: 1 160 | orthographic size: 5 161 | m_Depth: -1 162 | m_CullingMask: 163 | serializedVersion: 2 164 | m_Bits: 4294967295 165 | m_RenderingPath: -1 166 | m_TargetTexture: {fileID: 0} 167 | m_TargetDisplay: 0 168 | m_TargetEye: 0 169 | m_HDR: 1 170 | m_AllowMSAA: 0 171 | m_AllowDynamicResolution: 0 172 | m_ForceIntoRT: 0 173 | m_OcclusionCulling: 0 174 | m_StereoConvergence: 10 175 | m_StereoSeparation: 0.022 176 | --- !u!4 &519420032 177 | Transform: 178 | m_ObjectHideFlags: 0 179 | m_PrefabParentObject: {fileID: 0} 180 | m_PrefabInternal: {fileID: 0} 181 | m_GameObject: {fileID: 519420028} 182 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 183 | m_LocalPosition: {x: 0, y: 0, z: -10} 184 | m_LocalScale: {x: 1, y: 1, z: 1} 185 | m_Children: [] 186 | m_Father: {fileID: 0} 187 | m_RootOrder: 0 188 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 189 | --- !u!1 &721343009 190 | GameObject: 191 | m_ObjectHideFlags: 0 192 | m_PrefabParentObject: {fileID: 0} 193 | m_PrefabInternal: {fileID: 0} 194 | serializedVersion: 5 195 | m_Component: 196 | - component: {fileID: 721343010} 197 | - component: {fileID: 721343012} 198 | - component: {fileID: 721343011} 199 | m_Layer: 5 200 | m_Name: Text 201 | m_TagString: Untagged 202 | m_Icon: {fileID: 0} 203 | m_NavMeshLayer: 0 204 | m_StaticEditorFlags: 0 205 | m_IsActive: 1 206 | --- !u!224 &721343010 207 | RectTransform: 208 | m_ObjectHideFlags: 0 209 | m_PrefabParentObject: {fileID: 0} 210 | m_PrefabInternal: {fileID: 0} 211 | m_GameObject: {fileID: 721343009} 212 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 213 | m_LocalPosition: {x: 0, y: 0, z: 0} 214 | m_LocalScale: {x: 1, y: 1, z: 1} 215 | m_Children: [] 216 | m_Father: {fileID: 1312361354} 217 | m_RootOrder: 0 218 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 219 | m_AnchorMin: {x: 0, y: 0} 220 | m_AnchorMax: {x: 1, y: 1} 221 | m_AnchoredPosition: {x: 0, y: 0} 222 | m_SizeDelta: {x: 0, y: 0} 223 | m_Pivot: {x: 0.5, y: 0.5} 224 | --- !u!114 &721343011 225 | MonoBehaviour: 226 | m_ObjectHideFlags: 0 227 | m_PrefabParentObject: {fileID: 0} 228 | m_PrefabInternal: {fileID: 0} 229 | m_GameObject: {fileID: 721343009} 230 | m_Enabled: 1 231 | m_EditorHideFlags: 0 232 | m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} 233 | m_Name: 234 | m_EditorClassIdentifier: 235 | m_Material: {fileID: 0} 236 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 237 | m_RaycastTarget: 1 238 | m_OnCullStateChanged: 239 | m_PersistentCalls: 240 | m_Calls: [] 241 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 242 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 243 | m_FontData: 244 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 245 | m_FontSize: 14 246 | m_FontStyle: 0 247 | m_BestFit: 0 248 | m_MinSize: 10 249 | m_MaxSize: 40 250 | m_Alignment: 4 251 | m_AlignByGeometry: 0 252 | m_RichText: 1 253 | m_HorizontalOverflow: 0 254 | m_VerticalOverflow: 0 255 | m_LineSpacing: 1 256 | m_Text: Capture 257 | --- !u!222 &721343012 258 | CanvasRenderer: 259 | m_ObjectHideFlags: 0 260 | m_PrefabParentObject: {fileID: 0} 261 | m_PrefabInternal: {fileID: 0} 262 | m_GameObject: {fileID: 721343009} 263 | --- !u!1 &1177040075 264 | GameObject: 265 | m_ObjectHideFlags: 0 266 | m_PrefabParentObject: {fileID: 0} 267 | m_PrefabInternal: {fileID: 0} 268 | serializedVersion: 5 269 | m_Component: 270 | - component: {fileID: 1177040079} 271 | - component: {fileID: 1177040078} 272 | - component: {fileID: 1177040077} 273 | - component: {fileID: 1177040076} 274 | m_Layer: 5 275 | m_Name: Canvas 276 | m_TagString: Untagged 277 | m_Icon: {fileID: 0} 278 | m_NavMeshLayer: 0 279 | m_StaticEditorFlags: 0 280 | m_IsActive: 1 281 | --- !u!114 &1177040076 282 | MonoBehaviour: 283 | m_ObjectHideFlags: 0 284 | m_PrefabParentObject: {fileID: 0} 285 | m_PrefabInternal: {fileID: 0} 286 | m_GameObject: {fileID: 1177040075} 287 | m_Enabled: 1 288 | m_EditorHideFlags: 0 289 | m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} 290 | m_Name: 291 | m_EditorClassIdentifier: 292 | m_IgnoreReversedGraphics: 1 293 | m_BlockingObjects: 0 294 | m_BlockingMask: 295 | serializedVersion: 2 296 | m_Bits: 4294967295 297 | --- !u!114 &1177040077 298 | MonoBehaviour: 299 | m_ObjectHideFlags: 0 300 | m_PrefabParentObject: {fileID: 0} 301 | m_PrefabInternal: {fileID: 0} 302 | m_GameObject: {fileID: 1177040075} 303 | m_Enabled: 1 304 | m_EditorHideFlags: 0 305 | m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} 306 | m_Name: 307 | m_EditorClassIdentifier: 308 | m_UiScaleMode: 0 309 | m_ReferencePixelsPerUnit: 100 310 | m_ScaleFactor: 1 311 | m_ReferenceResolution: {x: 800, y: 600} 312 | m_ScreenMatchMode: 0 313 | m_MatchWidthOrHeight: 0 314 | m_PhysicalUnit: 3 315 | m_FallbackScreenDPI: 96 316 | m_DefaultSpriteDPI: 96 317 | m_DynamicPixelsPerUnit: 1 318 | --- !u!223 &1177040078 319 | Canvas: 320 | m_ObjectHideFlags: 0 321 | m_PrefabParentObject: {fileID: 0} 322 | m_PrefabInternal: {fileID: 0} 323 | m_GameObject: {fileID: 1177040075} 324 | m_Enabled: 1 325 | serializedVersion: 3 326 | m_RenderMode: 0 327 | m_Camera: {fileID: 0} 328 | m_PlaneDistance: 100 329 | m_PixelPerfect: 0 330 | m_ReceivesEvents: 1 331 | m_OverrideSorting: 0 332 | m_OverridePixelPerfect: 0 333 | m_SortingBucketNormalizedSize: 0 334 | m_AdditionalShaderChannelsFlag: 0 335 | m_SortingLayerID: 0 336 | m_SortingOrder: 0 337 | m_TargetDisplay: 0 338 | --- !u!224 &1177040079 339 | RectTransform: 340 | m_ObjectHideFlags: 0 341 | m_PrefabParentObject: {fileID: 0} 342 | m_PrefabInternal: {fileID: 0} 343 | m_GameObject: {fileID: 1177040075} 344 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 345 | m_LocalPosition: {x: 0, y: 0, z: 0} 346 | m_LocalScale: {x: 0, y: 0, z: 0} 347 | m_Children: 348 | - {fileID: 1312361354} 349 | m_Father: {fileID: 0} 350 | m_RootOrder: 2 351 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 352 | m_AnchorMin: {x: 0, y: 0} 353 | m_AnchorMax: {x: 0, y: 0} 354 | m_AnchoredPosition: {x: 0, y: 0} 355 | m_SizeDelta: {x: 0, y: 0} 356 | m_Pivot: {x: 0, y: 0} 357 | --- !u!1 &1312361353 358 | GameObject: 359 | m_ObjectHideFlags: 0 360 | m_PrefabParentObject: {fileID: 0} 361 | m_PrefabInternal: {fileID: 0} 362 | serializedVersion: 5 363 | m_Component: 364 | - component: {fileID: 1312361354} 365 | - component: {fileID: 1312361357} 366 | - component: {fileID: 1312361356} 367 | - component: {fileID: 1312361355} 368 | - component: {fileID: 1312361358} 369 | m_Layer: 5 370 | m_Name: Button 371 | m_TagString: Untagged 372 | m_Icon: {fileID: 0} 373 | m_NavMeshLayer: 0 374 | m_StaticEditorFlags: 0 375 | m_IsActive: 1 376 | --- !u!224 &1312361354 377 | RectTransform: 378 | m_ObjectHideFlags: 0 379 | m_PrefabParentObject: {fileID: 0} 380 | m_PrefabInternal: {fileID: 0} 381 | m_GameObject: {fileID: 1312361353} 382 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 383 | m_LocalPosition: {x: 0, y: 0, z: 0} 384 | m_LocalScale: {x: 4, y: 4, z: 1} 385 | m_Children: 386 | - {fileID: 721343010} 387 | m_Father: {fileID: 1177040079} 388 | m_RootOrder: 0 389 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 390 | m_AnchorMin: {x: 0.5, y: 0.5} 391 | m_AnchorMax: {x: 0.5, y: 0.5} 392 | m_AnchoredPosition: {x: 0, y: -600} 393 | m_SizeDelta: {x: 160, y: 30} 394 | m_Pivot: {x: 0.5, y: 0.5} 395 | --- !u!114 &1312361355 396 | MonoBehaviour: 397 | m_ObjectHideFlags: 0 398 | m_PrefabParentObject: {fileID: 0} 399 | m_PrefabInternal: {fileID: 0} 400 | m_GameObject: {fileID: 1312361353} 401 | m_Enabled: 1 402 | m_EditorHideFlags: 0 403 | m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} 404 | m_Name: 405 | m_EditorClassIdentifier: 406 | m_Navigation: 407 | m_Mode: 3 408 | m_SelectOnUp: {fileID: 0} 409 | m_SelectOnDown: {fileID: 0} 410 | m_SelectOnLeft: {fileID: 0} 411 | m_SelectOnRight: {fileID: 0} 412 | m_Transition: 1 413 | m_Colors: 414 | m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 415 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 416 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} 417 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} 418 | m_ColorMultiplier: 1 419 | m_FadeDuration: 0.1 420 | m_SpriteState: 421 | m_HighlightedSprite: {fileID: 0} 422 | m_PressedSprite: {fileID: 0} 423 | m_DisabledSprite: {fileID: 0} 424 | m_AnimationTriggers: 425 | m_NormalTrigger: Normal 426 | m_HighlightedTrigger: Highlighted 427 | m_PressedTrigger: Pressed 428 | m_DisabledTrigger: Disabled 429 | m_Interactable: 1 430 | m_TargetGraphic: {fileID: 1312361356} 431 | m_OnClick: 432 | m_PersistentCalls: 433 | m_Calls: 434 | - m_Target: {fileID: 1312361358} 435 | m_MethodName: OnClick 436 | m_Mode: 1 437 | m_Arguments: 438 | m_ObjectArgument: {fileID: 0} 439 | m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine 440 | m_IntArgument: 0 441 | m_FloatArgument: 0 442 | m_StringArgument: OnClick 443 | m_BoolArgument: 0 444 | m_CallState: 2 445 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 446 | Culture=neutral, PublicKeyToken=null 447 | --- !u!114 &1312361356 448 | MonoBehaviour: 449 | m_ObjectHideFlags: 0 450 | m_PrefabParentObject: {fileID: 0} 451 | m_PrefabInternal: {fileID: 0} 452 | m_GameObject: {fileID: 1312361353} 453 | m_Enabled: 1 454 | m_EditorHideFlags: 0 455 | m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} 456 | m_Name: 457 | m_EditorClassIdentifier: 458 | m_Material: {fileID: 0} 459 | m_Color: {r: 1, g: 1, b: 1, a: 1} 460 | m_RaycastTarget: 1 461 | m_OnCullStateChanged: 462 | m_PersistentCalls: 463 | m_Calls: [] 464 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 465 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 466 | m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} 467 | m_Type: 1 468 | m_PreserveAspect: 0 469 | m_FillCenter: 1 470 | m_FillMethod: 4 471 | m_FillAmount: 1 472 | m_FillClockwise: 1 473 | m_FillOrigin: 0 474 | --- !u!222 &1312361357 475 | CanvasRenderer: 476 | m_ObjectHideFlags: 0 477 | m_PrefabParentObject: {fileID: 0} 478 | m_PrefabInternal: {fileID: 0} 479 | m_GameObject: {fileID: 1312361353} 480 | --- !u!114 &1312361358 481 | MonoBehaviour: 482 | m_ObjectHideFlags: 0 483 | m_PrefabParentObject: {fileID: 0} 484 | m_PrefabInternal: {fileID: 0} 485 | m_GameObject: {fileID: 1312361353} 486 | m_Enabled: 1 487 | m_EditorHideFlags: 0 488 | m_Script: {fileID: 11500000, guid: 368a9f572d6ab419094cf599c49f1ccb, type: 3} 489 | m_Name: 490 | m_EditorClassIdentifier: 491 | quad: {fileID: 1934835322} 492 | --- !u!1 &1372427103 493 | GameObject: 494 | m_ObjectHideFlags: 0 495 | m_PrefabParentObject: {fileID: 0} 496 | m_PrefabInternal: {fileID: 0} 497 | serializedVersion: 5 498 | m_Component: 499 | - component: {fileID: 1372427106} 500 | - component: {fileID: 1372427105} 501 | - component: {fileID: 1372427104} 502 | m_Layer: 0 503 | m_Name: EventSystem 504 | m_TagString: Untagged 505 | m_Icon: {fileID: 0} 506 | m_NavMeshLayer: 0 507 | m_StaticEditorFlags: 0 508 | m_IsActive: 1 509 | --- !u!114 &1372427104 510 | MonoBehaviour: 511 | m_ObjectHideFlags: 0 512 | m_PrefabParentObject: {fileID: 0} 513 | m_PrefabInternal: {fileID: 0} 514 | m_GameObject: {fileID: 1372427103} 515 | m_Enabled: 1 516 | m_EditorHideFlags: 0 517 | m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} 518 | m_Name: 519 | m_EditorClassIdentifier: 520 | m_HorizontalAxis: Horizontal 521 | m_VerticalAxis: Vertical 522 | m_SubmitButton: Submit 523 | m_CancelButton: Cancel 524 | m_InputActionsPerSecond: 10 525 | m_RepeatDelay: 0.5 526 | m_ForceModuleActive: 0 527 | --- !u!114 &1372427105 528 | MonoBehaviour: 529 | m_ObjectHideFlags: 0 530 | m_PrefabParentObject: {fileID: 0} 531 | m_PrefabInternal: {fileID: 0} 532 | m_GameObject: {fileID: 1372427103} 533 | m_Enabled: 1 534 | m_EditorHideFlags: 0 535 | m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} 536 | m_Name: 537 | m_EditorClassIdentifier: 538 | m_FirstSelected: {fileID: 0} 539 | m_sendNavigationEvents: 1 540 | m_DragThreshold: 10 541 | --- !u!4 &1372427106 542 | Transform: 543 | m_ObjectHideFlags: 0 544 | m_PrefabParentObject: {fileID: 0} 545 | m_PrefabInternal: {fileID: 0} 546 | m_GameObject: {fileID: 1372427103} 547 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 548 | m_LocalPosition: {x: 0, y: 0, z: 0} 549 | m_LocalScale: {x: 1, y: 1, z: 1} 550 | m_Children: [] 551 | m_Father: {fileID: 0} 552 | m_RootOrder: 3 553 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 554 | --- !u!1 &1934835322 555 | GameObject: 556 | m_ObjectHideFlags: 0 557 | m_PrefabParentObject: {fileID: 0} 558 | m_PrefabInternal: {fileID: 0} 559 | serializedVersion: 5 560 | m_Component: 561 | - component: {fileID: 1934835326} 562 | - component: {fileID: 1934835325} 563 | - component: {fileID: 1934835324} 564 | - component: {fileID: 1934835323} 565 | m_Layer: 0 566 | m_Name: Quad 567 | m_TagString: Untagged 568 | m_Icon: {fileID: 0} 569 | m_NavMeshLayer: 0 570 | m_StaticEditorFlags: 0 571 | m_IsActive: 1 572 | --- !u!64 &1934835323 573 | MeshCollider: 574 | m_ObjectHideFlags: 0 575 | m_PrefabParentObject: {fileID: 0} 576 | m_PrefabInternal: {fileID: 0} 577 | m_GameObject: {fileID: 1934835322} 578 | m_Material: {fileID: 0} 579 | m_IsTrigger: 0 580 | m_Enabled: 1 581 | serializedVersion: 3 582 | m_Convex: 0 583 | m_CookingOptions: 14 584 | m_SkinWidth: 0.01 585 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 586 | --- !u!23 &1934835324 587 | MeshRenderer: 588 | m_ObjectHideFlags: 0 589 | m_PrefabParentObject: {fileID: 0} 590 | m_PrefabInternal: {fileID: 0} 591 | m_GameObject: {fileID: 1934835322} 592 | m_Enabled: 1 593 | m_CastShadows: 1 594 | m_ReceiveShadows: 1 595 | m_DynamicOccludee: 1 596 | m_MotionVectors: 1 597 | m_LightProbeUsage: 1 598 | m_ReflectionProbeUsage: 1 599 | m_Materials: 600 | - {fileID: 2100000, guid: 88bd2f773ed2a4a648986277eb2afc08, type: 2} 601 | m_StaticBatchInfo: 602 | firstSubMesh: 0 603 | subMeshCount: 0 604 | m_StaticBatchRoot: {fileID: 0} 605 | m_ProbeAnchor: {fileID: 0} 606 | m_LightProbeVolumeOverride: {fileID: 0} 607 | m_ScaleInLightmap: 1 608 | m_PreserveUVs: 0 609 | m_IgnoreNormalsForChartDetection: 0 610 | m_ImportantGI: 0 611 | m_StitchLightmapSeams: 0 612 | m_SelectedEditorRenderState: 3 613 | m_MinimumChartSize: 4 614 | m_AutoUVMaxDistance: 0.5 615 | m_AutoUVMaxAngle: 89 616 | m_LightmapParameters: {fileID: 0} 617 | m_SortingLayerID: 0 618 | m_SortingLayer: 0 619 | m_SortingOrder: 0 620 | --- !u!33 &1934835325 621 | MeshFilter: 622 | m_ObjectHideFlags: 0 623 | m_PrefabParentObject: {fileID: 0} 624 | m_PrefabInternal: {fileID: 0} 625 | m_GameObject: {fileID: 1934835322} 626 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 627 | --- !u!4 &1934835326 628 | Transform: 629 | m_ObjectHideFlags: 0 630 | m_PrefabParentObject: {fileID: 0} 631 | m_PrefabInternal: {fileID: 0} 632 | m_GameObject: {fileID: 1934835322} 633 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 634 | m_LocalPosition: {x: 0, y: 0, z: 0} 635 | m_LocalScale: {x: 4, y: 4, z: 1} 636 | m_Children: [] 637 | m_Father: {fileID: 0} 638 | m_RootOrder: 1 639 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 640 | -------------------------------------------------------------------------------- /DepthCapturePlugin/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 14 7 | productGUID: e7e37da5eadd4482ea8a1891e60f5ff2 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | defaultScreenOrientation: 4 11 | targetDevice: 2 12 | useOnDemandResources: 0 13 | accelerometerFrequency: 60 14 | companyName: suzuki_ds 15 | productName: DepthCapturePlugin 16 | defaultCursor: {fileID: 0} 17 | cursorHotspot: {x: 0, y: 0} 18 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 19 | m_ShowUnitySplashScreen: 1 20 | m_ShowUnitySplashLogo: 1 21 | m_SplashScreenOverlayOpacity: 1 22 | m_SplashScreenAnimation: 1 23 | m_SplashScreenLogoStyle: 1 24 | m_SplashScreenDrawMode: 0 25 | m_SplashScreenBackgroundAnimationZoom: 1 26 | m_SplashScreenLogoAnimationZoom: 1 27 | m_SplashScreenBackgroundLandscapeAspect: 1 28 | m_SplashScreenBackgroundPortraitAspect: 1 29 | m_SplashScreenBackgroundLandscapeUvs: 30 | serializedVersion: 2 31 | x: 0 32 | y: 0 33 | width: 1 34 | height: 1 35 | m_SplashScreenBackgroundPortraitUvs: 36 | serializedVersion: 2 37 | x: 0 38 | y: 0 39 | width: 1 40 | height: 1 41 | m_SplashScreenLogos: [] 42 | m_VirtualRealitySplashScreen: {fileID: 0} 43 | m_HolographicTrackingLossScreen: {fileID: 0} 44 | defaultScreenWidth: 1024 45 | defaultScreenHeight: 768 46 | defaultScreenWidthWeb: 960 47 | defaultScreenHeightWeb: 600 48 | m_StereoRenderingPath: 0 49 | m_ActiveColorSpace: 0 50 | m_MTRendering: 1 51 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 52 | iosShowActivityIndicatorOnLoading: -1 53 | androidShowActivityIndicatorOnLoading: -1 54 | tizenShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidBlitType: 0 67 | defaultIsFullScreen: 1 68 | defaultIsNativeResolution: 1 69 | macRetinaSupport: 1 70 | runInBackground: 1 71 | captureSingleScreen: 0 72 | muteOtherAudioSources: 0 73 | Prepare IOS For Recording: 0 74 | Force IOS Speakers When Recording: 0 75 | deferSystemGesturesMode: 0 76 | hideHomeButton: 0 77 | submitAnalytics: 1 78 | usePlayerLog: 1 79 | bakeCollisionMeshes: 0 80 | forceSingleInstance: 0 81 | resizableWindow: 0 82 | useMacAppStoreValidation: 0 83 | macAppStoreCategory: public.app-category.games 84 | gpuSkinning: 0 85 | graphicsJobs: 0 86 | xboxPIXTextureCapture: 0 87 | xboxEnableAvatar: 0 88 | xboxEnableKinect: 0 89 | xboxEnableKinectAutoTracking: 0 90 | xboxEnableFitness: 0 91 | visibleInBackground: 1 92 | allowFullscreenSwitch: 1 93 | graphicsJobMode: 0 94 | macFullscreenMode: 2 95 | d3d11FullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | n3dsDisableStereoscopicView: 0 102 | n3dsEnableSharedListOpt: 1 103 | n3dsEnableVSync: 0 104 | xboxOneResolution: 0 105 | xboxOneSResolution: 0 106 | xboxOneXResolution: 3 107 | xboxOneMonoLoggingLevel: 0 108 | xboxOneLoggingLevel: 1 109 | xboxOneDisableEsram: 0 110 | xboxOnePresentImmediateThreshold: 0 111 | videoMemoryForVertexBuffers: 0 112 | psp2PowerMode: 0 113 | psp2AcquireBGM: 1 114 | wiiUTVResolution: 0 115 | wiiUGamePadMSAA: 1 116 | wiiUSupportsNunchuk: 0 117 | wiiUSupportsClassicController: 0 118 | wiiUSupportsBalanceBoard: 0 119 | wiiUSupportsMotionPlus: 0 120 | wiiUSupportsProController: 0 121 | wiiUAllowScreenCapture: 1 122 | wiiUControllerCount: 0 123 | m_SupportedAspectRatios: 124 | 4:3: 1 125 | 5:4: 1 126 | 16:10: 1 127 | 16:9: 1 128 | Others: 1 129 | bundleVersion: 0.1 130 | preloadedAssets: [] 131 | metroInputSource: 0 132 | wsaTransparentSwapchain: 0 133 | m_HolographicPauseOnTrackingLoss: 1 134 | xboxOneDisableKinectGpuReservation: 0 135 | xboxOneEnable7thCore: 0 136 | vrSettings: 137 | cardboard: 138 | depthFormat: 0 139 | enableTransitionView: 0 140 | daydream: 141 | depthFormat: 0 142 | useSustainedPerformanceMode: 0 143 | enableVideoLayer: 0 144 | useProtectedVideoMemory: 0 145 | minimumSupportedHeadTracking: 0 146 | maximumSupportedHeadTracking: 1 147 | hololens: 148 | depthFormat: 1 149 | depthBufferSharingEnabled: 0 150 | oculus: 151 | sharedDepthBuffer: 0 152 | dashSupport: 0 153 | protectGraphicsMemory: 0 154 | useHDRDisplay: 0 155 | m_ColorGamuts: 00000000 156 | targetPixelDensity: 30 157 | resolutionScalingMode: 0 158 | androidSupportedAspectRatio: 1 159 | androidMaxAspectRatio: 2.1 160 | applicationIdentifier: 161 | Standalone: com.Company.ProductName 162 | iOS: com.github.AtsushiSuzuki.unity-depthcapture-ios.DepthCapturePlugin 163 | buildNumber: {} 164 | AndroidBundleVersionCode: 1 165 | AndroidMinSdkVersion: 16 166 | AndroidTargetSdkVersion: 0 167 | AndroidPreferredInstallLocation: 1 168 | aotOptions: 169 | stripEngineCode: 1 170 | iPhoneStrippingLevel: 0 171 | iPhoneScriptCallOptimization: 0 172 | ForceInternetPermission: 0 173 | ForceSDCardPermission: 0 174 | CreateWallpaper: 0 175 | APKExpansionFiles: 0 176 | keepLoadedShadersAlive: 0 177 | StripUnusedMeshComponents: 1 178 | VertexChannelCompressionMask: 179 | serializedVersion: 2 180 | m_Bits: 4294901998 181 | iPhoneSdkVersion: 988 182 | iOSTargetOSVersionString: 11.1 183 | tvOSSdkVersion: 0 184 | tvOSRequireExtendedGameController: 0 185 | tvOSTargetOSVersionString: 9.0 186 | uIPrerenderedIcon: 0 187 | uIRequiresPersistentWiFi: 0 188 | uIRequiresFullScreen: 1 189 | uIStatusBarHidden: 1 190 | uIExitOnSuspend: 0 191 | uIStatusBarStyle: 0 192 | iPhoneSplashScreen: {fileID: 0} 193 | iPhoneHighResSplashScreen: {fileID: 0} 194 | iPhoneTallHighResSplashScreen: {fileID: 0} 195 | iPhone47inSplashScreen: {fileID: 0} 196 | iPhone55inPortraitSplashScreen: {fileID: 0} 197 | iPhone55inLandscapeSplashScreen: {fileID: 0} 198 | iPhone58inPortraitSplashScreen: {fileID: 0} 199 | iPhone58inLandscapeSplashScreen: {fileID: 0} 200 | iPadPortraitSplashScreen: {fileID: 0} 201 | iPadHighResPortraitSplashScreen: {fileID: 0} 202 | iPadLandscapeSplashScreen: {fileID: 0} 203 | iPadHighResLandscapeSplashScreen: {fileID: 0} 204 | appleTVSplashScreen: {fileID: 0} 205 | appleTVSplashScreen2x: {fileID: 0} 206 | tvOSSmallIconLayers: [] 207 | tvOSSmallIconLayers2x: [] 208 | tvOSLargeIconLayers: [] 209 | tvOSTopShelfImageLayers: [] 210 | tvOSTopShelfImageLayers2x: [] 211 | tvOSTopShelfImageWideLayers: [] 212 | tvOSTopShelfImageWideLayers2x: [] 213 | iOSLaunchScreenType: 0 214 | iOSLaunchScreenPortrait: {fileID: 0} 215 | iOSLaunchScreenLandscape: {fileID: 0} 216 | iOSLaunchScreenBackgroundColor: 217 | serializedVersion: 2 218 | rgba: 0 219 | iOSLaunchScreenFillPct: 100 220 | iOSLaunchScreenSize: 100 221 | iOSLaunchScreenCustomXibPath: 222 | iOSLaunchScreeniPadType: 0 223 | iOSLaunchScreeniPadImage: {fileID: 0} 224 | iOSLaunchScreeniPadBackgroundColor: 225 | serializedVersion: 2 226 | rgba: 0 227 | iOSLaunchScreeniPadFillPct: 100 228 | iOSLaunchScreeniPadSize: 100 229 | iOSLaunchScreeniPadCustomXibPath: 230 | iOSUseLaunchScreenStoryboard: 0 231 | iOSLaunchScreenCustomStoryboardPath: 232 | iOSDeviceRequirements: [] 233 | iOSURLSchemes: [] 234 | iOSBackgroundModes: 0 235 | iOSMetalForceHardShadows: 0 236 | metalEditorSupport: 1 237 | metalAPIValidation: 1 238 | iOSRenderExtraFrameOnPause: 0 239 | appleDeveloperTeamID: 240 | iOSManualSigningProvisioningProfileID: 241 | tvOSManualSigningProvisioningProfileID: 242 | appleEnableAutomaticSigning: 0 243 | clonedFromGUID: 5f34be1353de5cf4398729fda238591b 244 | AndroidTargetDevice: 0 245 | AndroidSplashScreenScale: 0 246 | androidSplashScreen: {fileID: 0} 247 | AndroidKeystoreName: 248 | AndroidKeyaliasName: 249 | AndroidTVCompatibility: 1 250 | AndroidIsGame: 1 251 | AndroidEnableTango: 0 252 | androidEnableBanner: 1 253 | androidUseLowAccuracyLocation: 0 254 | m_AndroidBanners: 255 | - width: 320 256 | height: 180 257 | banner: {fileID: 0} 258 | androidGamepadSupportLevel: 0 259 | resolutionDialogBanner: {fileID: 0} 260 | m_BuildTargetIcons: [] 261 | m_BuildTargetBatching: [] 262 | m_BuildTargetGraphicsAPIs: [] 263 | m_BuildTargetVRSettings: [] 264 | m_BuildTargetEnableVuforiaSettings: [] 265 | openGLRequireES31: 0 266 | openGLRequireES31AEP: 0 267 | m_TemplateCustomTags: {} 268 | mobileMTRendering: 269 | Android: 1 270 | iPhone: 1 271 | tvOS: 1 272 | m_BuildTargetGroupLightmapEncodingQuality: [] 273 | wiiUTitleID: 0005000011000000 274 | wiiUGroupID: 00010000 275 | wiiUCommonSaveSize: 4096 276 | wiiUAccountSaveSize: 2048 277 | wiiUOlvAccessKey: 0 278 | wiiUTinCode: 0 279 | wiiUJoinGameId: 0 280 | wiiUJoinGameModeMask: 0000000000000000 281 | wiiUCommonBossSize: 0 282 | wiiUAccountBossSize: 0 283 | wiiUAddOnUniqueIDs: [] 284 | wiiUMainThreadStackSize: 3072 285 | wiiULoaderThreadStackSize: 1024 286 | wiiUSystemHeapSize: 128 287 | wiiUTVStartupScreen: {fileID: 0} 288 | wiiUGamePadStartupScreen: {fileID: 0} 289 | wiiUDrcBufferDisabled: 0 290 | wiiUProfilerLibPath: 291 | playModeTestRunnerEnabled: 0 292 | actionOnDotNetUnhandledException: 1 293 | enableInternalProfiler: 0 294 | logObjCUncaughtExceptions: 1 295 | enableCrashReportAPI: 0 296 | cameraUsageDescription: 297 | locationUsageDescription: 298 | microphoneUsageDescription: 299 | switchNetLibKey: 300 | switchSocketMemoryPoolSize: 6144 301 | switchSocketAllocatorPoolSize: 128 302 | switchSocketConcurrencyLimit: 14 303 | switchScreenResolutionBehavior: 2 304 | switchUseCPUProfiler: 0 305 | switchApplicationID: 0x01004b9000490000 306 | switchNSODependencies: 307 | switchTitleNames_0: 308 | switchTitleNames_1: 309 | switchTitleNames_2: 310 | switchTitleNames_3: 311 | switchTitleNames_4: 312 | switchTitleNames_5: 313 | switchTitleNames_6: 314 | switchTitleNames_7: 315 | switchTitleNames_8: 316 | switchTitleNames_9: 317 | switchTitleNames_10: 318 | switchTitleNames_11: 319 | switchTitleNames_12: 320 | switchTitleNames_13: 321 | switchTitleNames_14: 322 | switchPublisherNames_0: 323 | switchPublisherNames_1: 324 | switchPublisherNames_2: 325 | switchPublisherNames_3: 326 | switchPublisherNames_4: 327 | switchPublisherNames_5: 328 | switchPublisherNames_6: 329 | switchPublisherNames_7: 330 | switchPublisherNames_8: 331 | switchPublisherNames_9: 332 | switchPublisherNames_10: 333 | switchPublisherNames_11: 334 | switchPublisherNames_12: 335 | switchPublisherNames_13: 336 | switchPublisherNames_14: 337 | switchIcons_0: {fileID: 0} 338 | switchIcons_1: {fileID: 0} 339 | switchIcons_2: {fileID: 0} 340 | switchIcons_3: {fileID: 0} 341 | switchIcons_4: {fileID: 0} 342 | switchIcons_5: {fileID: 0} 343 | switchIcons_6: {fileID: 0} 344 | switchIcons_7: {fileID: 0} 345 | switchIcons_8: {fileID: 0} 346 | switchIcons_9: {fileID: 0} 347 | switchIcons_10: {fileID: 0} 348 | switchIcons_11: {fileID: 0} 349 | switchIcons_12: {fileID: 0} 350 | switchIcons_13: {fileID: 0} 351 | switchIcons_14: {fileID: 0} 352 | switchSmallIcons_0: {fileID: 0} 353 | switchSmallIcons_1: {fileID: 0} 354 | switchSmallIcons_2: {fileID: 0} 355 | switchSmallIcons_3: {fileID: 0} 356 | switchSmallIcons_4: {fileID: 0} 357 | switchSmallIcons_5: {fileID: 0} 358 | switchSmallIcons_6: {fileID: 0} 359 | switchSmallIcons_7: {fileID: 0} 360 | switchSmallIcons_8: {fileID: 0} 361 | switchSmallIcons_9: {fileID: 0} 362 | switchSmallIcons_10: {fileID: 0} 363 | switchSmallIcons_11: {fileID: 0} 364 | switchSmallIcons_12: {fileID: 0} 365 | switchSmallIcons_13: {fileID: 0} 366 | switchSmallIcons_14: {fileID: 0} 367 | switchManualHTML: 368 | switchAccessibleURLs: 369 | switchLegalInformation: 370 | switchMainThreadStackSize: 1048576 371 | switchPresenceGroupId: 372 | switchLogoHandling: 0 373 | switchReleaseVersion: 0 374 | switchDisplayVersion: 1.0.0 375 | switchStartupUserAccount: 0 376 | switchTouchScreenUsage: 0 377 | switchSupportedLanguagesMask: 0 378 | switchLogoType: 0 379 | switchApplicationErrorCodeCategory: 380 | switchUserAccountSaveDataSize: 0 381 | switchUserAccountSaveDataJournalSize: 0 382 | switchApplicationAttribute: 0 383 | switchCardSpecSize: -1 384 | switchCardSpecClock: -1 385 | switchRatingsMask: 0 386 | switchRatingsInt_0: 0 387 | switchRatingsInt_1: 0 388 | switchRatingsInt_2: 0 389 | switchRatingsInt_3: 0 390 | switchRatingsInt_4: 0 391 | switchRatingsInt_5: 0 392 | switchRatingsInt_6: 0 393 | switchRatingsInt_7: 0 394 | switchRatingsInt_8: 0 395 | switchRatingsInt_9: 0 396 | switchRatingsInt_10: 0 397 | switchRatingsInt_11: 0 398 | switchLocalCommunicationIds_0: 399 | switchLocalCommunicationIds_1: 400 | switchLocalCommunicationIds_2: 401 | switchLocalCommunicationIds_3: 402 | switchLocalCommunicationIds_4: 403 | switchLocalCommunicationIds_5: 404 | switchLocalCommunicationIds_6: 405 | switchLocalCommunicationIds_7: 406 | switchParentalControl: 0 407 | switchAllowsScreenshot: 1 408 | switchAllowsVideoCapturing: 1 409 | switchAllowsRuntimeAddOnContentInstall: 0 410 | switchDataLossConfirmation: 0 411 | switchSupportedNpadStyles: 3 412 | switchSocketConfigEnabled: 0 413 | switchTcpInitialSendBufferSize: 32 414 | switchTcpInitialReceiveBufferSize: 64 415 | switchTcpAutoSendBufferSizeMax: 256 416 | switchTcpAutoReceiveBufferSizeMax: 256 417 | switchUdpSendBufferSize: 9 418 | switchUdpReceiveBufferSize: 42 419 | switchSocketBufferEfficiency: 4 420 | switchSocketInitializeEnabled: 1 421 | switchNetworkInterfaceManagerInitializeEnabled: 1 422 | switchPlayerConnectionEnabled: 1 423 | ps4NPAgeRating: 12 424 | ps4NPTitleSecret: 425 | ps4NPTrophyPackPath: 426 | ps4ParentalLevel: 11 427 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 428 | ps4Category: 0 429 | ps4MasterVersion: 01.00 430 | ps4AppVersion: 01.00 431 | ps4AppType: 0 432 | ps4ParamSfxPath: 433 | ps4VideoOutPixelFormat: 0 434 | ps4VideoOutInitialWidth: 1920 435 | ps4VideoOutBaseModeInitialWidth: 1920 436 | ps4VideoOutReprojectionRate: 60 437 | ps4PronunciationXMLPath: 438 | ps4PronunciationSIGPath: 439 | ps4BackgroundImagePath: 440 | ps4StartupImagePath: 441 | ps4StartupImagesFolder: 442 | ps4IconImagesFolder: 443 | ps4SaveDataImagePath: 444 | ps4SdkOverride: 445 | ps4BGMPath: 446 | ps4ShareFilePath: 447 | ps4ShareOverlayImagePath: 448 | ps4PrivacyGuardImagePath: 449 | ps4NPtitleDatPath: 450 | ps4RemotePlayKeyAssignment: -1 451 | ps4RemotePlayKeyMappingDir: 452 | ps4PlayTogetherPlayerCount: 0 453 | ps4EnterButtonAssignment: 1 454 | ps4ApplicationParam1: 0 455 | ps4ApplicationParam2: 0 456 | ps4ApplicationParam3: 0 457 | ps4ApplicationParam4: 0 458 | ps4DownloadDataSize: 0 459 | ps4GarlicHeapSize: 2048 460 | ps4ProGarlicHeapSize: 2560 461 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 462 | ps4pnSessions: 1 463 | ps4pnPresence: 1 464 | ps4pnFriends: 1 465 | ps4pnGameCustomData: 1 466 | playerPrefsSupport: 0 467 | restrictedAudioUsageRights: 0 468 | ps4UseResolutionFallback: 0 469 | ps4ReprojectionSupport: 0 470 | ps4UseAudio3dBackend: 0 471 | ps4SocialScreenEnabled: 0 472 | ps4ScriptOptimizationLevel: 0 473 | ps4Audio3dVirtualSpeakerCount: 14 474 | ps4attribCpuUsage: 0 475 | ps4PatchPkgPath: 476 | ps4PatchLatestPkgPath: 477 | ps4PatchChangeinfoPath: 478 | ps4PatchDayOne: 0 479 | ps4attribUserManagement: 0 480 | ps4attribMoveSupport: 0 481 | ps4attrib3DSupport: 0 482 | ps4attribShareSupport: 0 483 | ps4attribExclusiveVR: 0 484 | ps4disableAutoHideSplash: 0 485 | ps4videoRecordingFeaturesUsed: 0 486 | ps4contentSearchFeaturesUsed: 0 487 | ps4attribEyeToEyeDistanceSettingVR: 0 488 | ps4IncludedModules: [] 489 | monoEnv: 490 | psp2Splashimage: {fileID: 0} 491 | psp2NPTrophyPackPath: 492 | psp2NPSupportGBMorGJP: 0 493 | psp2NPAgeRating: 12 494 | psp2NPTitleDatPath: 495 | psp2NPCommsID: 496 | psp2NPCommunicationsID: 497 | psp2NPCommsPassphrase: 498 | psp2NPCommsSig: 499 | psp2ParamSfxPath: 500 | psp2ManualPath: 501 | psp2LiveAreaGatePath: 502 | psp2LiveAreaBackroundPath: 503 | psp2LiveAreaPath: 504 | psp2LiveAreaTrialPath: 505 | psp2PatchChangeInfoPath: 506 | psp2PatchOriginalPackage: 507 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 508 | psp2KeystoneFile: 509 | psp2MemoryExpansionMode: 0 510 | psp2DRMType: 0 511 | psp2StorageType: 0 512 | psp2MediaCapacity: 0 513 | psp2DLCConfigPath: 514 | psp2ThumbnailPath: 515 | psp2BackgroundPath: 516 | psp2SoundPath: 517 | psp2TrophyCommId: 518 | psp2TrophyPackagePath: 519 | psp2PackagedResourcesPath: 520 | psp2SaveDataQuota: 10240 521 | psp2ParentalLevel: 1 522 | psp2ShortTitle: Not Set 523 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 524 | psp2Category: 0 525 | psp2MasterVersion: 01.00 526 | psp2AppVersion: 01.00 527 | psp2TVBootMode: 0 528 | psp2EnterButtonAssignment: 2 529 | psp2TVDisableEmu: 0 530 | psp2AllowTwitterDialog: 1 531 | psp2Upgradable: 0 532 | psp2HealthWarning: 0 533 | psp2UseLibLocation: 0 534 | psp2InfoBarOnStartup: 0 535 | psp2InfoBarColor: 0 536 | psp2ScriptOptimizationLevel: 0 537 | psmSplashimage: {fileID: 0} 538 | splashScreenBackgroundSourceLandscape: {fileID: 0} 539 | splashScreenBackgroundSourcePortrait: {fileID: 0} 540 | spritePackerPolicy: 541 | webGLMemorySize: 256 542 | webGLExceptionSupport: 1 543 | webGLNameFilesAsHashes: 0 544 | webGLDataCaching: 1 545 | webGLDebugSymbols: 0 546 | webGLEmscriptenArgs: 547 | webGLModulesDirectory: 548 | webGLTemplate: APPLICATION:Default 549 | webGLAnalyzeBuildSize: 0 550 | webGLUseEmbeddedResources: 0 551 | webGLUseWasm: 0 552 | webGLCompressionFormat: 1 553 | scriptingDefineSymbols: {} 554 | platformArchitecture: {} 555 | scriptingBackend: {} 556 | incrementalIl2cppBuild: {} 557 | additionalIl2CppArgs: 558 | scriptingRuntimeVersion: 0 559 | apiCompatibilityLevelPerPlatform: {} 560 | m_RenderingPath: 1 561 | m_MobileRenderingPath: 1 562 | metroPackageName: Template_2D 563 | metroPackageVersion: 564 | metroCertificatePath: 565 | metroCertificatePassword: 566 | metroCertificateSubject: 567 | metroCertificateIssuer: 568 | metroCertificateNotAfter: 0000000000000000 569 | metroApplicationDescription: Template_2D 570 | wsaImages: {} 571 | metroTileShortName: 572 | metroCommandLineArgsFile: 573 | metroTileShowName: 0 574 | metroMediumTileShowName: 0 575 | metroLargeTileShowName: 0 576 | metroWideTileShowName: 0 577 | metroDefaultTileSize: 1 578 | metroTileForegroundText: 2 579 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 580 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 581 | a: 1} 582 | metroSplashScreenUseBackgroundColor: 0 583 | platformCapabilities: {} 584 | metroFTAName: 585 | metroFTAFileTypes: [] 586 | metroProtocolName: 587 | metroCompilationOverrides: 1 588 | tizenProductDescription: 589 | tizenProductURL: 590 | tizenSigningProfileName: 591 | tizenGPSPermissions: 0 592 | tizenMicrophonePermissions: 0 593 | tizenDeploymentTarget: 594 | tizenDeploymentTargetType: -1 595 | tizenMinOSVersion: 1 596 | n3dsUseExtSaveData: 0 597 | n3dsCompressStaticMem: 1 598 | n3dsExtSaveDataNumber: 0x12345 599 | n3dsStackSize: 131072 600 | n3dsTargetPlatform: 2 601 | n3dsRegion: 7 602 | n3dsMediaSize: 0 603 | n3dsLogoStyle: 3 604 | n3dsTitle: GameName 605 | n3dsProductCode: 606 | n3dsApplicationId: 0xFF3FF 607 | XboxOneProductId: 608 | XboxOneUpdateKey: 609 | XboxOneSandboxId: 610 | XboxOneContentId: 611 | XboxOneTitleId: 612 | XboxOneSCId: 613 | XboxOneGameOsOverridePath: 614 | XboxOnePackagingOverridePath: 615 | XboxOneAppManifestOverridePath: 616 | XboxOnePackageEncryption: 0 617 | XboxOnePackageUpdateGranularity: 2 618 | XboxOneDescription: 619 | XboxOneLanguage: 620 | - enus 621 | XboxOneCapability: [] 622 | XboxOneGameRating: {} 623 | XboxOneIsContentPackage: 0 624 | XboxOneEnableGPUVariability: 0 625 | XboxOneSockets: {} 626 | XboxOneSplashScreen: {fileID: 0} 627 | XboxOneAllowedProductIds: [] 628 | XboxOnePersistentLocalStorageSize: 0 629 | XboxOneXTitleMemory: 8 630 | xboxOneScriptCompiler: 0 631 | vrEditorSettings: 632 | daydream: 633 | daydreamIconForeground: {fileID: 0} 634 | daydreamIconBackground: {fileID: 0} 635 | cloudServicesEnabled: 636 | UNet: 1 637 | facebookSdkVersion: 7.9.4 638 | apiCompatibilityLevel: 2 639 | cloudProjectId: 0c18f44b-bd3e-48a2-bed5-5c4af4c8bc93 640 | projectName: DepthCapturePlugin 641 | organizationId: lasmery 642 | cloudEnabled: 0 643 | enableNativePlatformBackendsForNewInputSystem: 0 644 | disableOldInputManagerSupport: 0 645 | --------------------------------------------------------------------------------