├── .gitignore ├── .vscode ├── extensions.json └── settings.json ├── CHANGES.md ├── LICENSE ├── NOTICE.md ├── README.md ├── SoraUnitySdkSamples ├── .gitignore ├── .vscode │ └── settings.json ├── Assets │ ├── Plugins │ │ └── SoraUnitySdk │ │ │ ├── android │ │ │ ├── Sora.aar.meta │ │ │ ├── arm64-v8a │ │ │ │ └── libSoraUnitySdk.so.meta │ │ │ └── webrtc.jar.meta │ │ │ ├── ios │ │ │ ├── libSoraUnitySdk.a.meta │ │ │ ├── libboost_filesystem.a.meta │ │ │ ├── libboost_json.a.meta │ │ │ ├── libsora.a.meta │ │ │ └── libwebrtc.a.meta │ │ │ ├── linux │ │ │ └── x86_64 │ │ │ │ └── libSoraUnitySdk.so.meta │ │ │ ├── macos │ │ │ └── arm64 │ │ │ │ └── SoraUnitySdk.bundle.meta │ │ │ └── windows │ │ │ └── x86_64 │ │ │ └── SoraUnitySdk.dll.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── multi_recvonly.unity │ │ ├── multi_recvonly.unity.meta │ │ ├── multi_sendonly.unity │ │ ├── multi_sendonly.unity.meta │ │ ├── multi_sendrecv.unity │ │ └── multi_sendrecv.unity.meta │ ├── SoraSample.cs │ ├── SoraSample.cs.meta │ ├── decision1.mp3 │ └── decision1.mp3.meta ├── Packages │ ├── manifest.json │ └── packages-lock.json └── ProjectSettings │ ├── AudioManager.asset │ ├── ClusterInputManager.asset │ ├── DynamicsManager.asset │ ├── EditorBuildSettings.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── InputManager.asset │ ├── MemorySettings.asset │ ├── NavMeshAreas.asset │ ├── PackageManagerSettings.asset │ ├── Physics2DSettings.asset │ ├── PresetManager.asset │ ├── ProjectSettings.asset │ ├── ProjectVersion.txt │ ├── QualitySettings.asset │ ├── SceneTemplateSettings.json │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── UnityConnectSettings.asset │ ├── VFXManager.asset │ ├── VersionControlSettings.asset │ ├── XRSettings.asset │ └── boot.config ├── copysdk.py ├── install.py └── ruff.toml /.gitignore: -------------------------------------------------------------------------------- 1 | /__pycache__ -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["charliermarsh.ruff", "ms-python.mypy-type-checker"] 3 | } 4 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.analysis.autoImportCompletions": true, 3 | "python.analysis.typeCheckingMode": "basic", 4 | "[python]": { 5 | "editor.formatOnSave": true, 6 | "editor.formatOnSaveMode": "file", 7 | "editor.defaultFormatter": "charliermarsh.ruff", 8 | "editor.autoIndent": "full", 9 | "editor.codeActionsOnSave": { 10 | "source.fixAll.ruff": "always", 11 | "source.organizeImports.ruff": "explicit" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- 1 | # 変更履歴 2 | 3 | - CHANGE 4 | - 下位互換のない変更 5 | - UPDATE 6 | - 下位互換がある変更 7 | - ADD 8 | - 下位互換がある追加 9 | - FIX 10 | - バグ修正 11 | 12 | ## develop 13 | 14 | ## sora-unity-sdk-2025.1.0 15 | 16 | **リリース日**: 2025-01-29 17 | 18 | - [ADD] forwardingfilters を設定可能にする 19 | - @torikizi 20 | - [ADD] forwardingfilter に name と priority を追加 21 | - @torikizi 22 | - [ADD] datachannel に header を追加 23 | - @torikizi 24 | 25 | ## sora-unity-sdk-2024.4.0 26 | 27 | - [UPDATE] Sora Unity SDK 2024.4.0 にあげる 28 | - @miosakuma 29 | 30 | ## sora-unity-sdk-2024.3.0 31 | 32 | - [UPDATE] Sora Unity SDK 2024.3.0 にあげる 33 | - @miosakuma 34 | - [UPDATE] 対応プラットフォームに Ubuntu 22.04 x86_64 を追加する 35 | - コード変更はなし、Ubuntu 20.04 版の Unity SDK で Ubuntu 22.04 も動作することを確認した 36 | - @torikizi 37 | 38 | ## sora-unity-sdk-2024.2.0 39 | 40 | - [CHANGE] Lyra 関連の処理を削除する 41 | - copysdk.py から Lyra 関連ファイルのコピー処理を削除 42 | - SoraSample.cs から Lyra 関連の設定およびファイル読み込み処理を削除 43 | - lyra 関連の meta ファイルを削除 44 | - .gitignore ファイルから Lyra ファイルの定義を削除 45 | - @miosakuma 46 | - [CHANGE] Sora Unity SDK に Sora.aar ファイルが追加された対応 47 | - Sora.aar.meta ファイルを追加する 48 | - .gitignore に Sora.aar ファイルを追加する 49 | - @torikizi 50 | - [ADD] ハンズフリー切替ボタンを追加 51 | - multi_sendrecv シーンにハンズフリーを切り替えられるようにボタンを追加 52 | - 他のボタンと合わせて一つのボタンで切り替えられるようにしているが、テキストを変更することでボタンを押すとどちらに切り替えられるかを表示するようにしている 53 | - @torikizi 54 | 55 | ## sora-unity-sdk-2024.1.0 56 | 57 | - [ADD] forwardingfilter に version と metadata を追加 58 | - @torikizi 59 | - [FIX] forwardingfilter の action をオプションにする 60 | - @torikizi 61 | 62 | ## sora-unity-sdk-2023.5.2 63 | 64 | - [UPDATE] Sora Unity SDK 2023.5.2 にあげる 65 | - @torikizi 66 | 67 | ## sora-unity-sdk-2023.5.1 68 | 69 | - [FIX] テクスチャのメモリリークを解消する 70 | - @melpon 71 | 72 | ## sora-unity-sdk-2023.5.0 73 | 74 | - [UPDATE] Sora Unity SDK 2023.5.0 にあげる 75 | - @miosakuma 76 | 77 | ## sora-unity-sdk-2023.4.0 78 | 79 | - [CHANGE] sendonly, recvonly シーンを削除する 80 | - @torikizi 81 | - [CHANGE] プロジェクトを Unity 2022.3 LTS にアップデート 82 | - @torikizi 83 | - [UPDATE] iOS の Target Version を 13.0 にアップデート 84 | - @torikizi 85 | - [ADD] noVideoDevice, noAudioDevice の設定を追加する 86 | - @torikizi 87 | - [ADD] useHardwareEncoder の設定を追加する 88 | - @torikizi 89 | - [ADD] 接続中のカメラ切り替えボタンを追加する 90 | - @melpon @torikizi 91 | 92 | ## sora-unity-sdk-2023.3.0 93 | 94 | - [UPDATE] Sora Unity SDK 2023.3.0 にあげる 95 | - @miosakuma 96 | 97 | ## sora-unity-sdk-2023.2.0 98 | 99 | - [ADD] CodecParams の設定を追加 100 | - video_vp9_params を追加 101 | - video_av1_params を追加 102 | - video_h264_params を追加 103 | - @torikizi 104 | - [ADD] forwardingfilter の設定を追加 105 | - @torikizi 106 | - [FIX] signalingNotifyMetadata が JSON 文字列化を再帰的に行っているのを修正 107 | - @melpon 108 | 109 | ## sora-unity-sdk-2023.1.0 110 | 111 | - [UPDATE] Sora Unity SDK 2023.1.0 にあげる 112 | - @miosakuma 113 | - [ADD] オーディオコーデックに Lyra を追加 114 | - @melpon, @torikizi 115 | - [ADD] SignalingNotifyMetadata の設定を追加 116 | - @torikizi 117 | - [ADD] AudioStreamingLanguageCode の設定を追加 118 | - @melpon 119 | - [ADD] デバッグバイナリをコピーする機能を追加 120 | - @melpon 121 | - [ADD] OnSetOffer コールバックを追加 122 | - @melpon 123 | - [FIX] 開始ボタンを 2 回連続で押した時にクラッシュする不具合を修正 124 | - 開始、終了ボタンの表示制御を行う 125 | - @melpon 126 | 127 | ## sora-unity-sdk-2022.6.0 128 | 129 | - [CHANGE] tobiAccessToken の設定を削除 130 | - @torikizi 131 | - [ADD] 音声と映像のミュートを追加 132 | - @torikizi 133 | 134 | ## sora-unity-sdk-2022.5.2 135 | 136 | - [UPDATE] Sora Unity SDK 2022.5.2 に上げる 137 | - @miosakuma 138 | 139 | ## sora-unity-sdk-2022.5.1 140 | 141 | - [UPDATE] Sora Unity SDK 2022.5.1 に上げる 142 | - @melpon, @miosakuma 143 | - [ADD] Video Fps の設定を追加 144 | - @miosakuma 145 | 146 | ## sora-unity-sdk-2022.4.0 147 | 148 | - [UPDATE] Sora Unity SDK 2022.4.0 に上げる 149 | - @miosakuma 150 | 151 | ## sora-unity-sdk-2022.3.0 152 | 153 | - [CHANGE] signalingkey を accesstoken に修正 154 | - @torikizi 155 | 156 | ## sora-unity-sdk-2022.2.1 157 | 158 | - [UPDATE] copysdk.py のログ出力内容を変更する 159 | - @melpon 160 | - [FIX] sora が null の時に参照してしまうケースについて修正する 161 | - @melpon 162 | 163 | ## sora-unity-sdk-2022.2.0 164 | 165 | - [CHANGE] プロジェクトを Unity 2021.3 LTS にアップデート 166 | - @melpon 167 | - [UPDATE] Sora Unity SDK 2022.2.0 に対応 168 | - @melpon 169 | - [ADD] HTTP Proxy の設定を追加 170 | - @melpon 171 | - [ADD] BundleId の設定を追加 172 | - @melpon 173 | - [ADD] tobiAccessToken の設定を追加 174 | - @miosakuma 175 | 176 | ## sora-unity-sdk-2022.1.0-1 177 | 178 | - [UPDATE] libboost_json.a.meta を追加する 179 | - iOS の推奨されるビルド初期設定を行う 180 | - @torikizi 181 | - [FIX] install.sh と install.ps1 に libboost_json.a をコピーする処理を追加する 182 | - iOS にてサンプルが動作しない問題に対応 183 | - @torikizi 184 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | -------------------------------------------------------------------------------- /NOTICE.md: -------------------------------------------------------------------------------- 1 | # WebRTC 2 | 3 | ``` 4 | Copyright (c) 2011, The WebRTC project authors. All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are 8 | met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Google nor the names of its contributors may 19 | be used to endorse or promote products derived from this software 20 | without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 26 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 28 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 32 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | ``` 34 | 35 | # Boost C++ Libraries 36 | 37 | https://www.boost.org/LICENSE_1_0.txt 38 | 39 | ``` 40 | Boost Software License - Version 1.0 - August 17th, 2003 41 | 42 | Permission is hereby granted, free of charge, to any person or organization 43 | obtaining a copy of the software and accompanying documentation covered by 44 | this license (the "Software") to use, reproduce, display, distribute, 45 | execute, and transmit the Software, and to prepare derivative works of the 46 | Software, and to permit third-parties to whom the Software is furnished to 47 | do so, all subject to the following: 48 | 49 | The copyright notices in the Software and this entire statement, including 50 | the above license grant, this restriction and the following disclaimer, 51 | must be included in all copies of the Software, in whole or in part, and 52 | all derivative works of the Software, unless such copies or derivative 53 | works are solely in the form of machine-executable object code generated by 54 | a source language processor. 55 | 56 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 57 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 58 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 59 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 60 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 61 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 62 | DEALINGS IN THE SOFTWARE. 63 | ``` 64 | 65 | # Sora C++ SDK 66 | 67 | https://github.com/shiguredo/sora-cpp-sdk 68 | 69 | ``` 70 | Apache License 71 | Version 2.0, January 2004 72 | http://www.apache.org/licenses/ 73 | 74 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 75 | 76 | 1. Definitions. 77 | 78 | "License" shall mean the terms and conditions for use, reproduction, 79 | and distribution as defined by Sections 1 through 9 of this document. 80 | 81 | "Licensor" shall mean the copyright owner or entity authorized by 82 | the copyright owner that is granting the License. 83 | 84 | "Legal Entity" shall mean the union of the acting entity and all 85 | other entities that control, are controlled by, or are under common 86 | control with that entity. For the purposes of this definition, 87 | "control" means (i) the power, direct or indirect, to cause the 88 | direction or management of such entity, whether by contract or 89 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 90 | outstanding shares, or (iii) beneficial ownership of such entity. 91 | 92 | "You" (or "Your") shall mean an individual or Legal Entity 93 | exercising permissions granted by this License. 94 | 95 | "Source" form shall mean the preferred form for making modifications, 96 | including but not limited to software source code, documentation 97 | source, and configuration files. 98 | 99 | "Object" form shall mean any form resulting from mechanical 100 | transformation or translation of a Source form, including but 101 | not limited to compiled object code, generated documentation, and conversions to other media types. 102 | 103 | "Work" shall mean the work of authorship, whether in Source or 104 | Object form, made available under the License, as indicated by a 105 | copyright notice that is included in or attached to the work 106 | (an example is provided in the Appendix below). 107 | 108 | "Derivative Works" shall mean any work, whether in Source or Object 109 | form, that is based on (or derived from) the Work and for which the 110 | editorial revisions, annotations, elaborations, or other modifications 111 | represent, as a whole, an original work of authorship. For the purposes 112 | of this License, Derivative Works shall not include works that remain 113 | separable from, or merely link (or bind by name) to the interfaces of, 114 | the Work and Derivative Works thereof. 115 | 116 | "Contribution" shall mean any work of authorship, including 117 | the original version of the Work and any modifications or additions 118 | to that Work or Derivative Works thereof, that is intentionally 119 | submitted to Licensor for inclusion in the Work by the copyright owner 120 | or by an individual or Legal Entity authorized to submit on behalf of 121 | the copyright owner. For the purposes of this definition, "submitted" 122 | means any form of electronic, verbal, or written communication sent 123 | to the Licensor or its representatives, including but not limited to 124 | communication on electronic mailing lists, source code control systems, 125 | and issue tracking systems that are managed by, or on behalf of, the 126 | Licensor for the purpose of discussing and improving the Work, but 127 | excluding communication that is conspicuously marked or otherwise 128 | designated in writing by the copyright owner as "Not a Contribution." 129 | 130 | "Contributor" shall mean Licensor and any individual or Legal Entity 131 | on behalf of whom a Contribution has been received by Licensor and 132 | subsequently incorporated within the Work. 133 | 134 | 2. Grant of Copyright License. Subject to the terms and conditions of 135 | this License, each Contributor hereby grants to You a perpetual, 136 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 137 | copyright license to reproduce, prepare Derivative Works of, 138 | publicly display, publicly perform, sublicense, and distribute the 139 | Work and such Derivative Works in Source or Object form. 140 | 141 | 3. Grant of Patent License. Subject to the terms and conditions of 142 | this License, each Contributor hereby grants to You a perpetual, 143 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 144 | (except as stated in this section) patent license to make, have made, 145 | use, offer to sell, sell, import, and otherwise transfer the Work, 146 | where such license applies only to those patent claims licensable 147 | by such Contributor that are necessarily infringed by their 148 | Contribution(s) alone or by combination of their Contribution(s) 149 | with the Work to which such Contribution(s) was submitted. If You 150 | institute patent litigation against any entity (including a 151 | cross-claim or counterclaim in a lawsuit) alleging that the Work 152 | or a Contribution incorporated within the Work constitutes direct 153 | or contributory patent infringement, then any patent licenses 154 | granted to You under this License for that Work shall terminate 155 | as of the date such litigation is filed. 156 | 157 | 4. Redistribution. You may reproduce and distribute copies of the 158 | Work or Derivative Works thereof in any medium, with or without 159 | modifications, and in Source or Object form, provided that You 160 | meet the following conditions: 161 | 162 | (a) You must give any other recipients of the Work or 163 | Derivative Works a copy of this License; and 164 | 165 | (b) You must cause any modified files to carry prominent notices 166 | stating that You changed the files; and 167 | 168 | (c) You must retain, in the Source form of any Derivative Works 169 | that You distribute, all copyright, patent, trademark, and 170 | attribution notices from the Source form of the Work, 171 | excluding those notices that do not pertain to any part of 172 | the Derivative Works; and 173 | 174 | (d) If the Work includes a "NOTICE" text file as part of its 175 | distribution, then any Derivative Works that You distribute must 176 | include a readable copy of the attribution notices contained 177 | within such NOTICE file, excluding those notices that do not 178 | pertain to any part of the Derivative Works, in at least one 179 | of the following places: within a NOTICE text file distributed 180 | as part of the Derivative Works; within the Source form or 181 | documentation, if provided along with the Derivative Works; or, 182 | within a display generated by the Derivative Works, if and 183 | wherever such third-party notices normally appear. The contents 184 | of the NOTICE file are for informational purposes only and 185 | do not modify the License. You may add Your own attribution 186 | notices within Derivative Works that You distribute, alongside 187 | or as an addendum to the NOTICE text from the Work, provided 188 | that such additional attribution notices cannot be construed 189 | as modifying the License. 190 | 191 | You may add Your own copyright statement to Your modifications and 192 | may provide additional or different license terms and conditions 193 | for use, reproduction, or distribution of Your modifications, or 194 | for any such Derivative Works as a whole, provided Your use, 195 | reproduction, and distribution of the Work otherwise complies with 196 | the conditions stated in this License. 197 | 198 | 5. Submission of Contributions. Unless You explicitly state otherwise, 199 | any Contribution intentionally submitted for inclusion in the Work 200 | by You to the Licensor shall be under the terms and conditions of 201 | this License, without any additional terms or conditions. 202 | Notwithstanding the above, nothing herein shall supersede or modify 203 | the terms of any separate license agreement you may have executed 204 | with Licensor regarding such Contributions. 205 | 206 | 6. Trademarks. This License does not grant permission to use the trade 207 | names, trademarks, service marks, or product names of the Licensor, 208 | except as required for reasonable and customary use in describing the 209 | origin of the Work and reproducing the content of the NOTICE file. 210 | 211 | 7. Disclaimer of Warranty. Unless required by applicable law or 212 | agreed to in writing, Licensor provides the Work (and each 213 | Contributor provides its Contributions) on an "AS IS" BASIS, 214 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 215 | implied, including, without limitation, any warranties or conditions 216 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 217 | PARTICULAR PURPOSE. You are solely responsible for determining the 218 | appropriateness of using or redistributing the Work and assume any 219 | risks associated with Your exercise of permissions under this License. 220 | 221 | 8. Limitation of Liability. In no event and under no legal theory, 222 | whether in tort (including negligence), contract, or otherwise, 223 | unless required by applicable law (such as deliberate and grossly 224 | negligent acts) or agreed to in writing, shall any Contributor be 225 | liable to You for damages, including any direct, indirect, special, 226 | incidental, or consequential damages of any character arising as a 227 | result of this License or out of the use or inability to use the 228 | Work (including but not limited to damages for loss of goodwill, 229 | work stoppage, computer failure or malfunction, or any and all 230 | other commercial damages or losses), even if such Contributor 231 | has been advised of the possibility of such damages. 232 | 233 | 9. Accepting Warranty or Additional Liability. While redistributing 234 | the Work or Derivative Works thereof, You may choose to offer, 235 | and charge a fee for, acceptance of support, warranty, indemnity, 236 | or other liability obligations and/or rights consistent with this 237 | License. However, in accepting such obligations, You may act only 238 | on Your own behalf and on Your sole responsibility, not on behalf 239 | of any other Contributor, and only if You agree to indemnify, 240 | defend, and hold each Contributor harmless for any liability 241 | incurred by, or claims asserted against, such Contributor by reason 242 | of your accepting any such warranty or additional liability. 243 | 244 | END OF TERMS AND CONDITIONS 245 | ``` -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sora Unity SDK サンプル集 2 | 3 | このリポジトリには、 [Sora Unity SDK](https://github.com/shiguredo/sora-unity-sdk) を利用したサンプルアプリを掲載しています。実際の利用シーンに即したサンプルをご用意しておりますので、目的に応じた Sora Unity SDK の使い方を簡単に学ぶことができます。 4 | 5 | ## About Support 6 | 7 | We check PRs or Issues only when written in JAPANESE. 8 | In other languages, we won't be able to deal with them. Thank you for your understanding. 9 | 10 | ## 時雨堂のオープンソースソフトウェアについて 11 | 12 | 利用前に https://github.com/shiguredo/oss をお読みください。 13 | 14 | ## 対応 Unity バージョン 15 | 16 | - Unity 2022.3 (LTS) 17 | 18 | ## 対応 Sora バージョン 19 | 20 | - WebRTC SFU Sora 2024.2.0 以降 21 | 22 | ## 対応 プラットフォーム 23 | 24 | - Windows 10 22H2 x86_64 以降 25 | - macOS 13.4.1 M1 以降 26 | - Android 7 以降 27 | - iOS 13 以降 28 | - Ubuntu 20.04 x86_64 29 | - Ubuntu 22.04 x86_64 30 | 31 | ## Sora Unity SDK サンプル集を使ってみる 32 | 33 | Sora Unity SDK サンプル集の使い方についてはドキュメントのチュートリアルを参照してください。 34 | 35 | [Sora Unity SDK ドキュメントのチュートリアル](https://sora-unity-sdk.shiguredo.jp/tutorial) 36 | 37 | ## ライセンス 38 | 39 | Apache License 2.0 40 | 41 | ``` 42 | Copyright 2019-2023, Wandbox LLC (Original Author) 43 | Copyright 2019-2023, Shiguredo Inc 44 | 45 | Licensed under the Apache License, Version 2.0 (the "License"); 46 | you may not use this file except in compliance with the License. 47 | You may obtain a copy of the License at 48 | 49 | http://www.apache.org/licenses/LICENSE-2.0 50 | 51 | Unless required by applicable law or agreed to in writing, software 52 | distributed under the License is distributed on an "AS IS" BASIS, 53 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 54 | See the License for the specific language governing permissions and 55 | limitations under the License. 56 | ``` 57 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | 13 | # MemoryCaptures can get excessive in size. 14 | # They also could contain extremely sensitive data 15 | /[Mm]emoryCaptures/ 16 | 17 | # Recordings can get excessive in size 18 | /[Rr]ecordings/ 19 | 20 | # Uncomment this line if you wish to ignore the asset store tools plugin 21 | # /[Aa]ssets/AssetStoreTools* 22 | 23 | # Autogenerated Jetbrains Rider plugin 24 | /[Aa]ssets/Plugins/Editor/JetBrains* 25 | 26 | # Visual Studio cache directory 27 | .vs/ 28 | 29 | # Gradle cache directory 30 | .gradle/ 31 | 32 | # Autogenerated VS/MD/Consulo solution and project files 33 | ExportedObj/ 34 | .consulo/ 35 | *.csproj 36 | *.unityproj 37 | *.sln 38 | *.suo 39 | *.tmp 40 | *.user 41 | *.userprefs 42 | *.pidb 43 | *.booproj 44 | *.svd 45 | *.pdb 46 | *.mdb 47 | *.opendb 48 | *.VC.db 49 | 50 | # Unity3D generated meta files 51 | *.pidb.meta 52 | *.pdb.meta 53 | *.mdb.meta 54 | 55 | # Unity3D generated file on crash reports 56 | sysinfo.txt 57 | 58 | # Builds 59 | *.apk 60 | *.aab 61 | *.unitypackage 62 | *.app 63 | 64 | # Crashlytics generated file 65 | crashlytics-build.properties 66 | 67 | # Packed Addressables 68 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 69 | 70 | # Temporary auto-generated Android Assets 71 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 72 | /[Aa]ssets/[Ss]treamingAssets/aa/* 73 | 74 | *.dll 75 | 76 | /Assets/Plugins.meta 77 | /Assets/Plugins/SoraUnitySdk.meta 78 | /Assets/Plugins/SoraUnitySdk/android.meta 79 | /Assets/Plugins/SoraUnitySdk/android/arm64-v8a.meta 80 | /Assets/Plugins/SoraUnitySdk/android/arm64-v8a/libSoraUnitySdk.so 81 | /Assets/Plugins/SoraUnitySdk/android/webrtc.jar 82 | /Assets/Plugins/SoraUnitySdk/android/Sora.aar 83 | /Assets/Plugins/SoraUnitySdk/macos.meta 84 | /Assets/Plugins/SoraUnitySdk/macos/arm64.meta 85 | /Assets/Plugins/SoraUnitySdk/macos/arm64/SoraUnitySdk.bundle/ 86 | /Assets/Plugins/SoraUnitySdk/ios.meta 87 | /Assets/Plugins/SoraUnitySdk/ios/libSoraUnitySdk.a 88 | /Assets/Plugins/SoraUnitySdk/ios/libwebrtc.a 89 | /Assets/Plugins/SoraUnitySdk/ios/libsora.a 90 | /Assets/Plugins/SoraUnitySdk/ios/libboost_json.a 91 | /Assets/Plugins/SoraUnitySdk/ios/libboost_filesystem.a 92 | /Assets/Plugins/SoraUnitySdk/linux.meta 93 | /Assets/Plugins/SoraUnitySdk/linux/x86_64.meta 94 | /Assets/Plugins/SoraUnitySdk/linux/x86_64/libSoraUnitySdk.so 95 | /Assets/Plugins/SoraUnitySdk/windows.meta 96 | /Assets/Plugins/SoraUnitySdk/windows/x86_64.meta 97 | /Assets/SoraUnitySdk.meta 98 | /Assets/SoraUnitySdk/ 99 | /Assets/StreamingAssets/SoraUnitySdk.meta 100 | /Assets/StreamingAssets/SoraUnitySdk/ 101 | /webrtc_logs_* 102 | /.env.json 103 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": 3 | { 4 | "**/.DS_Store":true, 5 | "**/.git":true, 6 | "**/.gitignore":true, 7 | "**/.gitmodules":true, 8 | "**/*.booproj":true, 9 | "**/*.pidb":true, 10 | "**/*.suo":true, 11 | "**/*.user":true, 12 | "**/*.userprefs":true, 13 | "**/*.unityproj":true, 14 | "**/*.dll":true, 15 | "**/*.exe":true, 16 | "**/*.pdf":true, 17 | "**/*.mid":true, 18 | "**/*.midi":true, 19 | "**/*.wav":true, 20 | "**/*.gif":true, 21 | "**/*.ico":true, 22 | "**/*.jpg":true, 23 | "**/*.jpeg":true, 24 | "**/*.png":true, 25 | "**/*.psd":true, 26 | "**/*.tga":true, 27 | "**/*.tif":true, 28 | "**/*.tiff":true, 29 | "**/*.3ds":true, 30 | "**/*.3DS":true, 31 | "**/*.fbx":true, 32 | "**/*.FBX":true, 33 | "**/*.lxo":true, 34 | "**/*.LXO":true, 35 | "**/*.ma":true, 36 | "**/*.MA":true, 37 | "**/*.obj":true, 38 | "**/*.OBJ":true, 39 | "**/*.asset":true, 40 | "**/*.cubemap":true, 41 | "**/*.flare":true, 42 | "**/*.mat":true, 43 | "**/*.meta":true, 44 | "**/*.prefab":true, 45 | "**/*.unity":true, 46 | "build/":true, 47 | "Build/":true, 48 | "Library/":true, 49 | "library/":true, 50 | "obj/":true, 51 | "Obj/":true, 52 | "ProjectSettings/":true, 53 | "temp/":true, 54 | "Temp/":true 55 | } 56 | } -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/android/Sora.aar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0502b09fb92972429b20d66eca61226 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Android: Android 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Any: 21 | second: 22 | enabled: 0 23 | settings: {} 24 | - first: 25 | Editor: Editor 26 | second: 27 | enabled: 0 28 | settings: 29 | DefaultValueInitialized: true 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/android/arm64-v8a/libSoraUnitySdk.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b86bffc43f1bc4e85a95745780e4af86 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux: 1 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 1 24 | Exclude OSXUniversal: 1 25 | Exclude Win: 1 26 | Exclude Win64: 1 27 | Exclude iOS: 1 28 | - first: 29 | Android: Android 30 | second: 31 | enabled: 1 32 | settings: 33 | CPU: ARM64 34 | - first: 35 | Any: 36 | second: 37 | enabled: 0 38 | settings: {} 39 | - first: 40 | Editor: Editor 41 | second: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | DefaultValueInitialized: true 46 | OS: AnyOS 47 | - first: 48 | Facebook: Win 49 | second: 50 | enabled: 0 51 | settings: 52 | CPU: AnyCPU 53 | - first: 54 | Facebook: Win64 55 | second: 56 | enabled: 0 57 | settings: 58 | CPU: AnyCPU 59 | - first: 60 | Standalone: Linux 61 | second: 62 | enabled: 0 63 | settings: 64 | CPU: x86 65 | - first: 66 | Standalone: Linux64 67 | second: 68 | enabled: 0 69 | settings: 70 | CPU: AnyCPU 71 | - first: 72 | Standalone: LinuxUniversal 73 | second: 74 | enabled: 0 75 | settings: 76 | CPU: None 77 | - first: 78 | Standalone: OSXUniversal 79 | second: 80 | enabled: 0 81 | settings: 82 | CPU: AnyCPU 83 | - first: 84 | Standalone: Win 85 | second: 86 | enabled: 0 87 | settings: 88 | CPU: AnyCPU 89 | - first: 90 | Standalone: Win64 91 | second: 92 | enabled: 0 93 | settings: 94 | CPU: AnyCPU 95 | - first: 96 | iPhone: iOS 97 | second: 98 | enabled: 0 99 | settings: 100 | AddToEmbeddedBinaries: false 101 | CompileFlags: 102 | FrameworkDependencies: 103 | userData: 104 | assetBundleName: 105 | assetBundleVariant: 106 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/android/webrtc.jar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6c679f4fa9974cac98d539bfd05bbde 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Android: Android 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Any: 21 | second: 22 | enabled: 0 23 | settings: {} 24 | - first: 25 | Editor: Editor 26 | second: 27 | enabled: 0 28 | settings: 29 | DefaultValueInitialized: true 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/ios/libSoraUnitySdk.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa2c460a961c743799b9bd49ad6ff498 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: ARM64 69 | CompileFlags: 70 | FrameworkDependencies: OpenGLES; 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/ios/libboost_filesystem.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 427a9256aaac94258a4aede8fffcb292 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: AnyCPU 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/ios/libboost_json.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 472a7b0a190ba4458b0c0c465ee6b707 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: ARM64 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/ios/libsora.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21eebe337986d4d35a2def7b3358803a 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: AnyCPU 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/ios/libwebrtc.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 040cadf061d714a5c90a0dc4678439be 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Editor: 1 20 | Exclude Linux64: 1 21 | Exclude OSXUniversal: 1 22 | Exclude Win: 1 23 | Exclude Win64: 1 24 | Exclude iOS: 0 25 | - first: 26 | Any: 27 | second: 28 | enabled: 0 29 | settings: {} 30 | - first: 31 | Editor: Editor 32 | second: 33 | enabled: 0 34 | settings: 35 | CPU: AnyCPU 36 | DefaultValueInitialized: true 37 | OS: AnyOS 38 | - first: 39 | Standalone: Linux64 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: None 44 | - first: 45 | Standalone: OSXUniversal 46 | second: 47 | enabled: 0 48 | settings: 49 | CPU: None 50 | - first: 51 | Standalone: Win 52 | second: 53 | enabled: 0 54 | settings: 55 | CPU: None 56 | - first: 57 | Standalone: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: None 62 | - first: 63 | iPhone: iOS 64 | second: 65 | enabled: 1 66 | settings: 67 | AddToEmbeddedBinaries: false 68 | CPU: ARM64 69 | CompileFlags: 70 | FrameworkDependencies: 71 | userData: 72 | assetBundleName: 73 | assetBundleVariant: 74 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/linux/x86_64/libSoraUnitySdk.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0abf758c9a63bef48a5b4d4883cb8e84 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 0 24 | Exclude Win64: 0 25 | Exclude WindowsStoreApps: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: Linux 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 1 49 | settings: 50 | CPU: x86_64 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 1 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 1 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Windows Store Apps: WindowsStoreApps 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: AnyCPU 75 | DontProcess: false 76 | PlaceholderPath: 77 | SDK: AnySDK 78 | ScriptingBackend: AnyScriptingBackend 79 | userData: 80 | assetBundleName: 81 | assetBundleVariant: 82 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/macos/arm64/SoraUnitySdk.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ab748540c36a48f1b4b9f219d5940a2 3 | folderAsset: yes 4 | PluginImporter: 5 | externalObjects: {} 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | defineConstraints: [] 10 | isPreloaded: 0 11 | isOverridable: 0 12 | isExplicitlyReferenced: 0 13 | validateReferences: 1 14 | platformData: 15 | - first: 16 | : Any 17 | second: 18 | enabled: 0 19 | settings: 20 | Exclude Editor: 0 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Any: 28 | second: 29 | enabled: 0 30 | settings: {} 31 | - first: 32 | Editor: Editor 33 | second: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | DefaultValueInitialized: true 38 | OS: AnyOS 39 | - first: 40 | Standalone: Linux64 41 | second: 42 | enabled: 0 43 | settings: 44 | CPU: x86_64 45 | - first: 46 | Standalone: OSXUniversal 47 | second: 48 | enabled: 1 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Standalone: Win 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: x86 57 | - first: 58 | Standalone: Win64 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86_64 63 | - first: 64 | iPhone: iOS 65 | second: 66 | enabled: 0 67 | settings: 68 | AddToEmbeddedBinaries: false 69 | CPU: AnyCPU 70 | CompileFlags: 71 | FrameworkDependencies: 72 | userData: 73 | assetBundleName: 74 | assetBundleVariant: 75 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Plugins/SoraUnitySdk/windows/x86_64/SoraUnitySdk.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c38cd189d11554738882f531dca68437 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 1 24 | Exclude Win64: 0 25 | Exclude WindowsStoreApps: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86_64 43 | DefaultValueInitialized: true 44 | OS: Windows 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 1 49 | settings: 50 | CPU: x86_64 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 1 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | Windows Store Apps: WindowsStoreApps 71 | second: 72 | enabled: 0 73 | settings: 74 | CPU: AnyCPU 75 | DontProcess: false 76 | PlaceholderPath: 77 | SDK: AnySDK 78 | ScriptingBackend: AnyScriptingBackend 79 | userData: 80 | assetBundleName: 81 | assetBundleVariant: 82 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d134cdb3bcb87642b1f90ab006c335e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Scenes/multi_recvonly.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Scenes/multi_sendonly.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32fb8c4e5de5c294ba0c1f7d8225b87d 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/Scenes/multi_sendrecv.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a65d6f524eeafcb4790e463a7c89a63e 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/SoraSample.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System; 5 | using System.Linq; 6 | using System.Runtime.InteropServices; 7 | using UnityEngine.UI; 8 | 9 | public class SoraSample : MonoBehaviour 10 | { 11 | public enum SampleType 12 | { 13 | MultiSendrecv, 14 | MultiRecvonly, 15 | MultiSendonly, 16 | } 17 | 18 | Sora sora; 19 | Sora.IAudioOutputHelper audioOutputHelper; 20 | enum State 21 | { 22 | Init, 23 | Started, 24 | Disconnecting, 25 | } 26 | State state; 27 | public UnityEngine.UI.Button buttonStart; 28 | public UnityEngine.UI.Button buttonEnd; 29 | public UnityEngine.UI.Button buttonSend; 30 | public UnityEngine.UI.Button buttonVideoMute; 31 | public UnityEngine.UI.Button buttonAudioMute; 32 | public UnityEngine.UI.Button buttonSwitchHandsfree; 33 | 34 | public SampleType sampleType; 35 | // 実行中に変えられたくないので実行時に固定する 36 | SampleType fixedSampleType; 37 | 38 | // Sendonly で利用する 39 | // 受信を行わないので、自身のカメラを表示するための trackId だけ保持しておく 40 | uint trackId = 0; 41 | public GameObject renderTarget; 42 | 43 | // Recvonly, Sendrecv で利用する 44 | Dictionary tracks = new Dictionary(); 45 | public GameObject scrollViewContent; 46 | public GameObject baseContent; 47 | 48 | // 以下は Sendonly, Recvonly, Sendrecv 共通 49 | public string signalingUrl = ""; 50 | public string[] signalingUrlCandidate = new string[0]; 51 | 52 | public bool insecure = false; 53 | public string channelId = ""; 54 | public string clientId = ""; 55 | public string bundleId = ""; 56 | public string signalingNotifyMetadataMessage = ""; 57 | public string metadataAccessToken = ""; 58 | 59 | public bool captureUnityCamera; 60 | public Camera capturedCamera; 61 | 62 | // enableVideoVp9Params や enableOrdered といった enable という名前のフィールドは、 63 | // enable == false の場合は Sora に の JSON オブジェクトを送信しないことを意味する。 64 | // そのため のフィールドがどのような値であっても無視される。 65 | // enable == true の場合は Sora に の JSON オブジェクトを送信することを意味する。 66 | // そのため に適切な値を設定する必要がある。 67 | 68 | public bool video = true; 69 | public bool noVideoDevice = false; 70 | public new bool audio = true; 71 | public bool noAudioDevice = false; 72 | public bool useHardwareEncoder = true; 73 | public Sora.VideoCodecType videoCodecType = Sora.VideoCodecType.VP9; 74 | public bool enableVideoVp9Params = false; 75 | public int videoVp9ParamsProfileId; 76 | public bool enableVideoAv1Params = false; 77 | public int videoAv1ParamsProfile; 78 | public bool enableVideoH264Params = false; 79 | public string videoH264ParamsProfileLevelId = ""; 80 | public Sora.AudioCodecType audioCodecType = Sora.AudioCodecType.OPUS; 81 | public string audioStreamingLanguageCode = ""; 82 | 83 | public bool unityAudioInput = false; 84 | public AudioSource audioSourceInput; 85 | public bool unityAudioOutput = false; 86 | public AudioSource audioSourceOutput; 87 | 88 | public string videoCapturerDevice = ""; 89 | public string audioRecordingDevice = ""; 90 | public string audioPlayoutDevice = ""; 91 | 92 | public bool spotlight = false; 93 | public int spotlightNumber = 0; 94 | public bool enableSpotlightFocusRid = false; 95 | public Sora.SpotlightFocusRidType spotlightFocusRid = Sora.SpotlightFocusRidType.None; 96 | public bool enableSpotlightUnfocusRid = false; 97 | public Sora.SpotlightFocusRidType spotlightUnfocusRid = Sora.SpotlightFocusRidType.None; 98 | public bool simulcast = false; 99 | public bool enableSimulcastRid = false; 100 | public Sora.SimulcastRidType simulcastRid = Sora.SimulcastRidType.R0; 101 | 102 | public int videoBitRate = 0; 103 | public int videoFps = 30; 104 | public enum VideoSize 105 | { 106 | QVGA, 107 | VGA, 108 | HD, 109 | FHD, 110 | _4K, 111 | } 112 | public VideoSize videoSize = VideoSize.VGA; 113 | 114 | [System.Serializable] 115 | public class Rule 116 | { 117 | public string field; 118 | public string op; 119 | public string[] values; 120 | } 121 | [System.Serializable] 122 | public class RuleList 123 | { 124 | public Rule[] data; 125 | } 126 | [System.Serializable] 127 | public class ForwardingFilter 128 | { 129 | public bool enableAction = false; 130 | public string action; 131 | public bool enableName = false; 132 | public string name; 133 | public bool enablePriority = false; 134 | public int priority; 135 | public RuleList[] ruleLists; 136 | public bool enableVersion = false; 137 | public string version = ""; 138 | public bool enableMetadata = false; 139 | public ForwardingFilterMetadata metadata; 140 | } 141 | 142 | [Serializable] 143 | public class ForwardingFilterMetadata 144 | { 145 | public string metadata; 146 | } 147 | public static Sora.ForwardingFilter ConvertToSoraForwardingFilter(ForwardingFilter forwardingFilter) 148 | { 149 | var filter = new Sora.ForwardingFilter(); 150 | 151 | if (forwardingFilter.enableAction) filter.Action = forwardingFilter.action; 152 | if (forwardingFilter.enableName) filter.Name = forwardingFilter.name; 153 | if (forwardingFilter.enablePriority) filter.Priority = forwardingFilter.priority; 154 | 155 | foreach (var ruleListData in forwardingFilter.ruleLists) 156 | { 157 | var ruleList = new List(); 158 | foreach (var rule in ruleListData.data) 159 | { 160 | var newRule = new Sora.ForwardingFilter.Rule 161 | { 162 | Field = rule.field, 163 | Operator = rule.op 164 | }; 165 | newRule.Values.AddRange(rule.values); 166 | ruleList.Add(newRule); 167 | } 168 | filter.Rules.Add(ruleList); 169 | } 170 | 171 | if (forwardingFilter.enableVersion) filter.Version = forwardingFilter.version; 172 | if (forwardingFilter.enableMetadata) filter.Metadata = JsonUtility.ToJson(forwardingFilter.metadata); 173 | 174 | return filter; 175 | } 176 | 177 | [Header("ForwardingFilter の設定")] 178 | [System.Obsolete("forwardingFilter は非推奨です。代わりに forwardingFilters を使用してください。")] 179 | public bool enableForwardingFilter = false; 180 | [System.Obsolete("forwardingFilter は非推奨です。代わりに forwardingFilters を使用してください。")] 181 | public ForwardingFilter forwardingFilter; 182 | 183 | [Header("ForwardingFilters の設定")] 184 | public bool enableForwardingFilters = false; 185 | public ForwardingFilter[] forwardingFilters; 186 | 187 | [Header("DataChannel シグナリングの設定")] 188 | public bool dataChannelSignaling = false; 189 | public int dataChannelSignalingTimeout = 30; 190 | public bool ignoreDisconnectWebsocket = false; 191 | public int disconnectWaitTimeout = 5; 192 | 193 | [System.Serializable] 194 | public class DataChannel 195 | { 196 | public string label = ""; 197 | public Sora.Direction direction = Sora.Direction.Sendrecv; 198 | public bool enableOrdered; 199 | public bool ordered; 200 | public bool enableMaxPacketLifeTime; 201 | public int maxPacketLifeTime; 202 | public bool enableMaxRetransmits; 203 | public int maxRetransmits; 204 | public bool enableProtocol; 205 | public string protocol; 206 | public bool enableCompress; 207 | public bool compress; 208 | public bool enableHeader; 209 | public string[] header; 210 | } 211 | 212 | [Header("DataChannel メッセージングの設定")] 213 | public DataChannel[] dataChannels; 214 | string[] fixedDataChannelLabels; 215 | 216 | [Header("HTTP Proxy の設定")] 217 | public string proxyUrl; 218 | public string proxyUsername; 219 | public string proxyPassword; 220 | 221 | // Recvonly → 受信のみ 222 | // !Recvonly → 送信のみ、あるいは送受信のどちらか 223 | public bool Recvonly { get { return fixedSampleType == SampleType.MultiRecvonly; } } 224 | // Sendonly → 送信のみ 225 | // !Sendonly → 受信のみ、あるいは送受信のどちらか 226 | public bool Sendonly { get { return fixedSampleType == SampleType.MultiSendonly; } } 227 | 228 | public Sora.Role Role 229 | { 230 | get 231 | { 232 | return 233 | fixedSampleType == SampleType.MultiSendonly ? Sora.Role.Sendonly : 234 | fixedSampleType == SampleType.MultiRecvonly ? Sora.Role.Recvonly : Sora.Role.Sendrecv; 235 | } 236 | } 237 | 238 | Queue audioBuffer = new Queue(); 239 | int audioBufferSamples = 0; 240 | int audioBufferPosition = 0; 241 | 242 | void DumpDeviceInfo(string name, Sora.DeviceInfo[] infos) 243 | { 244 | Debug.LogFormat("------------ {0} --------------", name); 245 | foreach (var info in infos) 246 | { 247 | Debug.LogFormat("DeviceName={0} UniqueName={1}", info.DeviceName, info.UniqueName); 248 | } 249 | } 250 | 251 | // Start is called before the first frame update 252 | void Start() 253 | { 254 | #if !UNITY_EDITOR && UNITY_ANDROID 255 | // Unity for Android は、C# コード中に WebCamTexture や Microphone にアクセスすることで 256 | // 自動的に必要な権限を AndroidManifest.xml に追加してくれるため、ここで適当にアクセスしておく 257 | var x = WebCamTexture.devices; 258 | var y = Microphone.devices; 259 | #endif 260 | fixedSampleType = sampleType; 261 | 262 | DumpDeviceInfo("video capturer devices", Sora.GetVideoCapturerDevices()); 263 | DumpDeviceInfo("audio recording devices", Sora.GetAudioRecordingDevices()); 264 | DumpDeviceInfo("audio playout devices", Sora.GetAudioPlayoutDevices()); 265 | 266 | // 送信のみの場合はトラック追加の度にテクスチャを追加したりする必要は無いので、ここで初期化しておく。 267 | // 受信がある場合は表示する数が動的に変わるのでここで初期化することはできない。 268 | if (Sendonly) 269 | { 270 | var image = renderTarget.GetComponent(); 271 | image.texture = new Texture2D(640, 480, TextureFormat.RGBA32, false); 272 | } 273 | SetState(State.Init); 274 | StartCoroutine(Render()); 275 | StartCoroutine(GetStats()); 276 | } 277 | 278 | IEnumerator Render() 279 | { 280 | while (true) 281 | { 282 | yield return new WaitForEndOfFrame(); 283 | // Unity カメラの映像をキャプチャする 284 | // 必ず yield return new WaitForEndOfFrame() の後に呼び出すこと 285 | if (state == State.Started) 286 | { 287 | sora.OnRender(); 288 | } 289 | // Unity から出力された音を録音データとして Sora に渡す 290 | if (state == State.Started && unityAudioInput && !Recvonly) 291 | { 292 | var samples = AudioRenderer.GetSampleCountForCaptureFrame(); 293 | if (AudioSettings.speakerMode == AudioSpeakerMode.Stereo) 294 | { 295 | using (var buf = new Unity.Collections.NativeArray(samples * 2, Unity.Collections.Allocator.Temp)) 296 | { 297 | AudioRenderer.Render(buf); 298 | sora.ProcessAudio(buf.ToArray(), 0, samples); 299 | } 300 | } 301 | } 302 | } 303 | } 304 | IEnumerator GetStats() 305 | { 306 | while (true) 307 | { 308 | yield return new WaitForSeconds(10); 309 | if (state != State.Started) 310 | { 311 | continue; 312 | } 313 | 314 | sora.GetStats((stats) => 315 | { 316 | // ここは Unity スレッドとは別のスレッドで呼び出されるので注意すること 317 | Debug.LogFormat("GetStats: {0}", stats); 318 | }); 319 | } 320 | } 321 | 322 | // Update is called once per frame 323 | void Update() 324 | { 325 | if (sora == null) 326 | { 327 | return; 328 | } 329 | 330 | // 各種コールバックの呼び出し 331 | sora.DispatchEvents(); 332 | 333 | // DispatchEvents で OnDisconnect → DisposeSora と呼ばれて sora が null になることがある 334 | if (sora == null) 335 | { 336 | return; 337 | } 338 | 339 | // 送信してるカメラの映像と、受信した他人の映像をテクスチャにレンダリングする 340 | if (Sendonly) 341 | { 342 | if (trackId != 0) 343 | { 344 | var image = renderTarget.GetComponent(); 345 | sora.RenderTrackToTexture(trackId, image.texture); 346 | } 347 | } 348 | else 349 | { 350 | foreach (var track in tracks) 351 | { 352 | var image = track.Value.GetComponent(); 353 | sora.RenderTrackToTexture(track.Key, image.texture); 354 | } 355 | } 356 | } 357 | void OnChangeRoute() 358 | { 359 | if (audioOutputHelper == null) 360 | { 361 | return; 362 | } 363 | Debug.LogFormat("OnChangeRoute : " + (audioOutputHelper.IsHandsfree() ? "ハンズフリー OFF" : "ハンズフリー ON")); 364 | // ボタンのラベルを変更する 365 | buttonSwitchHandsfree.GetComponentInChildren().text = 366 | audioOutputHelper.IsHandsfree() ? "ハンズフリー ON" : "ハンズフリー OFF"; 367 | } 368 | void InitSora() 369 | { 370 | DisposeSora(); 371 | 372 | // 送信のみの場合は音声出力を行わないので、AudioOutputHelper を作成しない 373 | if (!Sendonly) 374 | { 375 | audioOutputHelper = Sora.AudioOutputHelperFactory.Create(OnChangeRoute); 376 | } 377 | 378 | sora = new Sora(); 379 | if (Sendonly) 380 | { 381 | // 送信のみなので、表示するのは自分のカメラだけになる 382 | sora.OnAddTrack = (trackId, connectionId) => 383 | { 384 | Debug.LogFormat("OnAddTrack: trackId={0}, connectionId={1}", trackId, connectionId); 385 | this.trackId = trackId; 386 | }; 387 | sora.OnRemoveTrack = (trackId, connectionId) => 388 | { 389 | Debug.LogFormat("OnRemoveTrack: trackId={0}, connectionId={1}", trackId, connectionId); 390 | this.trackId = 0; 391 | }; 392 | } 393 | else 394 | { 395 | // 受信する数は動的に増減するので、トラックが追加されるたびに 396 | // 動的に GameObject とテクスチャを追加して設定しておく 397 | sora.OnAddTrack = (trackId, connectionId) => 398 | { 399 | // connectionId == "" だったら送信者のカメラ映像用のトラックになるが、このサンプルでは区別する必要が無いので 400 | // どちらの場合でも気にせず GameObject を作成する 401 | Debug.LogFormat("OnAddTrack: trackId={0}, connectionId={1}", trackId, connectionId); 402 | var obj = GameObject.Instantiate(baseContent, Vector3.zero, Quaternion.identity); 403 | obj.name = string.Format("track {0}", trackId); 404 | obj.transform.SetParent(scrollViewContent.transform); 405 | obj.SetActive(true); 406 | var image = obj.GetComponent(); 407 | image.texture = new Texture2D(320, 240, TextureFormat.RGBA32, false); 408 | tracks.Add(trackId, obj); 409 | }; 410 | sora.OnRemoveTrack = (trackId, connectionId) => 411 | { 412 | Debug.LogFormat("OnRemoveTrack: trackId={0}, connectionId={1}", trackId, connectionId); 413 | if (tracks.ContainsKey(trackId)) 414 | { 415 | var obj = tracks[trackId]; 416 | var image = obj.GetComponent(); 417 | GameObject.Destroy(image.texture); 418 | GameObject.Destroy(obj); 419 | tracks.Remove(trackId); 420 | } 421 | }; 422 | } 423 | sora.OnSetOffer = (json) => 424 | { 425 | Debug.LogFormat("OnSetOffer: {0}", json); 426 | }; 427 | sora.OnNotify = (json) => 428 | { 429 | Debug.LogFormat("OnNotify: {0}", json); 430 | }; 431 | sora.OnPush = (json) => 432 | { 433 | Debug.LogFormat("OnPush: {0}", json); 434 | }; 435 | // これは別スレッドからやってくるので注意すること 436 | sora.OnHandleAudio = (buf, samples, channels) => 437 | { 438 | lock (audioBuffer) 439 | { 440 | audioBuffer.Enqueue(buf); 441 | audioBufferSamples += samples; 442 | } 443 | }; 444 | sora.OnMessage = (label, data) => 445 | { 446 | Debug.LogFormat("OnMessage: label={0} data={1}", label, System.Text.Encoding.UTF8.GetString(data)); 447 | }; 448 | // 切断時のコールバック 449 | // sora.Connect() を呼び出した後、エラー時や切断時に1回だけ OnDisconnect が呼ばれる。 450 | sora.OnDisconnect = (code, message) => 451 | { 452 | Debug.LogFormat("OnDisconnect: code={0} message={1}", code.ToString(), message); 453 | // sora.Dispose() は必ず OnDisconnect を受信してから行うこと。 454 | DisposeSora(); 455 | }; 456 | sora.OnDataChannel = (label) => 457 | { 458 | Debug.LogFormat("OnDataChannel: label={0}", label); 459 | }; 460 | // カメラデバイスから取得したフレーム情報を受け取るコールバック。 461 | // これは別スレッドからやってくるので注意すること。 462 | // また、このコールバックの範囲外ではポインタは無効になるので必要に応じてデータをコピーして利用すること。 463 | sora.OnCapturerFrame = (frame) => 464 | { 465 | // var vfb = frame.video_frame_buffer; 466 | // Debug.LogFormat("OnCapturerFrame: type={0} width={1} height={2}", vfb.type, vfb.width, vfb.height); 467 | 468 | // // I420 の映像データを byte[] にコピーする 469 | // if (vfb.type == SoraConf.VideoFrameBuffer.Type.kI420) 470 | // { 471 | // var size_y = vfb.i420_stride_y * vfb.height; 472 | // var data_y = new byte[size_y]; 473 | // Marshal.Copy((IntPtr)vfb.i420_data_y, data_y, 0, size_y); 474 | 475 | // var size_u = vfb.i420_stride_u * ((vfb.height + 1) / 2); 476 | // var data_u = new byte[size_u]; 477 | // Marshal.Copy((IntPtr)vfb.i420_data_u, data_u, 0, size_u); 478 | 479 | // var size_v = vfb.i420_stride_v * ((vfb.height + 1) / 2); 480 | // var data_v = new byte[size_v]; 481 | // Marshal.Copy((IntPtr)vfb.i420_data_v, data_v, 0, size_v); 482 | // } 483 | }; 484 | 485 | if (unityAudioOutput) 486 | { 487 | // 再生デバイスから再生する代わりに、AudioSource を利用して再生する 488 | var audioClip = AudioClip.Create("AudioClip", 480000, 1, 48000, true, (data) => 489 | { 490 | lock (audioBuffer) 491 | { 492 | if (audioBuffer.Count == 0 || audioBufferSamples < data.Length) 493 | { 494 | for (int i = 0; i < data.Length; i++) 495 | { 496 | data[i] = 0.0f; 497 | } 498 | return; 499 | } 500 | 501 | var p = audioBuffer.Peek(); 502 | for (int i = 0; i < data.Length; i++) 503 | { 504 | while (audioBufferPosition >= p.Length) 505 | { 506 | audioBuffer.Dequeue(); 507 | p = audioBuffer.Peek(); 508 | audioBufferPosition = 0; 509 | } 510 | data[i] = p[audioBufferPosition] / 32768.0f; 511 | ++audioBufferPosition; 512 | } 513 | audioBufferSamples -= data.Length; 514 | } 515 | }); 516 | audioSourceOutput.clip = audioClip; 517 | audioSourceOutput.Play(); 518 | } 519 | 520 | if (unityAudioInput && !Recvonly) 521 | { 522 | // Unity で再生する音を録音データとしてキャプチャできるようにする 523 | AudioRenderer.Start(); 524 | // Unity 内で音を鳴らさないと無音をキャプチャし続けることになって正しく動作してるか分からないので、 525 | // 適当な音を無限ループで鳴らしておく 526 | audioSourceInput.Play(); 527 | } 528 | } 529 | // Sora を切断する。 530 | // sora.Disconnect() は非同期処理であるため、この時点ではまだ sora.Dispose() を呼び出してはいけない。 531 | void DisconnectSora() 532 | { 533 | if (sora == null) 534 | { 535 | return; 536 | } 537 | sora.Disconnect(); 538 | DestroyComponents(); 539 | SetState(State.Disconnecting); 540 | } 541 | void DestroyComponents() 542 | { 543 | if (state != State.Started) 544 | { 545 | return; 546 | } 547 | 548 | if (!Sendonly) 549 | { 550 | foreach (var track in tracks) 551 | { 552 | var obj = track.Value; 553 | var image = obj.GetComponent(); 554 | GameObject.Destroy(image.texture); 555 | GameObject.Destroy(obj); 556 | } 557 | tracks.Clear(); 558 | } 559 | if (unityAudioInput && !Recvonly) 560 | { 561 | audioSourceInput.Stop(); 562 | AudioRenderer.Stop(); 563 | } 564 | 565 | if (unityAudioOutput) 566 | { 567 | audioSourceOutput.Stop(); 568 | } 569 | } 570 | void DisposeSora() 571 | { 572 | if (sora == null) 573 | { 574 | return; 575 | } 576 | sora.Dispose(); 577 | sora = null; 578 | if (audioOutputHelper != null) 579 | { 580 | audioOutputHelper.Dispose(); 581 | audioOutputHelper = null; 582 | } 583 | Debug.Log("Sora is Disposed"); 584 | DestroyComponents(); 585 | SetState(State.Init); 586 | } 587 | 588 | void SetState(State state) 589 | { 590 | if (state == State.Init) 591 | { 592 | buttonStart.interactable = true; 593 | buttonEnd.interactable = false; 594 | buttonSend.interactable = false; 595 | if (buttonVideoMute != null) buttonVideoMute.interactable = false; 596 | if (buttonAudioMute != null) buttonAudioMute.interactable = false; 597 | } 598 | if (state == State.Started) 599 | { 600 | buttonStart.interactable = false; 601 | buttonEnd.interactable = true; 602 | buttonSend.interactable = true; 603 | if (buttonVideoMute != null) buttonVideoMute.interactable = true; 604 | if (buttonAudioMute != null) buttonAudioMute.interactable = true; 605 | } 606 | if (state == State.Disconnecting) 607 | { 608 | buttonStart.interactable = false; 609 | buttonEnd.interactable = false; 610 | buttonSend.interactable = false; 611 | if (buttonVideoMute != null) buttonVideoMute.interactable = false; 612 | if (buttonAudioMute != null) buttonAudioMute.interactable = false; 613 | } 614 | this.state = state; 615 | } 616 | 617 | [Serializable] 618 | class Settings 619 | { 620 | public string signaling_url = ""; 621 | public string[] signaling_url_candidate = new string[0]; 622 | public string channel_id = ""; 623 | public string access_token = ""; 624 | } 625 | 626 | [Serializable] 627 | class SignalingNotifyMetadata 628 | { 629 | public string message; 630 | } 631 | 632 | [Serializable] 633 | class Metadata 634 | { 635 | public string access_token; 636 | } 637 | [Serializable] 638 | class VideoVp9Params 639 | { 640 | public int profile_id; 641 | } 642 | [Serializable] 643 | class VideoAv1Params 644 | { 645 | public int profile; 646 | } 647 | [Serializable] 648 | class VideoH264Params 649 | { 650 | public string profile_level_id; 651 | } 652 | 653 | public void OnClickStart() 654 | { 655 | 656 | // 開発用の機能。 657 | // .env.json ファイルがあったら、それを読んでシグナリングURLとチャンネルIDを設定する。 658 | if (signalingUrl.Length == 0 && channelId.Length == 0 && System.IO.File.Exists(".env.json")) 659 | { 660 | var settings = JsonUtility.FromJson(System.IO.File.ReadAllText(".env.json")); 661 | signalingUrl = settings.signaling_url; 662 | signalingUrlCandidate = settings.signaling_url_candidate; 663 | channelId = settings.channel_id; 664 | metadataAccessToken = settings.access_token; 665 | } 666 | 667 | if (signalingUrl.Length == 0 && signalingUrlCandidate.Length == 0) 668 | { 669 | Debug.LogError("シグナリング URL が設定されていません"); 670 | return; 671 | } 672 | if (channelId.Length == 0) 673 | { 674 | Debug.LogError("チャンネル ID が設定されていません"); 675 | return; 676 | } 677 | // signalingNotifyMetadataMessage がある場合はメタデータを設定する 678 | string signalingNotifyMetadata = ""; 679 | if (signalingNotifyMetadataMessage.Length != 0) 680 | { 681 | var snmd = new SignalingNotifyMetadata() 682 | { 683 | message = signalingNotifyMetadataMessage 684 | }; 685 | signalingNotifyMetadata = JsonUtility.ToJson(snmd); 686 | } 687 | // metadataAccessToken がある場合はメタデータを設定する 688 | string metadata = ""; 689 | if (metadataAccessToken.Length != 0) 690 | { 691 | var md = new Metadata() 692 | { 693 | access_token = metadataAccessToken 694 | }; 695 | metadata = JsonUtility.ToJson(md); 696 | } 697 | // enableVideoVp9Params が true の場合はメタデータを設定する 698 | string videoVp9ParamsJson = ""; 699 | if (enableVideoVp9Params) 700 | { 701 | var vp9Params = new VideoVp9Params() 702 | { 703 | profile_id = videoVp9ParamsProfileId 704 | }; 705 | videoVp9ParamsJson = JsonUtility.ToJson(vp9Params); 706 | } 707 | // enableVideoAv1Params が true の場合はメタデータを設定する 708 | string videoAv1ParamsJson = ""; 709 | if (enableVideoAv1Params) 710 | { 711 | var av1Params = new VideoAv1Params() 712 | { 713 | profile = videoAv1ParamsProfile 714 | }; 715 | videoAv1ParamsJson = JsonUtility.ToJson(av1Params); 716 | } 717 | // enableVideoH264Params が true の場合はメタデータを設定する 718 | string videoH264ParamsJson = ""; 719 | if (enableVideoH264Params) 720 | { 721 | var h264Params = new VideoH264Params() 722 | { 723 | profile_level_id = videoH264ParamsProfileLevelId 724 | }; 725 | videoH264ParamsJson = JsonUtility.ToJson(h264Params); 726 | } 727 | 728 | InitSora(); 729 | 730 | int videoWidth; 731 | int videoHeight; 732 | GetVideoSize(videoSize, out videoWidth, out videoHeight); 733 | 734 | var config = new Sora.Config() 735 | { 736 | SignalingUrl = signalingUrl, 737 | SignalingUrlCandidate = signalingUrlCandidate, 738 | ChannelId = channelId, 739 | ClientId = clientId, 740 | BundleId = bundleId, 741 | SignalingNotifyMetadata = signalingNotifyMetadata, 742 | Metadata = metadata, 743 | Role = Role, 744 | Multistream = true, 745 | Insecure = insecure, 746 | Video = video, 747 | NoVideoDevice = noVideoDevice, 748 | Audio = audio, 749 | NoAudioDevice = noAudioDevice, 750 | UseHardwareEncoder = useHardwareEncoder, 751 | VideoCodecType = videoCodecType, 752 | VideoVp9Params = videoVp9ParamsJson, 753 | VideoAv1Params = videoAv1ParamsJson, 754 | VideoH264Params = videoH264ParamsJson, 755 | VideoBitRate = videoBitRate, 756 | CameraConfig = new Sora.CameraConfig() 757 | { 758 | CapturerType = captureUnityCamera && capturedCamera != null ? Sora.CapturerType.UnityCamera : Sora.CapturerType.DeviceCamera, 759 | UnityCamera = capturedCamera, 760 | VideoFps = videoFps, 761 | VideoWidth = videoWidth, 762 | VideoHeight = videoHeight, 763 | VideoCapturerDevice = videoCapturerDevice, 764 | }, 765 | AudioCodecType = audioCodecType, 766 | AudioStreamingLanguageCode = audioStreamingLanguageCode, 767 | UnityAudioInput = unityAudioInput, 768 | UnityAudioOutput = unityAudioOutput, 769 | AudioRecordingDevice = audioRecordingDevice, 770 | AudioPlayoutDevice = audioPlayoutDevice, 771 | Spotlight = spotlight, 772 | SpotlightNumber = spotlightNumber, 773 | Simulcast = simulcast, 774 | // EnableDataChannelSignaling と DataChannelSignaling に dataChannelSignaling を指定しているが、 775 | // この実装だと dataChannelSignaling == false の場合は data_channel_signaling が無指定になるので、 776 | // サーバ側の判断によっては DC に切り替えられる可能性がある。 777 | EnableDataChannelSignaling = dataChannelSignaling, 778 | DataChannelSignaling = dataChannelSignaling, 779 | DataChannelSignalingTimeout = dataChannelSignalingTimeout, 780 | // EnableIgnoreDisconnectWebsocket と IgnoreDisconnectWebsocket に ignoreDisconnectWebsocket を指定しているが、 781 | // これも dataChannelSignaling と同じようにサーバ側の判断によっては切断される可能性がある。 782 | EnableIgnoreDisconnectWebsocket = ignoreDisconnectWebsocket, 783 | IgnoreDisconnectWebsocket = ignoreDisconnectWebsocket, 784 | DisconnectWaitTimeout = disconnectWaitTimeout, 785 | ProxyUrl = proxyUrl, 786 | ProxyUsername = proxyUsername, 787 | ProxyPassword = proxyPassword, 788 | }; 789 | if (enableSpotlightFocusRid) 790 | { 791 | config.SpotlightFocusRid = spotlightFocusRid; 792 | } 793 | if (enableSpotlightUnfocusRid) 794 | { 795 | config.SpotlightUnfocusRid = spotlightUnfocusRid; 796 | } 797 | if (enableSimulcastRid) 798 | { 799 | config.SimulcastRid = simulcastRid; 800 | } 801 | if (dataChannels != null) 802 | { 803 | foreach (var m in dataChannels) 804 | { 805 | var c = new Sora.DataChannel(); 806 | c.Label = m.label; 807 | c.Direction = m.direction; 808 | if (m.enableOrdered) c.Ordered = m.ordered; 809 | if (m.enableMaxPacketLifeTime) c.MaxPacketLifeTime = m.maxPacketLifeTime; 810 | if (m.enableMaxRetransmits) c.MaxRetransmits = m.maxRetransmits; 811 | if (m.enableProtocol) c.Protocol = m.protocol; 812 | if (m.enableCompress) c.Compress = m.compress; 813 | if (m.enableHeader) c.Header = m.header.ToList(); 814 | config.DataChannels.Add(c); 815 | } 816 | fixedDataChannelLabels = config.DataChannels.Select(x => x.Label).ToArray(); 817 | } 818 | if (enableForwardingFilter) 819 | { 820 | config.ForwardingFilter = ConvertToSoraForwardingFilter(forwardingFilter); 821 | } 822 | if (enableForwardingFilters) 823 | { 824 | config.ForwardingFilters = new List(); 825 | 826 | foreach (var filter in forwardingFilters) 827 | { 828 | var newFilter = ConvertToSoraForwardingFilter(filter); 829 | config.ForwardingFilters.Add(newFilter); 830 | } 831 | } 832 | sora.Connect(config); 833 | SetState(State.Started); 834 | Debug.LogFormat("Sora is Created: signalingUrl={0}, channelId={1}", signalingUrl, channelId); 835 | } 836 | 837 | private static void GetVideoSize(VideoSize videoSize, out int videoWidth, out int videoHeight) 838 | { 839 | videoWidth = 640; 840 | videoHeight = 480; 841 | 842 | switch (videoSize) 843 | { 844 | case VideoSize.QVGA: 845 | videoWidth = 320; 846 | videoHeight = 240; 847 | break; 848 | case VideoSize.VGA: 849 | videoWidth = 640; 850 | videoHeight = 480; 851 | break; 852 | case VideoSize.HD: 853 | videoWidth = 1280; 854 | videoHeight = 720; 855 | break; 856 | case VideoSize.FHD: 857 | videoWidth = 1920; 858 | videoHeight = 1080; 859 | break; 860 | case VideoSize._4K: 861 | videoWidth = 3840; 862 | videoHeight = 2160; 863 | break; 864 | } 865 | } 866 | 867 | public void OnClickEnd() 868 | { 869 | DisconnectSora(); 870 | } 871 | 872 | public void OnClickSend() 873 | { 874 | if (fixedDataChannelLabels == null || sora == null) 875 | { 876 | return; 877 | } 878 | // DataChannel メッセージを使って全てのラベルに適当なデータを送る 879 | foreach (var label in fixedDataChannelLabels) 880 | { 881 | string message = "aaa"; 882 | sora.SendMessage(label, System.Text.Encoding.UTF8.GetBytes(message)); 883 | } 884 | } 885 | 886 | public void OnClickVideoMute() 887 | { 888 | if (sora == null) 889 | { 890 | return; 891 | } 892 | sora.VideoEnabled = !sora.VideoEnabled; 893 | } 894 | public void OnClickAudioMute() 895 | { 896 | if (sora == null) 897 | { 898 | return; 899 | } 900 | sora.AudioEnabled = !sora.AudioEnabled; 901 | } 902 | 903 | public void OnClickSwitchCamera() 904 | { 905 | if (sora == null) 906 | { 907 | return; 908 | } 909 | int videoWidth; 910 | int videoHeight; 911 | GetVideoSize(videoSize, out videoWidth, out videoHeight); 912 | 913 | if (captureUnityCamera) 914 | { 915 | sora.SwitchCamera(Sora.CameraConfig.FromDeviceCamera(videoCapturerDevice, videoWidth, videoHeight, videoFps)); 916 | captureUnityCamera = false; 917 | } 918 | else 919 | { 920 | sora.SwitchCamera(Sora.CameraConfig.FromUnityCamera(capturedCamera, 16, videoWidth, videoHeight, videoFps)); 921 | captureUnityCamera = true; 922 | } 923 | } 924 | 925 | void OnApplicationQuit() 926 | { 927 | DisposeSora(); 928 | } 929 | public void OnClickHandsfree() 930 | { 931 | if (audioOutputHelper == null) 932 | { 933 | return; 934 | } 935 | audioOutputHelper.SetHandsfree(!audioOutputHelper.IsHandsfree()); 936 | } 937 | } -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/SoraSample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55ab6b1a03c1f314bbb0a245b1741ad7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/decision1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiguredo/sora-unity-sdk-samples/9e1112d606c57ac68ca61c0638dfcc70cf1f6cc9/SoraUnitySdkSamples/Assets/decision1.mp3 -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Assets/decision1.mp3.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d8cecafef7fe024184a0eeaf14aa9e8 3 | AudioImporter: 4 | externalObjects: {} 5 | serializedVersion: 6 6 | defaultSettings: 7 | loadType: 0 8 | sampleRateSetting: 0 9 | sampleRateOverride: 44100 10 | compressionFormat: 1 11 | quality: 1 12 | conversionMode: 0 13 | platformSettingOverrides: {} 14 | forceToMono: 0 15 | normalize: 1 16 | preloadAudioData: 1 17 | loadInBackground: 0 18 | ambisonic: 0 19 | 3D: 1 20 | userData: 21 | assetBundleName: 22 | assetBundleVariant: 23 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ai.navigation": "1.1.5", 4 | "com.unity.collab-proxy": "2.1.0", 5 | "com.unity.ide.rider": "3.0.25", 6 | "com.unity.ide.visualstudio": "2.0.21", 7 | "com.unity.ide.vscode": "1.2.5", 8 | "com.unity.test-framework": "1.1.33", 9 | "com.unity.textmeshpro": "3.0.6", 10 | "com.unity.ugui": "1.0.0", 11 | "com.unity.modules.ai": "1.0.0", 12 | "com.unity.modules.androidjni": "1.0.0", 13 | "com.unity.modules.animation": "1.0.0", 14 | "com.unity.modules.assetbundle": "1.0.0", 15 | "com.unity.modules.audio": "1.0.0", 16 | "com.unity.modules.cloth": "1.0.0", 17 | "com.unity.modules.director": "1.0.0", 18 | "com.unity.modules.imageconversion": "1.0.0", 19 | "com.unity.modules.imgui": "1.0.0", 20 | "com.unity.modules.jsonserialize": "1.0.0", 21 | "com.unity.modules.particlesystem": "1.0.0", 22 | "com.unity.modules.physics": "1.0.0", 23 | "com.unity.modules.physics2d": "1.0.0", 24 | "com.unity.modules.screencapture": "1.0.0", 25 | "com.unity.modules.terrain": "1.0.0", 26 | "com.unity.modules.terrainphysics": "1.0.0", 27 | "com.unity.modules.tilemap": "1.0.0", 28 | "com.unity.modules.ui": "1.0.0", 29 | "com.unity.modules.uielements": "1.0.0", 30 | "com.unity.modules.umbra": "1.0.0", 31 | "com.unity.modules.unityanalytics": "1.0.0", 32 | "com.unity.modules.unitywebrequest": "1.0.0", 33 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 34 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 35 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 36 | "com.unity.modules.unitywebrequestwww": "1.0.0", 37 | "com.unity.modules.vehicles": "1.0.0", 38 | "com.unity.modules.video": "1.0.0", 39 | "com.unity.modules.vr": "1.0.0", 40 | "com.unity.modules.wind": "1.0.0", 41 | "com.unity.modules.xr": "1.0.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ai.navigation": { 4 | "version": "1.1.5", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.modules.ai": "1.0.0" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.collab-proxy": { 13 | "version": "2.1.0", 14 | "depth": 0, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.ext.nunit": { 20 | "version": "1.0.6", 21 | "depth": 1, 22 | "source": "registry", 23 | "dependencies": {}, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ide.rider": { 27 | "version": "3.0.25", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": { 31 | "com.unity.ext.nunit": "1.0.6" 32 | }, 33 | "url": "https://packages.unity.com" 34 | }, 35 | "com.unity.ide.visualstudio": { 36 | "version": "2.0.21", 37 | "depth": 0, 38 | "source": "registry", 39 | "dependencies": { 40 | "com.unity.test-framework": "1.1.9" 41 | }, 42 | "url": "https://packages.unity.com" 43 | }, 44 | "com.unity.ide.vscode": { 45 | "version": "1.2.5", 46 | "depth": 0, 47 | "source": "registry", 48 | "dependencies": {}, 49 | "url": "https://packages.unity.com" 50 | }, 51 | "com.unity.test-framework": { 52 | "version": "1.1.33", 53 | "depth": 0, 54 | "source": "registry", 55 | "dependencies": { 56 | "com.unity.ext.nunit": "1.0.6", 57 | "com.unity.modules.imgui": "1.0.0", 58 | "com.unity.modules.jsonserialize": "1.0.0" 59 | }, 60 | "url": "https://packages.unity.com" 61 | }, 62 | "com.unity.textmeshpro": { 63 | "version": "3.0.6", 64 | "depth": 0, 65 | "source": "registry", 66 | "dependencies": { 67 | "com.unity.ugui": "1.0.0" 68 | }, 69 | "url": "https://packages.unity.com" 70 | }, 71 | "com.unity.ugui": { 72 | "version": "1.0.0", 73 | "depth": 0, 74 | "source": "builtin", 75 | "dependencies": { 76 | "com.unity.modules.ui": "1.0.0", 77 | "com.unity.modules.imgui": "1.0.0" 78 | } 79 | }, 80 | "com.unity.modules.ai": { 81 | "version": "1.0.0", 82 | "depth": 0, 83 | "source": "builtin", 84 | "dependencies": {} 85 | }, 86 | "com.unity.modules.androidjni": { 87 | "version": "1.0.0", 88 | "depth": 0, 89 | "source": "builtin", 90 | "dependencies": {} 91 | }, 92 | "com.unity.modules.animation": { 93 | "version": "1.0.0", 94 | "depth": 0, 95 | "source": "builtin", 96 | "dependencies": {} 97 | }, 98 | "com.unity.modules.assetbundle": { 99 | "version": "1.0.0", 100 | "depth": 0, 101 | "source": "builtin", 102 | "dependencies": {} 103 | }, 104 | "com.unity.modules.audio": { 105 | "version": "1.0.0", 106 | "depth": 0, 107 | "source": "builtin", 108 | "dependencies": {} 109 | }, 110 | "com.unity.modules.cloth": { 111 | "version": "1.0.0", 112 | "depth": 0, 113 | "source": "builtin", 114 | "dependencies": { 115 | "com.unity.modules.physics": "1.0.0" 116 | } 117 | }, 118 | "com.unity.modules.director": { 119 | "version": "1.0.0", 120 | "depth": 0, 121 | "source": "builtin", 122 | "dependencies": { 123 | "com.unity.modules.audio": "1.0.0", 124 | "com.unity.modules.animation": "1.0.0" 125 | } 126 | }, 127 | "com.unity.modules.imageconversion": { 128 | "version": "1.0.0", 129 | "depth": 0, 130 | "source": "builtin", 131 | "dependencies": {} 132 | }, 133 | "com.unity.modules.imgui": { 134 | "version": "1.0.0", 135 | "depth": 0, 136 | "source": "builtin", 137 | "dependencies": {} 138 | }, 139 | "com.unity.modules.jsonserialize": { 140 | "version": "1.0.0", 141 | "depth": 0, 142 | "source": "builtin", 143 | "dependencies": {} 144 | }, 145 | "com.unity.modules.particlesystem": { 146 | "version": "1.0.0", 147 | "depth": 0, 148 | "source": "builtin", 149 | "dependencies": {} 150 | }, 151 | "com.unity.modules.physics": { 152 | "version": "1.0.0", 153 | "depth": 0, 154 | "source": "builtin", 155 | "dependencies": {} 156 | }, 157 | "com.unity.modules.physics2d": { 158 | "version": "1.0.0", 159 | "depth": 0, 160 | "source": "builtin", 161 | "dependencies": {} 162 | }, 163 | "com.unity.modules.screencapture": { 164 | "version": "1.0.0", 165 | "depth": 0, 166 | "source": "builtin", 167 | "dependencies": { 168 | "com.unity.modules.imageconversion": "1.0.0" 169 | } 170 | }, 171 | "com.unity.modules.subsystems": { 172 | "version": "1.0.0", 173 | "depth": 1, 174 | "source": "builtin", 175 | "dependencies": { 176 | "com.unity.modules.jsonserialize": "1.0.0" 177 | } 178 | }, 179 | "com.unity.modules.terrain": { 180 | "version": "1.0.0", 181 | "depth": 0, 182 | "source": "builtin", 183 | "dependencies": {} 184 | }, 185 | "com.unity.modules.terrainphysics": { 186 | "version": "1.0.0", 187 | "depth": 0, 188 | "source": "builtin", 189 | "dependencies": { 190 | "com.unity.modules.physics": "1.0.0", 191 | "com.unity.modules.terrain": "1.0.0" 192 | } 193 | }, 194 | "com.unity.modules.tilemap": { 195 | "version": "1.0.0", 196 | "depth": 0, 197 | "source": "builtin", 198 | "dependencies": { 199 | "com.unity.modules.physics2d": "1.0.0" 200 | } 201 | }, 202 | "com.unity.modules.ui": { 203 | "version": "1.0.0", 204 | "depth": 0, 205 | "source": "builtin", 206 | "dependencies": {} 207 | }, 208 | "com.unity.modules.uielements": { 209 | "version": "1.0.0", 210 | "depth": 0, 211 | "source": "builtin", 212 | "dependencies": { 213 | "com.unity.modules.ui": "1.0.0", 214 | "com.unity.modules.imgui": "1.0.0", 215 | "com.unity.modules.jsonserialize": "1.0.0" 216 | } 217 | }, 218 | "com.unity.modules.umbra": { 219 | "version": "1.0.0", 220 | "depth": 0, 221 | "source": "builtin", 222 | "dependencies": {} 223 | }, 224 | "com.unity.modules.unityanalytics": { 225 | "version": "1.0.0", 226 | "depth": 0, 227 | "source": "builtin", 228 | "dependencies": { 229 | "com.unity.modules.unitywebrequest": "1.0.0", 230 | "com.unity.modules.jsonserialize": "1.0.0" 231 | } 232 | }, 233 | "com.unity.modules.unitywebrequest": { 234 | "version": "1.0.0", 235 | "depth": 0, 236 | "source": "builtin", 237 | "dependencies": {} 238 | }, 239 | "com.unity.modules.unitywebrequestassetbundle": { 240 | "version": "1.0.0", 241 | "depth": 0, 242 | "source": "builtin", 243 | "dependencies": { 244 | "com.unity.modules.assetbundle": "1.0.0", 245 | "com.unity.modules.unitywebrequest": "1.0.0" 246 | } 247 | }, 248 | "com.unity.modules.unitywebrequestaudio": { 249 | "version": "1.0.0", 250 | "depth": 0, 251 | "source": "builtin", 252 | "dependencies": { 253 | "com.unity.modules.unitywebrequest": "1.0.0", 254 | "com.unity.modules.audio": "1.0.0" 255 | } 256 | }, 257 | "com.unity.modules.unitywebrequesttexture": { 258 | "version": "1.0.0", 259 | "depth": 0, 260 | "source": "builtin", 261 | "dependencies": { 262 | "com.unity.modules.unitywebrequest": "1.0.0", 263 | "com.unity.modules.imageconversion": "1.0.0" 264 | } 265 | }, 266 | "com.unity.modules.unitywebrequestwww": { 267 | "version": "1.0.0", 268 | "depth": 0, 269 | "source": "builtin", 270 | "dependencies": { 271 | "com.unity.modules.unitywebrequest": "1.0.0", 272 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 273 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 274 | "com.unity.modules.audio": "1.0.0", 275 | "com.unity.modules.assetbundle": "1.0.0", 276 | "com.unity.modules.imageconversion": "1.0.0" 277 | } 278 | }, 279 | "com.unity.modules.vehicles": { 280 | "version": "1.0.0", 281 | "depth": 0, 282 | "source": "builtin", 283 | "dependencies": { 284 | "com.unity.modules.physics": "1.0.0" 285 | } 286 | }, 287 | "com.unity.modules.video": { 288 | "version": "1.0.0", 289 | "depth": 0, 290 | "source": "builtin", 291 | "dependencies": { 292 | "com.unity.modules.audio": "1.0.0", 293 | "com.unity.modules.ui": "1.0.0", 294 | "com.unity.modules.unitywebrequest": "1.0.0" 295 | } 296 | }, 297 | "com.unity.modules.vr": { 298 | "version": "1.0.0", 299 | "depth": 0, 300 | "source": "builtin", 301 | "dependencies": { 302 | "com.unity.modules.jsonserialize": "1.0.0", 303 | "com.unity.modules.physics": "1.0.0", 304 | "com.unity.modules.xr": "1.0.0" 305 | } 306 | }, 307 | "com.unity.modules.wind": { 308 | "version": "1.0.0", 309 | "depth": 0, 310 | "source": "builtin", 311 | "dependencies": {} 312 | }, 313 | "com.unity.modules.xr": { 314 | "version": "1.0.0", 315 | "depth": 0, 316 | "source": "builtin", 317 | "dependencies": { 318 | "com.unity.modules.physics": "1.0.0", 319 | "com.unity.modules.jsonserialize": "1.0.0", 320 | "com.unity.modules.subsystems": "1.0.0" 321 | } 322 | } 323 | } 324 | } 325 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 256 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 256 20 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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: 11 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: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 41 | - {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0} 42 | m_PreloadedShaders: [] 43 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 44 | type: 0} 45 | m_CustomRenderPipeline: {fileID: 0} 46 | m_TransparencySortMode: 0 47 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 48 | m_DefaultRenderingPath: 1 49 | m_DefaultMobileRenderingPath: 1 50 | m_TierSettings: 51 | - serializedVersion: 5 52 | m_BuildTarget: 1 53 | m_Tier: 2 54 | m_Settings: 55 | standardShaderQuality: 2 56 | renderingPath: 1 57 | hdrMode: 1 58 | realtimeGICPUUsage: 50 59 | useReflectionProbeBoxProjection: 1 60 | useReflectionProbeBlending: 1 61 | useHDR: 1 62 | useDetailNormalMap: 1 63 | useCascadedShadowMaps: 1 64 | prefer32BitShadowMaps: 0 65 | enableLPPV: 1 66 | useDitherMaskForAlphaBlendedShadows: 1 67 | m_Automatic: 1 68 | m_LightmapStripping: 0 69 | m_FogStripping: 0 70 | m_InstancingStripping: 0 71 | m_LightmapKeepPlain: 1 72 | m_LightmapKeepDirCombined: 1 73 | m_LightmapKeepDynamicPlain: 1 74 | m_LightmapKeepDynamicDirCombined: 1 75 | m_LightmapKeepShadowMask: 1 76 | m_LightmapKeepSubtractive: 1 77 | m_FogKeepLinear: 1 78 | m_FogKeepExp: 1 79 | m_FogKeepExp2: 1 80 | m_AlbedoSwatchInfos: [] 81 | m_LightsUseLinearIntensity: 0 82 | m_LightsUseColorTemperature: 0 83 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 0 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_UserSelectedRegistryName: 29 | m_UserAddingNewScopedRegistry: 0 30 | m_RegistryInfoDraft: 31 | m_Modified: 0 32 | m_ErrorMessage: 33 | m_UserModificationsInstanceId: -836 34 | m_OriginalInstanceId: -838 35 | m_LoadAssets: 0 36 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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: 4 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_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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: 23 7 | productGUID: 8b98dd25d2dc12b469429d7e0cc98ecc 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: Shiguredo 16 | productName: SoraUnitySdkSamples 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 0 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 1 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 1 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 1 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 3 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 0 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 0 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 0.1 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 1 143 | xboxOneEnable7thCore: 1 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | enableOpenGLProfilerGPURecorders: 1 149 | useHDRDisplay: 0 150 | D3DHDRBitDepth: 0 151 | m_ColorGamuts: 00000000 152 | targetPixelDensity: 30 153 | resolutionScalingMode: 0 154 | resetResolutionOnWindowResize: 0 155 | androidSupportedAspectRatio: 1 156 | androidMaxAspectRatio: 2.1 157 | applicationIdentifier: 158 | Android: jp.shiguredo.SoraUnitySdkSamples 159 | iPhone: jp.shiguredo.SoraUnitySdkSamples 160 | buildNumber: 161 | Standalone: 0 162 | iPhone: 0 163 | tvOS: 0 164 | overrideDefaultApplicationIdentifier: 1 165 | AndroidBundleVersionCode: 1 166 | AndroidMinSdkVersion: 23 167 | AndroidTargetSdkVersion: 0 168 | AndroidPreferredInstallLocation: 1 169 | aotOptions: 170 | stripEngineCode: 1 171 | iPhoneStrippingLevel: 0 172 | iPhoneScriptCallOptimization: 0 173 | ForceInternetPermission: 1 174 | ForceSDCardPermission: 0 175 | CreateWallpaper: 0 176 | APKExpansionFiles: 0 177 | keepLoadedShadersAlive: 0 178 | StripUnusedMeshComponents: 1 179 | VertexChannelCompressionMask: 4054 180 | iPhoneSdkVersion: 988 181 | iOSTargetOSVersionString: 13.0 182 | tvOSSdkVersion: 0 183 | tvOSRequireExtendedGameController: 0 184 | tvOSTargetOSVersionString: 11.0 185 | uIPrerenderedIcon: 0 186 | uIRequiresPersistentWiFi: 0 187 | uIRequiresFullScreen: 1 188 | uIStatusBarHidden: 1 189 | uIExitOnSuspend: 0 190 | uIStatusBarStyle: 0 191 | appleTVSplashScreen: {fileID: 0} 192 | appleTVSplashScreen2x: {fileID: 0} 193 | tvOSSmallIconLayers: [] 194 | tvOSSmallIconLayers2x: [] 195 | tvOSLargeIconLayers: [] 196 | tvOSLargeIconLayers2x: [] 197 | tvOSTopShelfImageLayers: [] 198 | tvOSTopShelfImageLayers2x: [] 199 | tvOSTopShelfImageWideLayers: [] 200 | tvOSTopShelfImageWideLayers2x: [] 201 | iOSLaunchScreenType: 0 202 | iOSLaunchScreenPortrait: {fileID: 0} 203 | iOSLaunchScreenLandscape: {fileID: 0} 204 | iOSLaunchScreenBackgroundColor: 205 | serializedVersion: 2 206 | rgba: 0 207 | iOSLaunchScreenFillPct: 100 208 | iOSLaunchScreenSize: 100 209 | iOSLaunchScreenCustomXibPath: 210 | iOSLaunchScreeniPadType: 0 211 | iOSLaunchScreeniPadImage: {fileID: 0} 212 | iOSLaunchScreeniPadBackgroundColor: 213 | serializedVersion: 2 214 | rgba: 0 215 | iOSLaunchScreeniPadFillPct: 100 216 | iOSLaunchScreeniPadSize: 100 217 | iOSLaunchScreeniPadCustomXibPath: 218 | iOSLaunchScreenCustomStoryboardPath: 219 | iOSLaunchScreeniPadCustomStoryboardPath: 220 | iOSDeviceRequirements: [] 221 | iOSURLSchemes: [] 222 | macOSURLSchemes: [] 223 | iOSBackgroundModes: 0 224 | iOSMetalForceHardShadows: 0 225 | metalEditorSupport: 1 226 | metalAPIValidation: 1 227 | iOSRenderExtraFrameOnPause: 0 228 | iosCopyPluginsCodeInsteadOfSymlink: 0 229 | appleDeveloperTeamID: 230 | iOSManualSigningProvisioningProfileID: 231 | tvOSManualSigningProvisioningProfileID: 232 | iOSManualSigningProvisioningProfileType: 0 233 | tvOSManualSigningProvisioningProfileType: 0 234 | appleEnableAutomaticSigning: 0 235 | iOSRequireARKit: 0 236 | iOSAutomaticallyDetectAndAddCapabilities: 1 237 | appleEnableProMotion: 0 238 | shaderPrecisionModel: 0 239 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 240 | templatePackageId: com.unity.template.3d@2.3.3 241 | templateDefaultScene: Assets/Scenes/SampleScene.unity 242 | useCustomMainManifest: 0 243 | useCustomLauncherManifest: 0 244 | useCustomMainGradleTemplate: 0 245 | useCustomLauncherGradleManifest: 0 246 | useCustomBaseGradleTemplate: 0 247 | useCustomGradlePropertiesTemplate: 0 248 | useCustomProguardFile: 0 249 | AndroidTargetArchitectures: 2 250 | AndroidTargetDevices: 0 251 | AndroidSplashScreenScale: 0 252 | androidSplashScreen: {fileID: 0} 253 | AndroidKeystoreName: '{inproject}: ' 254 | AndroidKeyaliasName: 255 | AndroidBuildApkPerCpuArchitecture: 0 256 | AndroidTVCompatibility: 0 257 | AndroidIsGame: 1 258 | AndroidEnableTango: 0 259 | androidEnableBanner: 1 260 | androidUseLowAccuracyLocation: 0 261 | androidUseCustomKeystore: 0 262 | m_AndroidBanners: 263 | - width: 320 264 | height: 180 265 | banner: {fileID: 0} 266 | androidGamepadSupportLevel: 0 267 | chromeosInputEmulation: 1 268 | AndroidMinifyWithR8: 0 269 | AndroidMinifyRelease: 0 270 | AndroidMinifyDebug: 0 271 | AndroidValidateAppBundleSize: 1 272 | AndroidAppBundleSizeToValidate: 150 273 | m_BuildTargetIcons: [] 274 | m_BuildTargetPlatformIcons: 275 | - m_BuildTarget: Android 276 | m_Icons: 277 | - m_Textures: [] 278 | m_Width: 432 279 | m_Height: 432 280 | m_Kind: 2 281 | m_SubKind: 282 | - m_Textures: [] 283 | m_Width: 324 284 | m_Height: 324 285 | m_Kind: 2 286 | m_SubKind: 287 | - m_Textures: [] 288 | m_Width: 216 289 | m_Height: 216 290 | m_Kind: 2 291 | m_SubKind: 292 | - m_Textures: [] 293 | m_Width: 162 294 | m_Height: 162 295 | m_Kind: 2 296 | m_SubKind: 297 | - m_Textures: [] 298 | m_Width: 108 299 | m_Height: 108 300 | m_Kind: 2 301 | m_SubKind: 302 | - m_Textures: [] 303 | m_Width: 81 304 | m_Height: 81 305 | m_Kind: 2 306 | m_SubKind: 307 | - m_Textures: [] 308 | m_Width: 192 309 | m_Height: 192 310 | m_Kind: 0 311 | m_SubKind: 312 | - m_Textures: [] 313 | m_Width: 144 314 | m_Height: 144 315 | m_Kind: 0 316 | m_SubKind: 317 | - m_Textures: [] 318 | m_Width: 96 319 | m_Height: 96 320 | m_Kind: 0 321 | m_SubKind: 322 | - m_Textures: [] 323 | m_Width: 72 324 | m_Height: 72 325 | m_Kind: 0 326 | m_SubKind: 327 | - m_Textures: [] 328 | m_Width: 48 329 | m_Height: 48 330 | m_Kind: 0 331 | m_SubKind: 332 | - m_Textures: [] 333 | m_Width: 36 334 | m_Height: 36 335 | m_Kind: 0 336 | m_SubKind: 337 | - m_Textures: [] 338 | m_Width: 192 339 | m_Height: 192 340 | m_Kind: 1 341 | m_SubKind: 342 | - m_Textures: [] 343 | m_Width: 144 344 | m_Height: 144 345 | m_Kind: 1 346 | m_SubKind: 347 | - m_Textures: [] 348 | m_Width: 96 349 | m_Height: 96 350 | m_Kind: 1 351 | m_SubKind: 352 | - m_Textures: [] 353 | m_Width: 72 354 | m_Height: 72 355 | m_Kind: 1 356 | m_SubKind: 357 | - m_Textures: [] 358 | m_Width: 48 359 | m_Height: 48 360 | m_Kind: 1 361 | m_SubKind: 362 | - m_Textures: [] 363 | m_Width: 36 364 | m_Height: 36 365 | m_Kind: 1 366 | m_SubKind: 367 | m_BuildTargetBatching: 368 | - m_BuildTarget: Standalone 369 | m_StaticBatching: 1 370 | m_DynamicBatching: 0 371 | - m_BuildTarget: tvOS 372 | m_StaticBatching: 1 373 | m_DynamicBatching: 0 374 | - m_BuildTarget: Android 375 | m_StaticBatching: 1 376 | m_DynamicBatching: 0 377 | - m_BuildTarget: iPhone 378 | m_StaticBatching: 1 379 | m_DynamicBatching: 0 380 | - m_BuildTarget: WebGL 381 | m_StaticBatching: 0 382 | m_DynamicBatching: 0 383 | m_BuildTargetGraphicsJobs: 384 | - m_BuildTarget: WindowsStandaloneSupport 385 | m_GraphicsJobs: 0 386 | - m_BuildTarget: MacStandaloneSupport 387 | m_GraphicsJobs: 0 388 | - m_BuildTarget: LinuxStandaloneSupport 389 | m_GraphicsJobs: 0 390 | - m_BuildTarget: AndroidPlayer 391 | m_GraphicsJobs: 0 392 | - m_BuildTarget: iOSSupport 393 | m_GraphicsJobs: 0 394 | - m_BuildTarget: PS4Player 395 | m_GraphicsJobs: 0 396 | - m_BuildTarget: PS5Player 397 | m_GraphicsJobs: 0 398 | - m_BuildTarget: XboxOnePlayer 399 | m_GraphicsJobs: 0 400 | - m_BuildTarget: GameCoreXboxOneSupport 401 | m_GraphicsJobs: 0 402 | - m_BuildTarget: GameCoreScarlettSupport 403 | m_GraphicsJobs: 0 404 | - m_BuildTarget: Switch 405 | m_GraphicsJobs: 0 406 | - m_BuildTarget: WebGLSupport 407 | m_GraphicsJobs: 0 408 | - m_BuildTarget: MetroSupport 409 | m_GraphicsJobs: 0 410 | - m_BuildTarget: AppleTVSupport 411 | m_GraphicsJobs: 0 412 | - m_BuildTarget: BJMSupport 413 | m_GraphicsJobs: 0 414 | - m_BuildTarget: LuminSupport 415 | m_GraphicsJobs: 0 416 | - m_BuildTarget: CloudRendering 417 | m_GraphicsJobs: 0 418 | - m_BuildTarget: EmbeddedLinux 419 | m_GraphicsJobs: 0 420 | m_BuildTargetGraphicsJobMode: 421 | - m_BuildTarget: PS4Player 422 | m_GraphicsJobMode: 0 423 | - m_BuildTarget: XboxOnePlayer 424 | m_GraphicsJobMode: 0 425 | m_BuildTargetGraphicsAPIs: 426 | - m_BuildTarget: AndroidPlayer 427 | m_APIs: 150000000b000000 428 | m_Automatic: 1 429 | - m_BuildTarget: iOSSupport 430 | m_APIs: 10000000 431 | m_Automatic: 1 432 | - m_BuildTarget: AppleTVSupport 433 | m_APIs: 10000000 434 | m_Automatic: 1 435 | - m_BuildTarget: WebGLSupport 436 | m_APIs: 0b000000 437 | m_Automatic: 1 438 | m_BuildTargetVRSettings: 439 | - m_BuildTarget: Standalone 440 | m_Enabled: 0 441 | m_Devices: 442 | - Oculus 443 | - OpenVR 444 | openGLRequireES31: 0 445 | openGLRequireES31AEP: 0 446 | openGLRequireES32: 0 447 | m_TemplateCustomTags: {} 448 | mobileMTRendering: 449 | Android: 1 450 | iPhone: 1 451 | tvOS: 1 452 | m_BuildTargetGroupLightmapEncodingQuality: [] 453 | m_BuildTargetGroupLightmapSettings: [] 454 | m_BuildTargetNormalMapEncoding: [] 455 | m_BuildTargetDefaultTextureCompressionFormat: [] 456 | playModeTestRunnerEnabled: 0 457 | runPlayModeTestAsEditModeTest: 0 458 | actionOnDotNetUnhandledException: 1 459 | enableInternalProfiler: 0 460 | logObjCUncaughtExceptions: 1 461 | enableCrashReportAPI: 0 462 | cameraUsageDescription: Use Camera 463 | locationUsageDescription: 464 | microphoneUsageDescription: Use Microphone 465 | bluetoothUsageDescription: 466 | switchNMETAOverride: 467 | switchNetLibKey: 468 | switchSocketMemoryPoolSize: 6144 469 | switchSocketAllocatorPoolSize: 128 470 | switchSocketConcurrencyLimit: 14 471 | switchScreenResolutionBehavior: 2 472 | switchUseCPUProfiler: 0 473 | switchUseGOLDLinker: 0 474 | switchLTOSetting: 0 475 | switchApplicationID: 0x01004b9000490000 476 | switchNSODependencies: 477 | switchTitleNames_0: 478 | switchTitleNames_1: 479 | switchTitleNames_2: 480 | switchTitleNames_3: 481 | switchTitleNames_4: 482 | switchTitleNames_5: 483 | switchTitleNames_6: 484 | switchTitleNames_7: 485 | switchTitleNames_8: 486 | switchTitleNames_9: 487 | switchTitleNames_10: 488 | switchTitleNames_11: 489 | switchTitleNames_12: 490 | switchTitleNames_13: 491 | switchTitleNames_14: 492 | switchTitleNames_15: 493 | switchPublisherNames_0: 494 | switchPublisherNames_1: 495 | switchPublisherNames_2: 496 | switchPublisherNames_3: 497 | switchPublisherNames_4: 498 | switchPublisherNames_5: 499 | switchPublisherNames_6: 500 | switchPublisherNames_7: 501 | switchPublisherNames_8: 502 | switchPublisherNames_9: 503 | switchPublisherNames_10: 504 | switchPublisherNames_11: 505 | switchPublisherNames_12: 506 | switchPublisherNames_13: 507 | switchPublisherNames_14: 508 | switchPublisherNames_15: 509 | switchIcons_0: {fileID: 0} 510 | switchIcons_1: {fileID: 0} 511 | switchIcons_2: {fileID: 0} 512 | switchIcons_3: {fileID: 0} 513 | switchIcons_4: {fileID: 0} 514 | switchIcons_5: {fileID: 0} 515 | switchIcons_6: {fileID: 0} 516 | switchIcons_7: {fileID: 0} 517 | switchIcons_8: {fileID: 0} 518 | switchIcons_9: {fileID: 0} 519 | switchIcons_10: {fileID: 0} 520 | switchIcons_11: {fileID: 0} 521 | switchIcons_12: {fileID: 0} 522 | switchIcons_13: {fileID: 0} 523 | switchIcons_14: {fileID: 0} 524 | switchIcons_15: {fileID: 0} 525 | switchSmallIcons_0: {fileID: 0} 526 | switchSmallIcons_1: {fileID: 0} 527 | switchSmallIcons_2: {fileID: 0} 528 | switchSmallIcons_3: {fileID: 0} 529 | switchSmallIcons_4: {fileID: 0} 530 | switchSmallIcons_5: {fileID: 0} 531 | switchSmallIcons_6: {fileID: 0} 532 | switchSmallIcons_7: {fileID: 0} 533 | switchSmallIcons_8: {fileID: 0} 534 | switchSmallIcons_9: {fileID: 0} 535 | switchSmallIcons_10: {fileID: 0} 536 | switchSmallIcons_11: {fileID: 0} 537 | switchSmallIcons_12: {fileID: 0} 538 | switchSmallIcons_13: {fileID: 0} 539 | switchSmallIcons_14: {fileID: 0} 540 | switchSmallIcons_15: {fileID: 0} 541 | switchManualHTML: 542 | switchAccessibleURLs: 543 | switchLegalInformation: 544 | switchMainThreadStackSize: 1048576 545 | switchPresenceGroupId: 546 | switchLogoHandling: 0 547 | switchReleaseVersion: 0 548 | switchDisplayVersion: 1.0.0 549 | switchStartupUserAccount: 0 550 | switchTouchScreenUsage: 0 551 | switchSupportedLanguagesMask: 0 552 | switchLogoType: 0 553 | switchApplicationErrorCodeCategory: 554 | switchUserAccountSaveDataSize: 0 555 | switchUserAccountSaveDataJournalSize: 0 556 | switchApplicationAttribute: 0 557 | switchCardSpecSize: -1 558 | switchCardSpecClock: -1 559 | switchRatingsMask: 0 560 | switchRatingsInt_0: 0 561 | switchRatingsInt_1: 0 562 | switchRatingsInt_2: 0 563 | switchRatingsInt_3: 0 564 | switchRatingsInt_4: 0 565 | switchRatingsInt_5: 0 566 | switchRatingsInt_6: 0 567 | switchRatingsInt_7: 0 568 | switchRatingsInt_8: 0 569 | switchRatingsInt_9: 0 570 | switchRatingsInt_10: 0 571 | switchRatingsInt_11: 0 572 | switchRatingsInt_12: 0 573 | switchLocalCommunicationIds_0: 574 | switchLocalCommunicationIds_1: 575 | switchLocalCommunicationIds_2: 576 | switchLocalCommunicationIds_3: 577 | switchLocalCommunicationIds_4: 578 | switchLocalCommunicationIds_5: 579 | switchLocalCommunicationIds_6: 580 | switchLocalCommunicationIds_7: 581 | switchParentalControl: 0 582 | switchAllowsScreenshot: 1 583 | switchAllowsVideoCapturing: 1 584 | switchAllowsRuntimeAddOnContentInstall: 0 585 | switchDataLossConfirmation: 0 586 | switchUserAccountLockEnabled: 0 587 | switchSystemResourceMemory: 16777216 588 | switchSupportedNpadStyles: 3 589 | switchNativeFsCacheSize: 32 590 | switchIsHoldTypeHorizontal: 0 591 | switchSupportedNpadCount: 8 592 | switchSocketConfigEnabled: 0 593 | switchTcpInitialSendBufferSize: 32 594 | switchTcpInitialReceiveBufferSize: 64 595 | switchTcpAutoSendBufferSizeMax: 256 596 | switchTcpAutoReceiveBufferSizeMax: 256 597 | switchUdpSendBufferSize: 9 598 | switchUdpReceiveBufferSize: 42 599 | switchSocketBufferEfficiency: 4 600 | switchSocketInitializeEnabled: 1 601 | switchNetworkInterfaceManagerInitializeEnabled: 1 602 | switchPlayerConnectionEnabled: 1 603 | switchUseNewStyleFilepaths: 0 604 | switchUseMicroSleepForYield: 1 605 | switchEnableRamDiskSupport: 0 606 | switchMicroSleepForYieldTime: 25 607 | switchRamDiskSpaceSize: 12 608 | ps4NPAgeRating: 12 609 | ps4NPTitleSecret: 610 | ps4NPTrophyPackPath: 611 | ps4ParentalLevel: 11 612 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 613 | ps4Category: 0 614 | ps4MasterVersion: 01.00 615 | ps4AppVersion: 01.00 616 | ps4AppType: 0 617 | ps4ParamSfxPath: 618 | ps4VideoOutPixelFormat: 0 619 | ps4VideoOutInitialWidth: 1920 620 | ps4VideoOutBaseModeInitialWidth: 1920 621 | ps4VideoOutReprojectionRate: 60 622 | ps4PronunciationXMLPath: 623 | ps4PronunciationSIGPath: 624 | ps4BackgroundImagePath: 625 | ps4StartupImagePath: 626 | ps4StartupImagesFolder: 627 | ps4IconImagesFolder: 628 | ps4SaveDataImagePath: 629 | ps4SdkOverride: 630 | ps4BGMPath: 631 | ps4ShareFilePath: 632 | ps4ShareOverlayImagePath: 633 | ps4PrivacyGuardImagePath: 634 | ps4ExtraSceSysFile: 635 | ps4NPtitleDatPath: 636 | ps4RemotePlayKeyAssignment: -1 637 | ps4RemotePlayKeyMappingDir: 638 | ps4PlayTogetherPlayerCount: 0 639 | ps4EnterButtonAssignment: 1 640 | ps4ApplicationParam1: 0 641 | ps4ApplicationParam2: 0 642 | ps4ApplicationParam3: 0 643 | ps4ApplicationParam4: 0 644 | ps4DownloadDataSize: 0 645 | ps4GarlicHeapSize: 2048 646 | ps4ProGarlicHeapSize: 2560 647 | playerPrefsMaxSize: 32768 648 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 649 | ps4pnSessions: 1 650 | ps4pnPresence: 1 651 | ps4pnFriends: 1 652 | ps4pnGameCustomData: 1 653 | playerPrefsSupport: 0 654 | enableApplicationExit: 0 655 | resetTempFolder: 1 656 | restrictedAudioUsageRights: 0 657 | ps4UseResolutionFallback: 0 658 | ps4ReprojectionSupport: 0 659 | ps4UseAudio3dBackend: 0 660 | ps4UseLowGarlicFragmentationMode: 1 661 | ps4SocialScreenEnabled: 0 662 | ps4ScriptOptimizationLevel: 0 663 | ps4Audio3dVirtualSpeakerCount: 14 664 | ps4attribCpuUsage: 0 665 | ps4PatchPkgPath: 666 | ps4PatchLatestPkgPath: 667 | ps4PatchChangeinfoPath: 668 | ps4PatchDayOne: 0 669 | ps4attribUserManagement: 0 670 | ps4attribMoveSupport: 0 671 | ps4attrib3DSupport: 0 672 | ps4attribShareSupport: 0 673 | ps4attribExclusiveVR: 0 674 | ps4disableAutoHideSplash: 0 675 | ps4videoRecordingFeaturesUsed: 0 676 | ps4contentSearchFeaturesUsed: 0 677 | ps4CompatibilityPS5: 0 678 | ps4GPU800MHz: 1 679 | ps4attribEyeToEyeDistanceSettingVR: 0 680 | ps4IncludedModules: [] 681 | ps4attribVROutputEnabled: 0 682 | monoEnv: 683 | splashScreenBackgroundSourceLandscape: {fileID: 0} 684 | splashScreenBackgroundSourcePortrait: {fileID: 0} 685 | blurSplashScreenBackground: 1 686 | spritePackerPolicy: 687 | webGLMemorySize: 16 688 | webGLExceptionSupport: 1 689 | webGLNameFilesAsHashes: 0 690 | webGLDataCaching: 1 691 | webGLDebugSymbols: 0 692 | webGLEmscriptenArgs: 693 | webGLModulesDirectory: 694 | webGLTemplate: APPLICATION:Default 695 | webGLAnalyzeBuildSize: 0 696 | webGLUseEmbeddedResources: 0 697 | webGLCompressionFormat: 1 698 | webGLWasmArithmeticExceptions: 0 699 | webGLLinkerTarget: 1 700 | webGLThreadsSupport: 0 701 | webGLDecompressionFallback: 0 702 | scriptingDefineSymbols: {} 703 | additionalCompilerArguments: {} 704 | platformArchitecture: {} 705 | scriptingBackend: 706 | Android: 1 707 | il2cppCompilerConfiguration: {} 708 | managedStrippingLevel: {} 709 | incrementalIl2cppBuild: {} 710 | suppressCommonWarnings: 1 711 | allowUnsafeCode: 0 712 | useDeterministicCompilation: 1 713 | enableRoslynAnalyzers: 1 714 | additionalIl2CppArgs: 715 | scriptingRuntimeVersion: 1 716 | gcIncremental: 0 717 | assemblyVersionValidation: 1 718 | gcWBarrierValidation: 0 719 | apiCompatibilityLevelPerPlatform: {} 720 | m_RenderingPath: 1 721 | m_MobileRenderingPath: 1 722 | metroPackageName: Template3D 723 | metroPackageVersion: 1.0.0.0 724 | metroCertificatePath: 725 | metroCertificatePassword: 726 | metroCertificateSubject: 727 | metroCertificateIssuer: 728 | metroCertificateNotAfter: 0000000000000000 729 | metroApplicationDescription: Template_3D 730 | wsaImages: {} 731 | metroTileShortName: SoraUnitySdkSamples 732 | metroTileShowName: 0 733 | metroMediumTileShowName: 0 734 | metroLargeTileShowName: 0 735 | metroWideTileShowName: 0 736 | metroSupportStreamingInstall: 0 737 | metroLastRequiredScene: 0 738 | metroDefaultTileSize: 1 739 | metroTileForegroundText: 2 740 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 741 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 742 | a: 1} 743 | metroSplashScreenUseBackgroundColor: 0 744 | platformCapabilities: {} 745 | metroTargetDeviceFamilies: {} 746 | metroFTAName: 747 | metroFTAFileTypes: [] 748 | metroProtocolName: 749 | vcxProjDefaultLanguage: 750 | XboxOneProductId: 751 | XboxOneUpdateKey: 752 | XboxOneSandboxId: 753 | XboxOneContentId: 754 | XboxOneTitleId: 755 | XboxOneSCId: 756 | XboxOneGameOsOverridePath: 757 | XboxOnePackagingOverridePath: 758 | XboxOneAppManifestOverridePath: 759 | XboxOneVersion: 1.0.0.0 760 | XboxOnePackageEncryption: 0 761 | XboxOnePackageUpdateGranularity: 2 762 | XboxOneDescription: 763 | XboxOneLanguage: 764 | - enus 765 | XboxOneCapability: [] 766 | XboxOneGameRating: {} 767 | XboxOneIsContentPackage: 0 768 | XboxOneEnhancedXboxCompatibilityMode: 0 769 | XboxOneEnableGPUVariability: 1 770 | XboxOneSockets: {} 771 | XboxOneSplashScreen: {fileID: 0} 772 | XboxOneAllowedProductIds: [] 773 | XboxOnePersistentLocalStorageSize: 0 774 | XboxOneXTitleMemory: 8 775 | XboxOneOverrideIdentityName: 776 | XboxOneOverrideIdentityPublisher: 777 | vrEditorSettings: {} 778 | cloudServicesEnabled: 779 | UNet: 1 780 | luminIcon: 781 | m_Name: 782 | m_ModelFolderPath: 783 | m_PortalFolderPath: 784 | luminCert: 785 | m_CertPath: 786 | m_SignPackage: 1 787 | luminIsChannelApp: 0 788 | luminVersion: 789 | m_VersionCode: 1 790 | m_VersionName: 791 | apiCompatibilityLevel: 6 792 | activeInputHandler: 0 793 | cloudProjectId: 794 | framebufferDepthMemorylessMode: 0 795 | qualitySettingsNames: [] 796 | projectName: 797 | organizationId: 798 | cloudEnabled: 0 799 | legacyClampBlendShapeWeights: 0 800 | playerDataPath: 801 | forceSRGBBlit: 1 802 | virtualTexturingSupportEnabled: 0 803 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.11f1 2 | m_EditorVersionWithRevision: 2022.3.11f1 (d00248457e15) 3 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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: 5 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 | skinWeights: 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 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | skinWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | skinWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | skinWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | skinWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | skinWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Standalone: 5 227 | WebGL: 3 228 | Windows Store Apps: 5 229 | XboxOne: 5 230 | iPhone: 2 231 | tvOS: 2 232 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /SoraUnitySdkSamples/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 | - Not UI 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 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 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 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /SoraUnitySdkSamples/ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiguredo/sora-unity-sdk-samples/9e1112d606c57ac68ca61c0638dfcc70cf1f6cc9/SoraUnitySdkSamples/ProjectSettings/boot.config -------------------------------------------------------------------------------- /copysdk.py: -------------------------------------------------------------------------------- 1 | # 開発用スクリプト。 ..\sora-unity-sdk にあるソースと bundle をこのプロジェクトにコピーする 2 | import argparse 3 | import logging 4 | import os 5 | import shutil 6 | 7 | from install import enum_all_files, mkdir_p, rm_rf 8 | 9 | logging.basicConfig(level=logging.INFO) 10 | 11 | 12 | def copy_if_exists(srcfile, dstfile): 13 | if not os.path.exists(srcfile): 14 | logging.info(f"Not found: {srcfile}") 15 | return 16 | if os.path.isdir(srcfile): 17 | rm_rf(dstfile) 18 | shutil.copytree(srcfile, dstfile) 19 | else: 20 | dstdir = os.path.dirname(dstfile) 21 | mkdir_p(dstdir) 22 | shutil.copyfile(srcfile, dstfile) 23 | logging.info(f"[COPY] {srcfile} to {dstfile}") 24 | 25 | 26 | BASE_DIR = os.path.abspath(os.path.dirname(__file__)) 27 | 28 | 29 | def main(): 30 | os.chdir(BASE_DIR) 31 | 32 | parser = argparse.ArgumentParser() 33 | parser.add_argument("--sdk-path") 34 | # WSL で sora-unity-sdk の Android 版ビルドをして Windows で利用しようと思った場合、 35 | # sora-unity-sdk のパスが通常とは別の場所になってしまうので、Android だけ別途設定可能にする 36 | parser.add_argument("--android-sdk-path") 37 | parser.add_argument("--relwithdebinfo", action="store_true") 38 | parser.add_argument("--debug", action="store_true") 39 | 40 | args = parser.parse_args() 41 | 42 | if args.sdk_path is None: 43 | src_base = os.path.join("..", "sora-unity-sdk") 44 | else: 45 | src_base = args.sdk_path 46 | 47 | if args.android_sdk_path is None: 48 | android_src_base = src_base 49 | else: 50 | android_src_base = args.android_sdk_path 51 | 52 | dst_base = os.path.join("SoraUnitySdkSamples", "Assets") 53 | 54 | configdir = "release" 55 | if args.debug: 56 | configdir = "debug" 57 | 58 | if args.relwithdebinfo: 59 | vsconfigdir = "RelWithDebInfo" 60 | else: 61 | vsconfigdir = "Release" 62 | 63 | # Source 64 | for file in enum_all_files(os.path.join(src_base, "Sora"), os.path.join(src_base, "Sora")): 65 | copy_if_exists( 66 | os.path.join(src_base, "Sora", file), os.path.join(dst_base, "SoraUnitySdk", file) 67 | ) 68 | 69 | if args.android_sdk_path is not None: 70 | for file in enum_all_files( 71 | os.path.join(android_src_base, "Sora"), os.path.join(android_src_base, "Sora") 72 | ): 73 | copy_if_exists( 74 | os.path.join(android_src_base, "Sora", file), 75 | os.path.join(dst_base, "SoraUnitySdk", file), 76 | ) 77 | 78 | # Windows 79 | copy_if_exists( 80 | os.path.join( 81 | src_base, 82 | "_build", 83 | "windows_x86_64", 84 | configdir, 85 | "sora_unity_sdk", 86 | vsconfigdir, 87 | "SoraUnitySdk.dll", 88 | ), 89 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "windows", "x86_64", "SoraUnitySdk.dll"), 90 | ) 91 | # copy_if_exists( 92 | # os.path.join(src_base, '_build', 'windows_x86_64', configdir, 'sora_unity_sdk', vsconfigdir, 'SoraUnitySdk.pdb'), 93 | # os.path.join(dst_base, 'Plugins', 'SoraUnitySdk', 'windows', 'x86_64', 'SoraUnitySdk.pdb')) 94 | 95 | # macOS 96 | copy_if_exists( 97 | os.path.join( 98 | src_base, "_build", "macos_x86_64", configdir, "sora_unity_sdk", "SoraUnitySdk.bundle" 99 | ), 100 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "macos", "x86_64", "SoraUnitySdk.bundle"), 101 | ) 102 | copy_if_exists( 103 | os.path.join( 104 | src_base, "_build", "macos_arm64", configdir, "sora_unity_sdk", "SoraUnitySdk.bundle" 105 | ), 106 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "macos", "arm64", "SoraUnitySdk.bundle"), 107 | ) 108 | 109 | # iOS 110 | copy_if_exists( 111 | os.path.join(src_base, "_build", "ios", configdir, "sora_unity_sdk", "libSoraUnitySdk.a"), 112 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "ios", "libSoraUnitySdk.a"), 113 | ) 114 | copy_if_exists( 115 | os.path.join(src_base, "_install", "ios", configdir, "webrtc", "lib", "libwebrtc.a"), 116 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "ios", "libwebrtc.a"), 117 | ) 118 | copy_if_exists( 119 | os.path.join(src_base, "_install", "ios", configdir, "boost", "lib", "libboost_json.a"), 120 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "ios", "libboost_json.a"), 121 | ) 122 | copy_if_exists( 123 | os.path.join( 124 | src_base, "_install", "ios", configdir, "boost", "lib", "libboost_filesystem.a" 125 | ), 126 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "ios", "libboost_filesystem.a"), 127 | ) 128 | copy_if_exists( 129 | os.path.join(src_base, "_install", "ios", configdir, "sora", "lib", "libsora.a"), 130 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "ios", "libsora.a"), 131 | ) 132 | # copy_if_exists( 133 | # os.path.join(src_base, '_build', 'sora-unity-sdk', 'ios', 'libSoraUnitySdk.a'), 134 | # os.path.join(dst_base, 'Plugins', 'SoraUnitySdk', 'ios', 'libSoraUnitySdk.a')) 135 | # copy_if_exists( 136 | # os.path.join(src_base, '_install', 'ios', 'webrtc', 'lib', 'libwebrtc.a'), 137 | # os.path.join(dst_base, 'Plugins', 'SoraUnitySdk', 'ios', 'libwebrtc.a')) 138 | # copy_if_exists( 139 | # os.path.join(src_base, '_install', 'ios', 'boost', 'lib', 'libboost_json.a'), 140 | # os.path.join(dst_base, 'Plugins', 'SoraUnitySdk', 'ios', 'libboost_json.a')) 141 | 142 | # Android 143 | copy_if_exists( 144 | os.path.join( 145 | android_src_base, "_build", "android", configdir, "sora_unity_sdk", "libSoraUnitySdk.so" 146 | ), 147 | os.path.join( 148 | dst_base, "Plugins", "SoraUnitySdk", "android", "arm64-v8a", "libSoraUnitySdk.so" 149 | ), 150 | ) 151 | copy_if_exists( 152 | os.path.join( 153 | android_src_base, "_install", "android", configdir, "webrtc", "jar", "webrtc.jar" 154 | ), 155 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "android", "webrtc.jar"), 156 | ) 157 | 158 | # Ubuntu x86_64 159 | copy_if_exists( 160 | os.path.join( 161 | android_src_base, 162 | "_build", 163 | "ubuntu-20.04_x86_64", 164 | configdir, 165 | "sora_unity_sdk", 166 | "libSoraUnitySdk.so", 167 | ), 168 | os.path.join(dst_base, "Plugins", "SoraUnitySdk", "linux", "x86_64", "libSoraUnitySdk.so"), 169 | ) 170 | 171 | 172 | if __name__ == "__main__": 173 | main() 174 | -------------------------------------------------------------------------------- /install.py: -------------------------------------------------------------------------------- 1 | import argparse 2 | import logging 3 | import os 4 | import platform 5 | import shutil 6 | import subprocess 7 | import tarfile 8 | import urllib.parse 9 | import zipfile 10 | from typing import Optional 11 | 12 | logging.basicConfig(level=logging.DEBUG) 13 | 14 | 15 | SORA_UNITY_SDK_VERSION = "2025.1.0" 16 | 17 | 18 | class ChangeDirectory(object): 19 | def __init__(self, cwd): 20 | self._cwd = cwd 21 | 22 | def __enter__(self): 23 | self._old_cwd = os.getcwd() 24 | logging.debug(f"pushd {self._old_cwd} --> {self._cwd}") 25 | os.chdir(self._cwd) 26 | 27 | def __exit__(self, exctype, excvalue, trace): 28 | logging.debug(f"popd {self._old_cwd} <-- {self._cwd}") 29 | os.chdir(self._old_cwd) 30 | return False 31 | 32 | 33 | def cd(cwd): 34 | return ChangeDirectory(cwd) 35 | 36 | 37 | def cmd(args, **kwargs): 38 | logging.debug(f"+{args} {kwargs}") 39 | if "check" not in kwargs: 40 | kwargs["check"] = True 41 | if "resolve" in kwargs: 42 | resolve = kwargs["resolve"] 43 | del kwargs["resolve"] 44 | else: 45 | resolve = True 46 | if resolve: 47 | args = [shutil.which(args[0]), *args[1:]] 48 | return subprocess.run(args, **kwargs) 49 | 50 | 51 | def download(url: str, output_dir: Optional[str] = None, filename: Optional[str] = None) -> str: 52 | if filename is None: 53 | output_path = urllib.parse.urlparse(url).path.split("/")[-1] 54 | else: 55 | output_path = filename 56 | 57 | if output_dir is not None: 58 | output_path = os.path.join(output_dir, output_path) 59 | 60 | if os.path.exists(output_path): 61 | return output_path 62 | 63 | try: 64 | if shutil.which("curl") is not None: 65 | cmd(["curl", "-fLo", output_path, url]) 66 | else: 67 | cmd(["wget", "-cO", output_path, url]) 68 | except Exception: 69 | # ゴミを残さないようにする 70 | if os.path.exists(output_path): 71 | os.remove(output_path) 72 | raise 73 | 74 | return output_path 75 | 76 | 77 | def rm_rf(path: str): 78 | if not os.path.exists(path): 79 | logging.debug(f"rm -rf {path} => path not found") 80 | return 81 | if os.path.isfile(path) or os.path.islink(path): 82 | os.remove(path) 83 | logging.debug(f"rm -rf {path} => file removed") 84 | if os.path.isdir(path): 85 | shutil.rmtree(path) 86 | logging.debug(f"rm -rf {path} => directory removed") 87 | 88 | 89 | def mkdir_p(path: str): 90 | if os.path.exists(path): 91 | logging.debug(f"mkdir -p {path} => already exists") 92 | return 93 | os.makedirs(path, exist_ok=True) 94 | logging.debug(f"mkdir -p {path} => directory created") 95 | 96 | 97 | # アーカイブが単一のディレクトリに全て格納されているかどうかを調べる。 98 | # 99 | # 単一のディレクトリに格納されている場合はそのディレクトリ名を返す。 100 | # そうでない場合は None を返す。 101 | def _is_single_dir(infos, get_name, is_dir) -> Optional[str]: 102 | # tarfile: ['path', 'path/to', 'path/to/file.txt'] 103 | # zipfile: ['path/', 'path/to/', 'path/to/file.txt'] 104 | # どちらも / 区切りだが、ディレクトリの場合、後ろに / が付くかどうかが違う 105 | dirname = None 106 | for info in infos: 107 | name = get_name(info) 108 | n = name.rstrip("/").find("/") 109 | if n == -1: 110 | # ルートディレクトリにファイルが存在している 111 | if not is_dir(info): 112 | return None 113 | dir = name.rstrip("/") 114 | else: 115 | dir = name[0:n] 116 | # ルートディレクトリに2個以上のディレクトリが存在している 117 | if dirname is not None and dirname != dir: 118 | return None 119 | dirname = dir 120 | 121 | return dirname 122 | 123 | 124 | def is_single_dir_tar(tar: tarfile.TarFile) -> Optional[str]: 125 | return _is_single_dir(tar.getmembers(), lambda t: t.name, lambda t: t.isdir()) 126 | 127 | 128 | def is_single_dir_zip(zip: zipfile.ZipFile) -> Optional[str]: 129 | return _is_single_dir(zip.infolist(), lambda z: z.filename, lambda z: z.is_dir()) 130 | 131 | 132 | # 解凍した上でファイル属性を付与する 133 | def _extractzip(z: zipfile.ZipFile, path: str): 134 | z.extractall(path) 135 | if platform.system() == "Windows": 136 | return 137 | for info in z.infolist(): 138 | if info.is_dir(): 139 | continue 140 | filepath = os.path.join(path, info.filename) 141 | mod = info.external_attr >> 16 142 | if (mod & 0o120000) == 0o120000: 143 | # シンボリックリンク 144 | with open(filepath, "r") as f: 145 | src = f.read() 146 | os.remove(filepath) 147 | with cd(os.path.dirname(filepath)): 148 | if os.path.exists(src): 149 | os.symlink(src, filepath) 150 | if os.path.exists(filepath): 151 | # 普通のファイル 152 | os.chmod(filepath, mod & 0o777) 153 | 154 | 155 | # zip または tar.gz ファイルを展開する。 156 | # 157 | # 展開先のディレクトリは {output_dir}/{output_dirname} となり、 158 | # 展開先のディレクトリが既に存在していた場合は削除される。 159 | # 160 | # もしアーカイブの内容が単一のディレクトリであった場合、 161 | # そのディレクトリは無いものとして展開される。 162 | # 163 | # つまりアーカイブ libsora-1.23.tar.gz の内容が 164 | # ['libsora-1.23', 'libsora-1.23/file1', 'libsora-1.23/file2'] 165 | # であった場合、extract('libsora-1.23.tar.gz', 'out', 'libsora') のようにすると 166 | # - out/libsora/file1 167 | # - out/libsora/file2 168 | # が出力される。 169 | # 170 | # また、アーカイブ libsora-1.23.tar.gz の内容が 171 | # ['libsora-1.23', 'libsora-1.23/file1', 'libsora-1.23/file2', 'LICENSE'] 172 | # であった場合、extract('libsora-1.23.tar.gz', 'out', 'libsora') のようにすると 173 | # - out/libsora/libsora-1.23/file1 174 | # - out/libsora/libsora-1.23/file2 175 | # - out/libsora/LICENSE 176 | # が出力される。 177 | def extract(file: str, output_dir: str, output_dirname: str, filetype: Optional[str] = None): 178 | path = os.path.join(output_dir, output_dirname) 179 | logging.info(f"Extract {file} to {path}") 180 | if filetype == "gzip" or file.endswith(".tar.gz"): 181 | rm_rf(path) 182 | with tarfile.open(file) as t: 183 | dir = is_single_dir_tar(t) 184 | if dir is None: 185 | os.makedirs(path, exist_ok=True) 186 | t.extractall(path) 187 | else: 188 | logging.info(f"Directory {dir} is stripped") 189 | path2 = os.path.join(output_dir, dir) 190 | rm_rf(path2) 191 | t.extractall(output_dir) 192 | if path != path2: 193 | logging.debug(f"mv {path2} {path}") 194 | os.replace(path2, path) 195 | elif filetype == "zip" or file.endswith(".zip"): 196 | rm_rf(path) 197 | with zipfile.ZipFile(file) as z: 198 | dir = is_single_dir_zip(z) 199 | if dir is None: 200 | os.makedirs(path, exist_ok=True) 201 | # z.extractall(path) 202 | _extractzip(z, path) 203 | else: 204 | logging.info(f"Directory {dir} is stripped") 205 | path2 = os.path.join(output_dir, dir) 206 | rm_rf(path2) 207 | # z.extractall(output_dir) 208 | _extractzip(z, output_dir) 209 | if path != path2: 210 | logging.debug(f"mv {path2} {path}") 211 | os.replace(path2, path) 212 | else: 213 | raise Exception("file should end with .tar.gz or .zip") 214 | 215 | 216 | # dir 以下にある全てのファイルパスを、dir2 からの相対パスで返す 217 | def enum_all_files(dir, dir2): 218 | for root, _, files in os.walk(dir): 219 | for file in files: 220 | yield os.path.relpath(os.path.join(root, file), dir2) 221 | 222 | 223 | BASE_DIR = os.path.abspath(os.path.dirname(__file__)) 224 | 225 | 226 | def main(): 227 | os.chdir(BASE_DIR) 228 | 229 | parser = argparse.ArgumentParser() 230 | # これを指定している場合、Sora Unity SDK のダウンロードをせず、このディレクトリの内容をコピーする 231 | # GitHub Actions からバイナリをダウンロードしてきたものを反映させる時用のフラグ 232 | parser.add_argument("--sdk-path") 233 | 234 | args = parser.parse_args() 235 | 236 | if args.sdk_path is None: 237 | rm_rf("SoraUnitySdk.zip") 238 | rm_rf("SoraUnitySdk") 239 | url = f"https://github.com/shiguredo/sora-unity-sdk/releases/download/{SORA_UNITY_SDK_VERSION}/SoraUnitySdk.zip" 240 | path = download(url, ".") 241 | extract(path, ".", "SoraUnitySdk") 242 | 243 | # 既存のファイル(特にメタデータ系)が残ってる可能性があるので 244 | # 1個1個ファイルをコピーしていく 245 | sdk_path = "SoraUnitySdk" if args.sdk_path is None else args.sdk_path 246 | for file in enum_all_files(sdk_path, sdk_path): 247 | dst_base = os.path.join("SoraUnitySdkSamples", "Assets") 248 | # このディレクトリだけは全部置き換える 249 | if "SoraUnitySdk.bundle" in file: 250 | continue 251 | srcfile = os.path.join(sdk_path, file) 252 | dstfile = os.path.join(dst_base, file) 253 | dstdir = os.path.dirname(dstfile) 254 | mkdir_p(dstdir) 255 | shutil.copyfile(srcfile, dstfile) 256 | # .bundle ディレクトリの置き換え 257 | for root, dirs, _ in os.walk(sdk_path): 258 | dst_base = os.path.join("SoraUnitySdkSamples", "Assets") 259 | for dir in dirs: 260 | if dir == "SoraUnitySdk.bundle": 261 | bundle_dir = os.path.relpath(os.path.join(root, dir), sdk_path) 262 | src_bundle_dir = os.path.join(sdk_path, bundle_dir) 263 | dst_bundle_dir = os.path.join(dst_base, bundle_dir) 264 | mkdir_p(os.path.dirname(dst_bundle_dir)) 265 | rm_rf(dst_bundle_dir) 266 | shutil.copytree(src_bundle_dir, dst_bundle_dir) 267 | 268 | if args.sdk_path is None: 269 | rm_rf("SoraUnitySdk.zip") 270 | rm_rf("SoraUnitySdk") 271 | 272 | 273 | if __name__ == "__main__": 274 | main() 275 | -------------------------------------------------------------------------------- /ruff.toml: -------------------------------------------------------------------------------- 1 | line-length = 100 2 | --------------------------------------------------------------------------------