├── .editorconfig ├── .gitattributes ├── .gitignore ├── Assets └── .gitkeep ├── LICENSE ├── Packages ├── .gitignore ├── com.vrchat.core.vpm-resolver │ ├── Editor.meta │ ├── Editor │ │ ├── Dependencies.meta │ │ ├── Dependencies │ │ │ ├── ICSharpCode.SharpZipLib.dll │ │ │ ├── ICSharpCode.SharpZipLib.dll.meta │ │ │ ├── SemanticVersioning.License.txt │ │ │ ├── SemanticVersioning.License.txt.meta │ │ │ ├── SemanticVersioning.dll │ │ │ ├── SemanticVersioning.dll.meta │ │ │ ├── Serilog.License.txt │ │ │ ├── Serilog.License.txt.meta │ │ │ ├── Serilog.Sinks.File.dll │ │ │ ├── Serilog.Sinks.File.dll.meta │ │ │ ├── Serilog.Sinks.File.txt │ │ │ ├── Serilog.Sinks.File.txt.meta │ │ │ ├── Serilog.Sinks.Unity3D.License.md │ │ │ ├── Serilog.Sinks.Unity3D.License.md.meta │ │ │ ├── Serilog.Sinks.Unity3D.dll │ │ │ ├── Serilog.Sinks.Unity3D.dll.meta │ │ │ ├── Serilog.dll │ │ │ ├── Serilog.dll.meta │ │ │ ├── YamlDotNet.License.txt │ │ │ ├── YamlDotNet.License.txt.meta │ │ │ ├── YamlDotNet.dll │ │ │ ├── YamlDotNet.dll.meta │ │ │ ├── vpm-core-lib.dll │ │ │ └── vpm-core-lib.dll.meta │ │ ├── PackageMaker.meta │ │ ├── PackageMaker │ │ │ ├── PackageMakerWindow.cs │ │ │ ├── PackageMakerWindow.cs.meta │ │ │ ├── PackageMakerWindowData.cs │ │ │ └── PackageMakerWindowData.cs.meta │ │ ├── Resolver.meta │ │ ├── Resolver │ │ │ ├── Resolver.cs │ │ │ ├── Resolver.cs.meta │ │ │ ├── ResolverWindow.cs │ │ │ └── ResolverWindow.cs.meta │ │ ├── Resources.meta │ │ ├── Resources │ │ │ ├── PackageMakerWindowStyle.uss │ │ │ ├── PackageMakerWindowStyle.uss.meta │ │ │ ├── ResolverWindowStyle.uss │ │ │ └── ResolverWindowStyle.uss.meta │ │ ├── com.vrchat.core.vpm-resolver.Editor.asmdef │ │ └── com.vrchat.core.vpm-resolver.Editor.asmdef.meta │ ├── License.md │ ├── License.md.meta │ ├── package.json │ └── package.json.meta ├── manifest.json ├── net.koyashiro.udonencoding.tests │ ├── Tests.meta │ ├── Tests │ │ ├── Runtime.meta │ │ └── Runtime │ │ │ ├── Koyashiro.UdonEncoding.Tests.asmdef │ │ │ ├── Koyashiro.UdonEncoding.Tests.asmdef.meta │ │ │ ├── Koyashiro.UdonEncoding.Tests.asset │ │ │ ├── Koyashiro.UdonEncoding.Tests.asset.meta │ │ │ ├── Test.unity │ │ │ ├── Test.unity.meta │ │ │ ├── UdonUTF32Test.asset │ │ │ ├── UdonUTF32Test.asset.meta │ │ │ ├── UdonUTF32Test.cs │ │ │ ├── UdonUTF32Test.cs.meta │ │ │ ├── UdonUTF8Test.asset │ │ │ ├── UdonUTF8Test.asset.meta │ │ │ ├── UdonUTF8Test.cs │ │ │ └── UdonUTF8Test.cs.meta │ ├── package.json │ └── package.json.meta ├── net.koyashiro.udonencoding │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ │ ├── Internal.meta │ │ ├── Internal │ │ │ ├── ExceptionHelper.cs │ │ │ └── ExceptionHelper.cs.meta │ │ ├── Koyashiro.UdonEncoding.asmdef │ │ ├── Koyashiro.UdonEncoding.asmdef.meta │ │ ├── Koyashiro.UdonEncoding.asset │ │ ├── Koyashiro.UdonEncoding.asset.meta │ │ ├── UdonUTF32.cs │ │ ├── UdonUTF32.cs.meta │ │ ├── UdonUTF8.cs │ │ └── UdonUTF8.cs.meta │ ├── Samples~ │ │ └── UdonEncodingSample │ │ │ └── UdonEncodingSample.cs │ ├── package.json │ └── package.json.meta ├── packages-lock.json └── vpm-manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Packages │ └── com.vrchat.base │ │ └── settings.json ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | charset = utf-8 6 | insert_final_newline = true 7 | trim_trailing_whitespace = true 8 | 9 | [*.md] 10 | indent_style = space 11 | indent_size = 2 12 | trim_trailing_whitespace = false 13 | 14 | [*.cs] 15 | indent_style = space 16 | indent_size = 4 17 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.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/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Asset meta data should only be ignored when the corresponding asset is also ignored 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | # vscode 62 | .vscode/ 63 | 64 | # Assets 65 | Assets/ 66 | 67 | # Exports 68 | Exports/ 69 | -------------------------------------------------------------------------------- /Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Assets/.gitkeep -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 koyashiro 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/.gitignore: -------------------------------------------------------------------------------- 1 | /*/ 2 | !com.vrchat.core.*/ 3 | !net.koyashiro.udonencoding/ 4 | !net.koyashiro.udonencoding.tests/ 5 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1058b5946fb23674cad310b1f4bd5b61 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4e8a9c940ed84943bb0433246ec42bb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/ICSharpCode.SharpZipLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec897c206a99abe41b093d5cc5ddc3fe 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Adam Reeve 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1417544c34d9a4f4aacebf76247940a9 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65d82c6541a90644390df2caa29c2209 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: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.License.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, and 10 | distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by the copyright 13 | owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all other entities 16 | that control, are controlled by, or are under common control with that entity. 17 | For the purposes of this definition, "control" means (i) the power, direct or 18 | indirect, to cause the direction or management of such entity, whether by 19 | contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the 20 | outstanding shares, or (iii) beneficial ownership of such entity. 21 | 22 | "You" (or "Your") shall mean an individual or Legal Entity exercising 23 | permissions granted by this License. 24 | 25 | "Source" form shall mean the preferred form for making modifications, including 26 | but not limited to software source code, documentation source, and configuration 27 | files. 28 | 29 | "Object" form shall mean any form resulting from mechanical transformation or 30 | translation of a Source form, including but not limited to compiled object code, 31 | generated documentation, and conversions to other media types. 32 | 33 | "Work" shall mean the work of authorship, whether in Source or Object form, made 34 | available under the License, as indicated by a copyright notice that is included 35 | in or attached to the work (an example is provided in the Appendix below). 36 | 37 | "Derivative Works" shall mean any work, whether in Source or Object form, that 38 | is based on (or derived from) the Work and for which the editorial revisions, 39 | annotations, elaborations, or other modifications represent, as a whole, an 40 | original work of authorship. For the purposes of this License, Derivative Works 41 | shall not include works that remain separable from, or merely link (or bind by 42 | name) to the interfaces of, the Work and Derivative Works thereof. 43 | 44 | "Contribution" shall mean any work of authorship, including the original version 45 | of the Work and any modifications or additions to that Work or Derivative Works 46 | thereof, that is intentionally submitted to Licensor for inclusion in the Work 47 | by the copyright owner or by an individual or Legal Entity authorized to submit 48 | on behalf of the copyright owner. For the purposes of this definition, 49 | "submitted" means any form of electronic, verbal, or written communication sent 50 | to the Licensor or its representatives, including but not limited to 51 | communication on electronic mailing lists, source code control systems, and 52 | issue tracking systems that are managed by, or on behalf of, the Licensor for 53 | the purpose of discussing and improving the Work, but excluding communication 54 | that is conspicuously marked or otherwise designated in writing by the copyright 55 | owner as "Not a Contribution." 56 | 57 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf 58 | of whom a Contribution has been received by Licensor and subsequently 59 | incorporated within the Work. 60 | 61 | 2. Grant of Copyright License. 62 | 63 | Subject to the terms and conditions of this License, each Contributor hereby 64 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 65 | irrevocable copyright license to reproduce, prepare Derivative Works of, 66 | publicly display, publicly perform, sublicense, and distribute the Work and such 67 | Derivative Works in Source or Object form. 68 | 69 | 3. Grant of Patent License. 70 | 71 | Subject to the terms and conditions of this License, each Contributor hereby 72 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 73 | irrevocable (except as stated in this section) patent license to make, have 74 | made, use, offer to sell, sell, import, and otherwise transfer the Work, where 75 | such license applies only to those patent claims licensable by such Contributor 76 | that are necessarily infringed by their Contribution(s) alone or by combination 77 | of their Contribution(s) with the Work to which such Contribution(s) was 78 | submitted. If You institute patent litigation against any entity (including a 79 | cross-claim or counterclaim in a lawsuit) alleging that the Work or a 80 | Contribution incorporated within the Work constitutes direct or contributory 81 | patent infringement, then any patent licenses granted to You under this License 82 | for that Work shall terminate as of the date such litigation is filed. 83 | 84 | 4. Redistribution. 85 | 86 | You may reproduce and distribute copies of the Work or Derivative Works thereof 87 | in any medium, with or without modifications, and in Source or Object form, 88 | provided that You meet the following conditions: 89 | 90 | You must give any other recipients of the Work or Derivative Works a copy of 91 | this License; and 92 | You must cause any modified files to carry prominent notices stating that You 93 | changed the files; and 94 | You must retain, in the Source form of any Derivative Works that You distribute, 95 | all copyright, patent, trademark, and attribution notices from the Source form 96 | of the Work, excluding those notices that do not pertain to any part of the 97 | Derivative Works; and 98 | If the Work includes a "NOTICE" text file as part of its distribution, then any 99 | Derivative Works that You distribute must include a readable copy of the 100 | attribution notices contained within such NOTICE file, excluding those notices 101 | that do not pertain to any part of the Derivative Works, in at least one of the 102 | following places: within a NOTICE text file distributed as part of the 103 | Derivative Works; within the Source form or documentation, if provided along 104 | with the Derivative Works; or, within a display generated by the Derivative 105 | Works, if and wherever such third-party notices normally appear. The contents of 106 | the NOTICE file are for informational purposes only and do not modify the 107 | License. You may add Your own attribution notices within Derivative Works that 108 | You distribute, alongside or as an addendum to the NOTICE text from the Work, 109 | provided that such additional attribution notices cannot be construed as 110 | modifying the License. 111 | You may add Your own copyright statement to Your modifications and may provide 112 | additional or different license terms and conditions for use, reproduction, or 113 | distribution of Your modifications, or for any such Derivative Works as a whole, 114 | provided Your use, reproduction, and distribution of the Work otherwise complies 115 | with the conditions stated in this License. 116 | 117 | 5. Submission of Contributions. 118 | 119 | Unless You explicitly state otherwise, any Contribution intentionally submitted 120 | for inclusion in the Work by You to the Licensor shall be under the terms and 121 | conditions of this License, without any additional terms or conditions. 122 | Notwithstanding the above, nothing herein shall supersede or modify the terms of 123 | any separate license agreement you may have executed with Licensor regarding 124 | such Contributions. 125 | 126 | 6. Trademarks. 127 | 128 | This License does not grant permission to use the trade names, trademarks, 129 | service marks, or product names of the Licensor, except as required for 130 | reasonable and customary use in describing the origin of the Work and 131 | reproducing the content of the NOTICE file. 132 | 133 | 7. Disclaimer of Warranty. 134 | 135 | Unless required by applicable law or agreed to in writing, Licensor provides the 136 | Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, 137 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 138 | including, without limitation, any warranties or conditions of TITLE, 139 | NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are 140 | solely responsible for determining the appropriateness of using or 141 | redistributing the Work and assume any risks associated with Your exercise of 142 | permissions under this License. 143 | 144 | 8. Limitation of Liability. 145 | 146 | In no event and under no legal theory, whether in tort (including negligence), 147 | contract, or otherwise, unless required by applicable law (such as deliberate 148 | and grossly negligent acts) or agreed to in writing, shall any Contributor be 149 | liable to You for damages, including any direct, indirect, special, incidental, 150 | or consequential damages of any character arising as a result of this License or 151 | out of the use or inability to use the Work (including but not limited to 152 | damages for loss of goodwill, work stoppage, computer failure or malfunction, or 153 | any and all other commercial damages or losses), even if such Contributor has 154 | been advised of the possibility of such damages. 155 | 156 | 9. Accepting Warranty or Additional Liability. 157 | 158 | While redistributing the Work or Derivative Works thereof, You may choose to 159 | offer, and charge a fee for, acceptance of support, warranty, indemnity, or 160 | other liability obligations and/or rights consistent with this License. However, 161 | in accepting such obligations, You may act only on Your own behalf and on Your 162 | sole responsibility, not on behalf of any other Contributor, and only if You 163 | agree to indemnify, defend, and hold each Contributor harmless for any liability 164 | incurred by, or claims asserted against, such Contributor by reason of your 165 | accepting any such warranty or additional liability. 166 | 167 | END OF TERMS AND CONDITIONS 168 | 169 | APPENDIX: How to apply the Apache License to your work 170 | 171 | To apply the Apache License to your work, attach the following boilerplate 172 | notice, with the fields enclosed by brackets "[]" replaced with your own 173 | identifying information. (Don't include the brackets!) The text should be 174 | enclosed in the appropriate comment syntax for the file format. We also 175 | recommend that a file or class name and description of purpose be included on 176 | the same "printed page" as the copyright notice for easier identification within 177 | third-party archives. 178 | 179 | Copyright [yyyy] [name of copyright owner] 180 | 181 | Licensed under the Apache License, Version 2.0 (the "License"); 182 | you may not use this file except in compliance with the License. 183 | You may obtain a copy of the License at 184 | 185 | http://www.apache.org/licenses/LICENSE-2.0 186 | 187 | Unless required by applicable law or agreed to in writing, software 188 | distributed under the License is distributed on an "AS IS" BASIS, 189 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 | See the License for the specific language governing permissions and 191 | limitations under the License. 192 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a7454bc513adb84d9ae85ed7e7268ba 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c56563958a156145b708466db0e35cc 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: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | 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 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca344e99cdd379947ab3e8e5b346428c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.License.md: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2020 Kurai András 5 | Copyright (c) 2022-Present VRChat Inc. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.License.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 598e678340a8c6e4e9a3debcdc6a9579 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfc1421f162f0354d8a64d569417d9c9 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 702a5a2579f8edf43b5e7bfb2f52e2c6 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: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Antoine Aubry and contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3547422b181c5af49901e93c1122bbdd 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fd667e0ec0d1d84c9e17dad407f2272 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: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/vpm-core-lib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/koyashiro/udon-encoding/fb1c1ecaae2e23242bc5789de8332bc1c27878ff/Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/vpm-core-lib.dll -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/vpm-core-lib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 140aba2a5b760e94cb3ed9f39a52610a 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5da3ddd939264fc40a113d615f3ca77a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindow.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Text; 7 | using System.Text.RegularExpressions; 8 | using UnityEditor; 9 | using UnityEditor.UIElements; 10 | using UnityEditor.VersionControl; 11 | using UnityEngine; 12 | using UnityEngine.UIElements; 13 | using VRC.PackageManagement.Core.Types.Packages; 14 | using YamlDotNet.Serialization.NodeTypeResolvers; 15 | 16 | namespace VRC.PackageManagement.PackageMaker 17 | { 18 | public class PackageMakerWindow : EditorWindow 19 | { 20 | // VisualElements 21 | private VisualElement _rootView; 22 | private TextField _targetAssetFolderField; 23 | private TextField _packageIDField; 24 | private Button _actionButton; 25 | private EnumField _targetVRCPackageField; 26 | private static string _projectDir; 27 | private PackageMakerWindowData _windowData; 28 | 29 | private void LoadDataFromSave() 30 | { 31 | if (!string.IsNullOrWhiteSpace(_windowData.targetAssetFolder)) 32 | { 33 | _targetAssetFolderField.SetValueWithoutNotify(_windowData.targetAssetFolder); 34 | } 35 | _packageIDField.SetValueWithoutNotify(_windowData.packageID); 36 | _targetVRCPackageField.SetValueWithoutNotify(_windowData.relatedPackage); 37 | 38 | RefreshActionButtonState(); 39 | } 40 | 41 | private void OnEnable() 42 | { 43 | _projectDir = Directory.GetParent(Application.dataPath).FullName; 44 | Refresh(); 45 | } 46 | 47 | [MenuItem("VRChat SDK/Utilities/Package Maker")] 48 | public static void ShowWindow() 49 | { 50 | PackageMakerWindow wnd = GetWindow(); 51 | wnd.titleContent = new GUIContent("Package Maker"); 52 | } 53 | 54 | [MenuItem("Assets/Export VPM as UnityPackage")] 55 | private static void ExportAsUnityPackage () 56 | { 57 | 58 | var foldersToExport = new List(); 59 | StringBuilder exportFilename = new StringBuilder("exported"); 60 | foreach (string guid in Selection.assetGUIDs) 61 | { 62 | string selectedFolder = AssetDatabase.GUIDToAssetPath(guid); 63 | var manifestPath = Path.Combine(selectedFolder, VRCPackageManifest.Filename); 64 | var manifest = VRCPackageManifest.GetManifestAtPath(manifestPath); 65 | if (manifest == null) 66 | { 67 | Debug.LogWarning($"Could not read valid Package Manifest at {manifestPath}. You need to create this first to export a VPM Package."); 68 | continue; 69 | } 70 | exportFilename.Append($"-{manifest.Id}-{manifest.Version}"); 71 | foldersToExport.Add(selectedFolder); 72 | } 73 | 74 | exportFilename.Append(".unitypackage"); 75 | var exportDir = Path.Combine(Directory.GetCurrentDirectory(), "Exports"); 76 | Directory.CreateDirectory(exportDir); 77 | AssetDatabase.ExportPackage 78 | ( 79 | foldersToExport.ToArray(), 80 | Path.Combine(exportDir, exportFilename.ToString()), 81 | ExportPackageOptions.Recurse | ExportPackageOptions.Interactive 82 | ); 83 | } 84 | 85 | private void Refresh() 86 | { 87 | if (_windowData == null) 88 | { 89 | _windowData = PackageMakerWindowData.GetOrCreate(); 90 | } 91 | 92 | if (_rootView == null) return; 93 | 94 | if (_windowData != null) 95 | { 96 | LoadDataFromSave(); 97 | } 98 | } 99 | 100 | private void RefreshActionButtonState() 101 | { 102 | _actionButton.SetEnabled( 103 | StringIsValidAssetFolder(_windowData.targetAssetFolder) && 104 | !string.IsNullOrWhiteSpace(_windowData.packageID) 105 | ); 106 | } 107 | 108 | /// 109 | /// Unity calls the CreateGUI method automatically when the window needs to display 110 | /// 111 | private void CreateGUI() 112 | { 113 | if (_windowData == null) 114 | { 115 | _windowData = PackageMakerWindowData.GetOrCreate(); 116 | } 117 | 118 | _rootView = rootVisualElement; 119 | _rootView.name = "root-view"; 120 | _rootView.styleSheets.Add((StyleSheet) Resources.Load("PackageMakerWindowStyle")); 121 | 122 | // Create Target Asset folder and register for drag and drop events 123 | _rootView.Add(CreateTargetFolderElement()); 124 | _rootView.Add(CreatePackageIDElement()); 125 | _rootView.Add(CreateTargetVRCPackageElement()); 126 | _rootView.Add(CreateActionButton()); 127 | 128 | Refresh(); 129 | } 130 | 131 | public enum VRCPackageEnum 132 | { 133 | None = 0, 134 | Worlds = 1, 135 | Avatars = 2, 136 | Base = 3, 137 | UdonSharp = 4, 138 | } 139 | 140 | private VisualElement CreateTargetVRCPackageElement() 141 | { 142 | _targetVRCPackageField = new EnumField("Related VRChat Package", VRCPackageEnum.None); 143 | _targetVRCPackageField.RegisterValueChangedCallback(OnTargetVRCPackageChanged); 144 | var box = new Box(); 145 | box.Add(_targetVRCPackageField); 146 | return box; 147 | } 148 | 149 | private void OnTargetVRCPackageChanged(ChangeEvent evt) 150 | { 151 | _windowData.relatedPackage = (VRCPackageEnum)evt.newValue; 152 | _windowData.Save(); 153 | } 154 | 155 | private VisualElement CreateActionButton() 156 | { 157 | _actionButton = new Button(OnActionButtonPressed) 158 | { 159 | text = "Convert Assets to Package", 160 | name = "action-button" 161 | }; 162 | return _actionButton; 163 | } 164 | 165 | private void OnActionButtonPressed() 166 | { 167 | bool result = EditorUtility.DisplayDialog("One-Way Conversion", 168 | $"This process will move the assets from {_windowData.targetAssetFolder} into a new Package with the id {_windowData.packageID} and give it references to {_windowData.relatedPackage}.", 169 | "Ok", "Wait, not yet."); 170 | if (result) 171 | { 172 | string newPackageFolderPath = Path.Combine(_projectDir, "Packages", _windowData.packageID); 173 | Directory.CreateDirectory(newPackageFolderPath); 174 | var fullTargetAssetFolder = Path.Combine(_projectDir, _windowData.targetAssetFolder); 175 | DoMigration(fullTargetAssetFolder, newPackageFolderPath); 176 | ForceRefresh(); 177 | } 178 | } 179 | 180 | public static void ForceRefresh () 181 | { 182 | MethodInfo method = typeof( UnityEditor.PackageManager.Client ).GetMethod( "Resolve", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.DeclaredOnly ); 183 | if( method != null ) 184 | method.Invoke( null, null ); 185 | 186 | AssetDatabase.Refresh(); 187 | } 188 | 189 | private VisualElement CreatePackageIDElement() 190 | { 191 | var box = new Box() 192 | { 193 | name = "package-name-box" 194 | }; 195 | 196 | _packageIDField = new TextField("Package ID", 255, false, false, '*'); 197 | _packageIDField.RegisterValueChangedCallback(OnPackageIDChanged); 198 | box.Add(_packageIDField); 199 | 200 | box.Add(new Label("Lowercase letters, numbers and dots only.") 201 | { 202 | name="description", 203 | tooltip = "Standard practice is reverse domain notation like com.vrchat.packagename. Needs to be unique across VRChat, so if you don't own a domain you can try your username.", 204 | }); 205 | 206 | return box; 207 | } 208 | 209 | private Regex packageIdRegex = new Regex("[^a-z0-9.]"); 210 | private void OnPackageIDChanged(ChangeEvent evt) 211 | { 212 | if (evt.newValue != null) 213 | { 214 | string newId = packageIdRegex.Replace(evt.newValue, "-"); 215 | _packageIDField.SetValueWithoutNotify(newId); 216 | _windowData.packageID = newId; 217 | _windowData.Save(); 218 | } 219 | RefreshActionButtonState(); 220 | } 221 | 222 | private VisualElement CreateTargetFolderElement() 223 | { 224 | var targetFolderBox = new Box() 225 | { 226 | name = "editor-target-box" 227 | }; 228 | 229 | _targetAssetFolderField = new TextField("Target Folder"); 230 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragEnter, TrickleDown.TrickleDown); 231 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragLeave, TrickleDown.TrickleDown); 232 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragUpdated, TrickleDown.TrickleDown); 233 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragPerform, TrickleDown.TrickleDown); 234 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragExited, TrickleDown.TrickleDown); 235 | _targetAssetFolderField.RegisterValueChangedCallback(OnTargetAssetFolderValueChanged); 236 | targetFolderBox.Add(_targetAssetFolderField); 237 | 238 | targetFolderBox.Add(new Label("Drag and Drop an Assets Folder to Convert Above"){name="description"}); 239 | return targetFolderBox; 240 | } 241 | 242 | #region TargetAssetFolder Field Events 243 | 244 | private bool StringIsValidAssetFolder(string targetFolder) 245 | { 246 | return !string.IsNullOrWhiteSpace(targetFolder) && AssetDatabase.IsValidFolder(targetFolder); 247 | } 248 | 249 | private void OnTargetAssetFolderValueChanged(ChangeEvent evt) 250 | { 251 | string targetFolder = evt.newValue; 252 | 253 | if (StringIsValidAssetFolder(targetFolder)) 254 | { 255 | _windowData.targetAssetFolder = evt.newValue; 256 | _windowData.Save(); 257 | RefreshActionButtonState(); 258 | } 259 | else 260 | { 261 | _targetAssetFolderField.SetValueWithoutNotify(evt.previousValue); 262 | } 263 | } 264 | 265 | private void OnTargetAssetFolderDragExited(DragExitedEvent evt) 266 | { 267 | DragAndDrop.visualMode = DragAndDropVisualMode.None; 268 | } 269 | 270 | private void OnTargetAssetFolderDragPerform(DragPerformEvent evt) 271 | { 272 | var targetFolder = DragAndDrop.paths[0]; 273 | if (!string.IsNullOrWhiteSpace(targetFolder) && AssetDatabase.IsValidFolder(targetFolder)) 274 | { 275 | _targetAssetFolderField.value = targetFolder; 276 | } 277 | else 278 | { 279 | Debug.LogError($"Could not accept {targetFolder}. Needs to be a folder within the project"); 280 | } 281 | } 282 | 283 | private void OnTargetAssetFolderDragUpdated(DragUpdatedEvent evt) 284 | { 285 | if (DragAndDrop.paths.Length == 1) 286 | { 287 | DragAndDrop.visualMode = DragAndDropVisualMode.Copy; 288 | DragAndDrop.AcceptDrag(); 289 | } 290 | else 291 | { 292 | DragAndDrop.visualMode = DragAndDropVisualMode.Rejected; 293 | } 294 | } 295 | 296 | private void OnTargetAssetFolderDragLeave(DragLeaveEvent evt) 297 | { 298 | DragAndDrop.visualMode = DragAndDropVisualMode.None; 299 | } 300 | 301 | private void OnTargetAssetFolderDragEnter(DragEnterEvent evt) 302 | { 303 | if (DragAndDrop.paths.Length == 1) 304 | { 305 | DragAndDrop.visualMode = DragAndDropVisualMode.Copy; 306 | DragAndDrop.AcceptDrag(); 307 | } 308 | } 309 | 310 | #endregion 311 | 312 | #region Migration Logic 313 | 314 | private void DoMigration(string corePath, string targetDir) 315 | { 316 | 317 | EditorUtility.DisplayProgressBar("Migrating Package", "Creating Starter Package", 0.1f); 318 | 319 | // Convert PackageType enum to VRC Package ID string 320 | string packageType = null; 321 | switch (_windowData.relatedPackage) 322 | { 323 | case VRCPackageEnum.Avatars: 324 | packageType = "com.vrchat.avatars"; 325 | break; 326 | case VRCPackageEnum.Base: 327 | packageType = "com.vrchat.base"; 328 | break; 329 | case VRCPackageEnum.Worlds: 330 | packageType = "com.vrchat.clientsim"; // we want ClientSim too, need to specify that for now 331 | break; 332 | case VRCPackageEnum.UdonSharp: 333 | packageType = "com.vrchat.udonsharp"; 334 | break; 335 | } 336 | 337 | string parentDir = new DirectoryInfo(targetDir)?.Parent.FullName; 338 | Core.Utilities.CreateStarterPackage(_windowData.packageID, parentDir, packageType); 339 | var allFiles = GetAllFiles(corePath).ToList(); 340 | MoveFilesToPackageDir(allFiles, corePath, targetDir); 341 | 342 | // Clear target asset folder since it should no longer exist 343 | _windowData.targetAssetFolder = ""; 344 | 345 | } 346 | 347 | private static IEnumerable GetAllFiles(string path) 348 | { 349 | var excludedPaths = new List() 350 | { 351 | "Editor.meta" 352 | }; 353 | return Directory.EnumerateFiles(path, "*.*", SearchOption.AllDirectories) 354 | .Where( 355 | s => excludedPaths.All(entry => !s.Contains(entry)) 356 | ); 357 | } 358 | 359 | public static void MoveFilesToPackageDir(List files, string pathBase, string targetDir) 360 | { 361 | EditorUtility.DisplayProgressBar("Migrating Package", "Moving Package Files", 0f); 362 | float totalFiles = files.Count; 363 | 364 | for (int i = 0; i < files.Count; i++) 365 | { 366 | try 367 | { 368 | EditorUtility.DisplayProgressBar("Migrating Package", "Moving Package Files", i / totalFiles); 369 | var file = files[i]; 370 | string simplifiedPath = file.Replace($"{pathBase}\\", ""); 371 | 372 | string dest = null; 373 | if (simplifiedPath.Contains("Editor\\")) 374 | { 375 | // Remove extra 'Editor' subfolders 376 | dest = simplifiedPath.Replace("Editor\\", ""); 377 | dest = Path.Combine(targetDir, "Editor", dest); 378 | } 379 | else 380 | { 381 | // Make complete path to Runtime folder 382 | dest = Path.Combine(targetDir, "Runtime", simplifiedPath); 383 | } 384 | 385 | string targetEnclosingDir = Path.GetDirectoryName(dest); 386 | Directory.CreateDirectory(targetEnclosingDir); 387 | var sourceFile = Path.Combine(pathBase, simplifiedPath); 388 | File.Move(sourceFile, dest); 389 | } 390 | catch (Exception e) 391 | { 392 | Debug.LogError($"Error moving {files[i]}: {e.Message}"); 393 | continue; 394 | } 395 | } 396 | 397 | Directory.Delete(pathBase, true); // cleans up leftover folders since only files are moved 398 | EditorUtility.ClearProgressBar(); 399 | } 400 | 401 | // Important while we're doing copy-and-rename in order to rename paths with "Assets" without renaming paths with "Sample Assets" 402 | public static string ReplaceFirst(string text, string search, string replace) 403 | { 404 | int pos = text.IndexOf(search); 405 | if (pos < 0) 406 | { 407 | return text; 408 | } 409 | 410 | return text.Substring(0, pos) + replace + text.Substring(pos + search.Length); 411 | } 412 | 413 | #endregion 414 | } 415 | 416 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d75fcaecb8b9e7f4bbe783e5f4c9838a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindowData.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEngine; 4 | using VRC.PackageManagement.PackageMaker; 5 | 6 | public class PackageMakerWindowData : ScriptableObject 7 | { 8 | public static string defaultAssetPath = Path.Combine("Assets", "PackageMakerWindowData.asset"); 9 | public string targetAssetFolder; 10 | public string packageID; 11 | public PackageMakerWindow.VRCPackageEnum relatedPackage; 12 | 13 | public static PackageMakerWindowData GetOrCreate() 14 | { 15 | var existingData = AssetDatabase.AssetPathToGUID(defaultAssetPath); 16 | if (string.IsNullOrWhiteSpace(existingData)) 17 | { 18 | return Create(); 19 | } 20 | else 21 | { 22 | var saveData = AssetDatabase.LoadAssetAtPath(defaultAssetPath); 23 | if (saveData == null) 24 | { 25 | Debug.LogError($"Could not load saved data but the save file exists. Resetting."); 26 | return Create(); 27 | } 28 | return saveData; 29 | } 30 | } 31 | 32 | public static PackageMakerWindowData Create() 33 | { 34 | var saveData = CreateInstance(); 35 | AssetDatabase.CreateAsset(saveData, defaultAssetPath); 36 | AssetDatabase.SaveAssets(); 37 | return saveData; 38 | } 39 | 40 | public void Save() 41 | { 42 | AssetDatabase.SaveAssets(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindowData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0adae93375f5d5840a30b6e47f324172 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0aa72fa778aef5b4cb5fa177c19d3636 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/Resolver.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Threading.Tasks; 7 | using Serilog; 8 | using Serilog.Sinks.Unity3D; 9 | using UnityEditor; 10 | using UnityEngine; 11 | using VRC.PackageManagement.Core; 12 | using VRC.PackageManagement.Core.Types; 13 | using VRC.PackageManagement.Core.Types.Packages; 14 | using Version = VRC.PackageManagement.Core.Types.VPMVersion.Version; 15 | 16 | namespace VRC.PackageManagement.Resolver 17 | { 18 | 19 | [InitializeOnLoad] 20 | public class Resolver 21 | { 22 | private const string _projectLoadedKey = "PROJECT_LOADED"; 23 | 24 | private static string _projectDir; 25 | public static string ProjectDir 26 | { 27 | get 28 | { 29 | if (_projectDir != null) 30 | { 31 | return _projectDir; 32 | } 33 | 34 | try 35 | { 36 | _projectDir = new DirectoryInfo(Assembly.GetExecutingAssembly().Location).Parent.Parent.Parent 37 | .FullName; 38 | return _projectDir; 39 | } 40 | catch (Exception) 41 | { 42 | return ""; 43 | } 44 | } 45 | } 46 | 47 | static Resolver() 48 | { 49 | SetupLogging(); 50 | if (!SessionState.GetBool(_projectLoadedKey, false)) 51 | { 52 | #pragma warning disable 4014 53 | CheckResolveNeeded(); 54 | #pragma warning restore 4014 55 | } 56 | } 57 | 58 | private static void SetupLogging() 59 | { 60 | VRCLibLogger.SetLoggerDirectly( 61 | new LoggerConfiguration() 62 | .MinimumLevel.Information() 63 | .WriteTo.Unity3D() 64 | .CreateLogger() 65 | ); 66 | } 67 | 68 | private static async Task CheckResolveNeeded() 69 | { 70 | SessionState.SetBool(_projectLoadedKey, true); 71 | 72 | //Wait for project to finish compiling 73 | while (EditorApplication.isCompiling || EditorApplication.isUpdating) 74 | { 75 | await Task.Delay(250); 76 | } 77 | 78 | try 79 | { 80 | 81 | if (string.IsNullOrWhiteSpace(ProjectDir)) 82 | { 83 | return; 84 | } 85 | 86 | if (VPMProjectManifest.ResolveIsNeeded(ProjectDir)) 87 | { 88 | Debug.Log($"Resolve needed."); 89 | var result = EditorUtility.DisplayDialog("VRChat Package Management", 90 | $"This project requires some VRChat Packages which are not in the project yet.\n\nPress OK to download and install them.", 91 | "OK", "Show Me What's Missing"); 92 | if (result) 93 | { 94 | ResolveStatic(ProjectDir); 95 | } 96 | else 97 | { 98 | ResolverWindow.ShowWindow(); 99 | } 100 | } 101 | } 102 | catch (Exception) 103 | { 104 | // Unity says we can't open windows from this function so it throws an exception but also works fine. 105 | } 106 | } 107 | 108 | public static bool VPMManifestExists() 109 | { 110 | return VPMProjectManifest.Exists(ProjectDir, out _); 111 | } 112 | 113 | public static void CreateManifest() 114 | { 115 | VPMProjectManifest.Load(ProjectDir); 116 | ResolverWindow.Refresh(); 117 | } 118 | 119 | public static void ResolveManifest() 120 | { 121 | ResolveStatic(ProjectDir); 122 | } 123 | 124 | public static void ResolveStatic(string dir) 125 | { 126 | // Todo: calculate and show actual progress 127 | EditorUtility.DisplayProgressBar($"Getting all VRChat Packages", "Downloading and Installing...", 0.5f); 128 | VPMProjectManifest.Resolve(ProjectDir); 129 | EditorUtility.ClearProgressBar(); 130 | ForceRefresh(); 131 | } 132 | 133 | public static List GetAllVersionsOf(string id) 134 | { 135 | var project = new UnityProject(ProjectDir); 136 | 137 | var versions = new List(); 138 | foreach (var provider in Repos.GetAll) 139 | { 140 | var packagesWithVersions = provider.GetAllWithVersions(); 141 | 142 | foreach (var packageVersionList in packagesWithVersions) 143 | { 144 | foreach (var package in packageVersionList.Value.VersionsDescending) 145 | { 146 | if (package.Id != id) 147 | continue; 148 | if (Version.TryParse(package.Version, out var result)) 149 | { 150 | if (!versions.Contains(package.Version)) 151 | versions.Add(package.Version); 152 | } 153 | } 154 | } 155 | } 156 | 157 | // Sort packages in project to the top 158 | var sorted = from entry in versions orderby project.VPMProvider.HasPackage(entry) descending select entry; 159 | 160 | return sorted.ToList(); 161 | } 162 | 163 | public static List GetAffectedPackageList(IVRCPackage package) 164 | { 165 | List list = new List(); 166 | 167 | var project = new UnityProject(ProjectDir); 168 | 169 | if (Repos.GetAllDependencies(package, out Dictionary dependencies, null)) 170 | { 171 | foreach (KeyValuePair item in dependencies) 172 | { 173 | project.VPMProvider.Refresh(); 174 | if (project.VPMProvider.GetPackage(item.Key, item.Value) == null) 175 | { 176 | IVRCPackage d = Repos.GetPackageWithVersionMatch(item.Key, item.Value); 177 | if (d != null) 178 | { 179 | list.Add(d.Id + " " + d.Version + "\n"); 180 | } 181 | } 182 | } 183 | 184 | return list; 185 | } 186 | 187 | return null; 188 | } 189 | 190 | public static void ForceRefresh () 191 | { 192 | MethodInfo method = typeof( UnityEditor.PackageManager.Client ).GetMethod( "Resolve", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.DeclaredOnly ); 193 | if( method != null ) 194 | method.Invoke( null, null ); 195 | 196 | AssetDatabase.Refresh(); 197 | } 198 | 199 | } 200 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/Resolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f872e3586f8b4f06bab3c9facd14f6e6 3 | timeCreated: 1659048476 -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/ResolverWindow.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text; 3 | using System.Threading.Tasks; 4 | using UnityEditor; 5 | using UnityEditor.UIElements; 6 | using UnityEngine; 7 | using UnityEngine.UIElements; 8 | using VRC.PackageManagement.Core; 9 | using VRC.PackageManagement.Core.Types; 10 | using VRC.PackageManagement.Core.Types.Packages; 11 | using Version = VRC.PackageManagement.Core.Types.VPMVersion.Version; 12 | 13 | namespace VRC.PackageManagement.Resolver 14 | { 15 | public class ResolverWindow : EditorWindow 16 | { 17 | // VisualElements 18 | private static VisualElement _rootView; 19 | private static Button _refreshButton; 20 | private static Button _createButton; 21 | private static Button _resolveButton; 22 | private static Box _manifestInfo; 23 | private static Label _manifestLabel; 24 | private static bool _isUpdating; 25 | private static Color _colorPositive = Color.green; 26 | private static Color _colorNegative = new Color(1, 0.3f, 0.3f); 27 | 28 | 29 | [MenuItem("VRChat SDK/Utilities/Package Resolver")] 30 | public static void ShowWindow() 31 | { 32 | ResolverWindow wnd = GetWindow(); 33 | wnd.titleContent = new GUIContent("Package Resolver"); 34 | } 35 | 36 | public static void Refresh() 37 | { 38 | if (_rootView == null || string.IsNullOrWhiteSpace(Resolver.ProjectDir)) return; 39 | 40 | _manifestInfo.SetEnabled(!_isUpdating); 41 | _refreshButton.SetEnabled(!_isUpdating); 42 | _manifestLabel.text = (_isUpdating ? "Working ..." : "Required Packages"); 43 | _manifestInfo.Clear(); 44 | _manifestInfo.Add(_manifestLabel); 45 | 46 | bool needsResolve = VPMProjectManifest.ResolveIsNeeded(Resolver.ProjectDir); 47 | string resolveStatus = needsResolve ? "Please press \"Resolve\" to Download them." : "All of them are in the project."; 48 | 49 | // check for vpm dependencies 50 | if (!Resolver.VPMManifestExists()) 51 | { 52 | TextElement noManifestText = new TextElement(); 53 | noManifestText.text = "No VPM Manifest"; 54 | noManifestText.style.color = _colorNegative; 55 | _manifestInfo.Add(noManifestText); 56 | } 57 | else 58 | { 59 | var manifest = VPMProjectManifest.Load(Resolver.ProjectDir); 60 | var project = new UnityProject(Resolver.ProjectDir); 61 | 62 | // Here is where we detect if all dependencies are installed 63 | var allDependencies = (manifest.locked != null && manifest.locked.Count > 0) 64 | ? manifest.locked 65 | : manifest.dependencies; 66 | 67 | foreach (var pair in allDependencies) 68 | { 69 | var id = pair.Key; 70 | var version = pair.Value.version; 71 | IVRCPackage package = project.VPMProvider.GetPackage(id, version); 72 | _manifestInfo.Add(CreateDependencyRow(id, version, project, (package != null))); 73 | } 74 | 75 | } 76 | _resolveButton.SetEnabled(needsResolve); 77 | Resolver.ForceRefresh(); 78 | } 79 | 80 | /// 81 | /// Unity calls the CreateGUI method automatically when the window needs to display 82 | /// 83 | private void CreateGUI() 84 | { 85 | _rootView = rootVisualElement; 86 | _rootView.name = "root-view"; 87 | _rootView.styleSheets.Add((StyleSheet)Resources.Load("ResolverWindowStyle")); 88 | 89 | // Main Container 90 | var container = new Box() 91 | { 92 | name = "buttons" 93 | }; 94 | _rootView.Add(container); 95 | 96 | // Create Button 97 | if (!Resolver.VPMManifestExists()) 98 | { 99 | _createButton = new Button(Resolver.CreateManifest) 100 | { 101 | text = "Create", 102 | name = "create-button-base" 103 | }; 104 | container.Add(_createButton); 105 | } 106 | else 107 | { 108 | _resolveButton = new Button(Resolver.ResolveManifest) 109 | { 110 | text = "Resolve All", 111 | name = "resolve-button-base" 112 | }; 113 | container.Add(_resolveButton); 114 | } 115 | 116 | // Manifest Info 117 | _manifestInfo = new Box() 118 | { 119 | name = "manifest-info", 120 | }; 121 | _manifestLabel = (new Label("Required Packages") { name = "manifest-header" }); 122 | 123 | _rootView.Add(_manifestInfo); 124 | 125 | // Refresh Button 126 | var refreshBox = new Box(); 127 | _refreshButton = new Button(Refresh) 128 | { 129 | text = "Refresh", 130 | name = "refresh-button-base" 131 | }; 132 | refreshBox.Add(_refreshButton); 133 | _rootView.Add(refreshBox); 134 | 135 | Refresh(); 136 | } 137 | 138 | private static VisualElement CreateDependencyRow(string id, string version, UnityProject project, bool havePackage) 139 | { 140 | // Table 141 | 142 | VisualElement row = new Box() { name = "package-box" }; 143 | VisualElement column1 = new Box() { name = "package-box" }; 144 | VisualElement column2 = new Box() { name = "package-box" }; 145 | VisualElement column3 = new Box() { name = "package-box" }; 146 | VisualElement column4 = new Box() { name = "package-box" }; 147 | 148 | column1.style.minWidth = 200; 149 | column2.style.minWidth = 100; 150 | column3.style.minWidth = 100; 151 | column4.style.minWidth = 100; 152 | 153 | row.Add(column1); 154 | row.Add(column2); 155 | row.Add(column3); 156 | row.Add(column4); 157 | 158 | // Package Name + Status 159 | 160 | TextElement text = new TextElement { text = $"{id} {version} " }; 161 | 162 | column1.Add(text); 163 | 164 | if (!havePackage) 165 | { 166 | TextElement missingText = new TextElement { text = "MISSING" }; 167 | missingText.style.color = _colorNegative; 168 | missingText.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 169 | column2.Add(missingText); 170 | } 171 | 172 | // Version Popup 173 | 174 | var choices = new List(); 175 | foreach (string n in Resolver.GetAllVersionsOf(id)) 176 | { 177 | choices.Add(n); 178 | } 179 | 180 | var popupField = new PopupField(choices, 0); 181 | popupField.value = choices[0]; 182 | popupField.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 183 | 184 | column3.Add(popupField); 185 | 186 | // Button 187 | 188 | Button updateButton = new Button() { text = "Update" }; 189 | if (havePackage) 190 | RefreshUpdateButton(updateButton, version, choices[0]); 191 | else 192 | RefreshMissingButton(updateButton); 193 | 194 | updateButton.clicked += (() => 195 | { 196 | IVRCPackage package = Repos.GetPackageWithVersionMatch(id, popupField.value); 197 | 198 | // Check and warn on Dependencies if Updating or Downgrading 199 | if (Version.TryParse(version, out var currentVersion) && 200 | Version.TryParse(popupField.value, out var newVersion)) 201 | { 202 | Dictionary dependencies = new Dictionary(); 203 | StringBuilder dialogMsg = new StringBuilder(); 204 | List affectedPackages = Resolver.GetAffectedPackageList(package); 205 | for (int v = 0; v < affectedPackages.Count; v++) 206 | { 207 | dialogMsg.Append(affectedPackages[v]); 208 | } 209 | 210 | if (affectedPackages.Count > 1) 211 | { 212 | dialogMsg.Insert(0, "This will update multiple packages:\n\n"); 213 | dialogMsg.AppendLine("\nAre you sure?"); 214 | if (EditorUtility.DisplayDialog("Package Has Dependencies", dialogMsg.ToString(), "OK", "Cancel")) 215 | OnUpdatePackageClicked(project, package); 216 | } 217 | else 218 | { 219 | OnUpdatePackageClicked(project, package); 220 | } 221 | } 222 | 223 | }); 224 | column4.Add(updateButton); 225 | 226 | popupField.RegisterCallback>((evt) => 227 | { 228 | if (havePackage) 229 | RefreshUpdateButton(updateButton, version, evt.newValue); 230 | else 231 | RefreshMissingButton(updateButton); 232 | }); 233 | 234 | return row; 235 | } 236 | 237 | private static void RefreshUpdateButton(Button button, string currentVersion, string highestAvailableVersion) 238 | { 239 | if (currentVersion == highestAvailableVersion) 240 | { 241 | button.style.display = DisplayStyle.None; 242 | } 243 | else 244 | { 245 | button.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 246 | if (Version.TryParse(currentVersion, out var currentVersionObject) && 247 | Version.TryParse(highestAvailableVersion, out var highestAvailableVersionObject)) 248 | { 249 | if (currentVersionObject < highestAvailableVersionObject) 250 | { 251 | SetButtonColor(button, _colorPositive); 252 | button.text = "Update"; 253 | } 254 | else 255 | { 256 | SetButtonColor(button, _colorNegative); 257 | button.text = "Downgrade"; 258 | } 259 | } 260 | } 261 | } 262 | 263 | private static void RefreshMissingButton(Button button) 264 | { 265 | button.text = "Resolve"; 266 | SetButtonColor(button, Color.white); 267 | button.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 268 | } 269 | 270 | private static void SetButtonColor(Button button, Color color) 271 | { 272 | button.style.color = color; 273 | color.a = 0.25f; 274 | button.style.borderRightColor = 275 | button.style.borderLeftColor = 276 | button.style.borderTopColor = 277 | button.style.borderBottomColor = 278 | color; 279 | } 280 | 281 | private static async void OnUpdatePackageClicked(UnityProject project, IVRCPackage package) 282 | { 283 | _isUpdating = true; 284 | Refresh(); 285 | await Task.Delay(500); 286 | await Task.Run(() => project.UpdateVPMPackage(package)); 287 | _isUpdating = false; 288 | Refresh(); 289 | } 290 | 291 | } 292 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/ResolverWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32d2636186ee0834fa1dc2287750dd32 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8700b619eebc09545b4aaf4f69a2bf79 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/PackageMakerWindowStyle.uss: -------------------------------------------------------------------------------- 1 | .unity-box { 2 | margin: 10px; 3 | padding:10px; 4 | } 5 | 6 | .unity-box #description { 7 | margin: 10px 0 10px 0; 8 | white-space: normal; 9 | } 10 | 11 | #action-button { 12 | font-size: 20px; 13 | -unity-font-style: bold; 14 | padding: 10px; 15 | margin:10px; 16 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/PackageMakerWindowStyle.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dfe8fb3b6d0f3e4693553ecc1cb23dd 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} 11 | disableValidation: 0 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/ResolverWindowStyle.uss: -------------------------------------------------------------------------------- 1 | .unity-box { 2 | margin:2px; 3 | padding:10px; 4 | border-width:0px; 5 | } 6 | 7 | #package-box { 8 | margin:2px; 9 | padding:10px; 10 | border-width:0px; 11 | flex-direction:row; 12 | max-height:20px; 13 | min-height:20px; 14 | height:20px; 15 | padding-top:0px; 16 | padding-bottom:0px; 17 | margin-top:0px; 18 | margin-bottom:0px; 19 | align-items:center; 20 | } 21 | 22 | #manifest-header { 23 | font-size: 20px; 24 | margin-bottom: 10px; 25 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/ResolverWindowStyle.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 346f7a547766ecb4396d15f585a15133 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} 11 | disableValidation: 0 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/com.vrchat.core.vpm-resolver.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.vrchat.core.vpm-resolver.Editor", 3 | "references": [], 4 | "includePlatforms": [ 5 | "Editor" 6 | ], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/com.vrchat.core.vpm-resolver.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1e8c2ba944807d4a9213e2de6930a0b 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/License.md: -------------------------------------------------------------------------------- 1 | # VRCHAT INC. 2 | ### VRCHAT DISTRO LICENSE FILE 3 | Version: February 24, 2022 4 | 5 | **SUMMARY OF TERMS:** Any materials subject to this Distro Asset License may be distributed by you, with or without modifications, on a non-commercial basis (i.e., at no charge), in accordance with the full terms of the Materials License Agreement. 6 | 7 | This Distro License File is a "License File" as defined in the VRChat Materials License Agreement, found at https://hello.vrchat.com/legal/sdk (or any successor link designated by VRChat) (as may be revised from time to time, the "Materials License Agreement"). 8 | 9 | This Distro License File applies to all the files in the Folder containing this Distro License File and those in all Child Folders within that Folder (except with respect to files in any Child Folder that contains a different License File) (such files, other than this Distro License File, the "Covered Files"). All capitalized terms used but not otherwise defined in this Distro License File have the meanings provided in the Materials License Agreement. 10 | 11 | This Distro License File only provides a summary of the terms applicable to the Covered Files. To understand your rights and obligations and the full set of terms that apply to use of the Covered Files, please see the relevant sections of the Materials License Agreement, including terms applicable to Distro Materials. -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/License.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7727f888edf4714448d5a0287deec6dd 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "com.vrchat.core.vpm-resolver", 3 | "displayName" : "VRChat Package Resolver Tool", 4 | "version" : "0.1.19", 5 | "unity" : "2019.4", 6 | "description" : "Tool to Download VPM Packages", 7 | "vrchatVersion" : "2022.1.1", 8 | "author" : { 9 | "name" : "VRChat", 10 | "email" : "developer@vrchat.com", 11 | "url" : "https://github.com/vrchat/packages" 12 | }, 13 | "url" : "", 14 | "dependencies" : { 15 | "com.unity.nuget.newtonsoft-json" : "2.0.2" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b02e2915ebf04e4ea94e503d73e7411 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies" : { 3 | "com.unity.collab-proxy" : "1.6.0", 4 | "com.unity.ide.rider" : "1.2.1", 5 | "com.unity.ide.visualstudio" : "2.0.9", 6 | "com.unity.ide.vscode" : "1.2.3", 7 | "com.unity.test-framework" : "1.1.27", 8 | "com.unity.textmeshpro" : "2.1.6", 9 | "com.unity.timeline" : "1.2.18", 10 | "com.unity.ugui" : "1.0.0", 11 | "com.unity.xr.oculus.standalone" : "2.38.4", 12 | "com.unity.xr.openvr.standalone" : "2.0.5", 13 | "com.unity.modules.ai" : "1.0.0", 14 | "com.unity.modules.androidjni" : "1.0.0", 15 | "com.unity.modules.animation" : "1.0.0", 16 | "com.unity.modules.assetbundle" : "1.0.0", 17 | "com.unity.modules.audio" : "1.0.0", 18 | "com.unity.modules.cloth" : "1.0.0", 19 | "com.unity.modules.director" : "1.0.0", 20 | "com.unity.modules.imageconversion" : "1.0.0", 21 | "com.unity.modules.imgui" : "1.0.0", 22 | "com.unity.modules.jsonserialize" : "1.0.0", 23 | "com.unity.modules.particlesystem" : "1.0.0", 24 | "com.unity.modules.physics" : "1.0.0", 25 | "com.unity.modules.physics2d" : "1.0.0", 26 | "com.unity.modules.screencapture" : "1.0.0", 27 | "com.unity.modules.terrain" : "1.0.0", 28 | "com.unity.modules.terrainphysics" : "1.0.0", 29 | "com.unity.modules.tilemap" : "1.0.0", 30 | "com.unity.modules.ui" : "1.0.0", 31 | "com.unity.modules.uielements" : "1.0.0", 32 | "com.unity.modules.umbra" : "1.0.0", 33 | "com.unity.modules.unityanalytics" : "1.0.0", 34 | "com.unity.modules.unitywebrequest" : "1.0.0", 35 | "com.unity.modules.unitywebrequestassetbundle" : "1.0.0", 36 | "com.unity.modules.unitywebrequestaudio" : "1.0.0", 37 | "com.unity.modules.unitywebrequesttexture" : "1.0.0", 38 | "com.unity.modules.unitywebrequestwww" : "1.0.0", 39 | "com.unity.modules.vehicles" : "1.0.0", 40 | "com.unity.modules.video" : "1.0.0", 41 | "com.unity.modules.vr" : "1.0.0", 42 | "com.unity.modules.wind" : "1.0.0", 43 | "com.unity.modules.xr" : "1.0.0" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6ac7c68a9927fc44b7c89de697eac39 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e0e766c5f34a38419244169c08e05e6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/Koyashiro.UdonEncoding.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Koyashiro.UdonEncoding.Tests", 3 | "references": [ 4 | "UdonSharp.Runtime", 5 | "Koyashiro.UdonTest", 6 | "Koyashiro.UdonEncoding" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [], 16 | "noEngineReferences": false 17 | } -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/Koyashiro.UdonEncoding.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 741d3ffa59650d74e83a332beaa747e5 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/Koyashiro.UdonEncoding.Tests.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 5136146375e9a0a498a72a0091b40cc1, type: 3} 13 | m_Name: Koyashiro.UdonEncoding.Tests 14 | m_EditorClassIdentifier: 15 | sourceAssembly: {fileID: 5897886265953266890, guid: 741d3ffa59650d74e83a332beaa747e5, 16 | type: 3} 17 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/Koyashiro.UdonEncoding.Tests.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86326488e248b734d803a552dba9ac10 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/Test.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &318234365 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 318234366} 133 | m_Layer: 0 134 | m_Name: Tests 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!4 &318234366 141 | Transform: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 318234365} 147 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 148 | m_LocalPosition: {x: 0, y: 0, z: 0} 149 | m_LocalScale: {x: 1, y: 1, z: 1} 150 | m_Children: 151 | - {fileID: 789660839} 152 | - {fileID: 398613336} 153 | m_Father: {fileID: 0} 154 | m_RootOrder: 3 155 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 156 | --- !u!1 &398613335 157 | GameObject: 158 | m_ObjectHideFlags: 0 159 | m_CorrespondingSourceObject: {fileID: 0} 160 | m_PrefabInstance: {fileID: 0} 161 | m_PrefabAsset: {fileID: 0} 162 | serializedVersion: 6 163 | m_Component: 164 | - component: {fileID: 398613336} 165 | - component: {fileID: 398613338} 166 | - component: {fileID: 398613337} 167 | m_Layer: 0 168 | m_Name: UdonUTF32Test 169 | m_TagString: Untagged 170 | m_Icon: {fileID: 0} 171 | m_NavMeshLayer: 0 172 | m_StaticEditorFlags: 0 173 | m_IsActive: 1 174 | --- !u!4 &398613336 175 | Transform: 176 | m_ObjectHideFlags: 0 177 | m_CorrespondingSourceObject: {fileID: 0} 178 | m_PrefabInstance: {fileID: 0} 179 | m_PrefabAsset: {fileID: 0} 180 | m_GameObject: {fileID: 398613335} 181 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 182 | m_LocalPosition: {x: 0, y: 0, z: 0} 183 | m_LocalScale: {x: 1, y: 1, z: 1} 184 | m_Children: [] 185 | m_Father: {fileID: 318234366} 186 | m_RootOrder: 1 187 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 188 | --- !u!114 &398613337 189 | MonoBehaviour: 190 | m_ObjectHideFlags: 2 191 | m_CorrespondingSourceObject: {fileID: 0} 192 | m_PrefabInstance: {fileID: 0} 193 | m_PrefabAsset: {fileID: 0} 194 | m_GameObject: {fileID: 398613335} 195 | m_Enabled: 1 196 | m_EditorHideFlags: 0 197 | m_Script: {fileID: 11500000, guid: 45115577ef41a5b4ca741ed302693907, type: 3} 198 | m_Name: 199 | m_EditorClassIdentifier: 200 | interactTextPlacement: {fileID: 0} 201 | interactText: Use 202 | interactTextGO: {fileID: 0} 203 | proximity: 2 204 | SynchronizePosition: 0 205 | AllowCollisionOwnershipTransfer: 0 206 | Reliable: 0 207 | _syncMethod: 2 208 | serializedProgramAsset: {fileID: 11400000, guid: 269b4b932ef421e43ab252233ae358dc, 209 | type: 2} 210 | programSource: {fileID: 11400000, guid: 269eb6024428580449386e0d74c49028, type: 2} 211 | serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAAAAACcBBAAAAHQAeQBwAGUAAWgAAABTAHkAcwB0AGUAbQAuAEMAbwBsAGwAZQBjAHQAaQBvAG4AcwAuAEcAZQBuAGUAcgBpAGMALgBMAGkAcwB0AGAAMQBbAFsAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBJAG4AdABlAHIAZgBhAGMAZQBzAC4ASQBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AXQBdACwAIABtAHMAYwBvAHIAbABpAGIAAQEJAAAAVgBhAHIAaQBhAGIAbABlAHMALwEAAAABaAAAAFMAeQBzAHQAZQBtAC4AQwBvAGwAbABlAGMAdABpAG8AbgBzAC4ARwBlAG4AZQByAGkAYwAuAEwAaQBzAHQAYAAxAFsAWwBWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAEkAbgB0AGUAcgBmAGEAYwBlAHMALgBJAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlACwAIABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgBdAF0ALAAgAG0AcwBjAG8AcgBsAGkAYgABAAAABgEAAAAAAAAAAi8CAAAAAUkAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAGAAMQBbAFsAUwB5AHMAdABlAG0ALgBJAG4AdAAzADIALAAgAG0AcwBjAG8AcgBsAGkAYgBdAF0ALAAgAFYAUgBDAC4AVQBkAG8AbgAuAEMAbwBtAG0AbwBuAAIAAAAGAgAAAAAAAAAnAQQAAAB0AHkAcABlAAEXAAAAUwB5AHMAdABlAG0ALgBTAHQAcgBpAG4AZwAsACAAbQBzAGMAbwByAGwAaQBiACcBCgAAAFMAeQBtAGIAbwBsAE4AYQBtAGUAAR8AAABfAF8AXwBVAGQAbwBuAFMAaABhAHIAcABCAGUAaABhAHYAaQBvAHUAcgBWAGUAcgBzAGkAbwBuAF8AXwBfACcBBAAAAHQAeQBwAGUAARYAAABTAHkAcwB0AGUAbQAuAEkAbgB0ADMAMgAsACAAbQBzAGMAbwByAGwAaQBiABcBBQAAAFYAYQBsAHUAZQACAAAABwUHBQcF 212 | publicVariablesUnityEngineObjects: [] 213 | publicVariablesSerializationDataFormat: 0 214 | --- !u!114 &398613338 215 | MonoBehaviour: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | m_GameObject: {fileID: 398613335} 221 | m_Enabled: 1 222 | m_EditorHideFlags: 0 223 | m_Script: {fileID: 11500000, guid: ab60429c76204fa46bb912be2e5c329f, type: 3} 224 | m_Name: 225 | m_EditorClassIdentifier: 226 | serializationData: 227 | SerializedFormat: 2 228 | SerializedBytes: 229 | ReferencedUnityObjects: [] 230 | SerializedBytesString: 231 | Prefab: {fileID: 0} 232 | PrefabModificationsReferencedUnityObjects: [] 233 | PrefabModifications: [] 234 | SerializationNodes: [] 235 | _udonSharpBackingUdonBehaviour: {fileID: 398613337} 236 | --- !u!1 &658461270 237 | GameObject: 238 | m_ObjectHideFlags: 0 239 | m_CorrespondingSourceObject: {fileID: 0} 240 | m_PrefabInstance: {fileID: 0} 241 | m_PrefabAsset: {fileID: 0} 242 | serializedVersion: 6 243 | m_Component: 244 | - component: {fileID: 658461273} 245 | - component: {fileID: 658461272} 246 | - component: {fileID: 658461271} 247 | m_Layer: 0 248 | m_Name: Main Camera 249 | m_TagString: MainCamera 250 | m_Icon: {fileID: 0} 251 | m_NavMeshLayer: 0 252 | m_StaticEditorFlags: 0 253 | m_IsActive: 1 254 | --- !u!81 &658461271 255 | AudioListener: 256 | m_ObjectHideFlags: 0 257 | m_CorrespondingSourceObject: {fileID: 0} 258 | m_PrefabInstance: {fileID: 0} 259 | m_PrefabAsset: {fileID: 0} 260 | m_GameObject: {fileID: 658461270} 261 | m_Enabled: 1 262 | --- !u!20 &658461272 263 | Camera: 264 | m_ObjectHideFlags: 0 265 | m_CorrespondingSourceObject: {fileID: 0} 266 | m_PrefabInstance: {fileID: 0} 267 | m_PrefabAsset: {fileID: 0} 268 | m_GameObject: {fileID: 658461270} 269 | m_Enabled: 1 270 | serializedVersion: 2 271 | m_ClearFlags: 1 272 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 273 | m_projectionMatrixMode: 1 274 | m_GateFitMode: 2 275 | m_FOVAxisMode: 0 276 | m_SensorSize: {x: 36, y: 24} 277 | m_LensShift: {x: 0, y: 0} 278 | m_FocalLength: 50 279 | m_NormalizedViewPortRect: 280 | serializedVersion: 2 281 | x: 0 282 | y: 0 283 | width: 1 284 | height: 1 285 | near clip plane: 0.3 286 | far clip plane: 1000 287 | field of view: 60 288 | orthographic: 0 289 | orthographic size: 5 290 | m_Depth: -1 291 | m_CullingMask: 292 | serializedVersion: 2 293 | m_Bits: 4294967295 294 | m_RenderingPath: -1 295 | m_TargetTexture: {fileID: 0} 296 | m_TargetDisplay: 0 297 | m_TargetEye: 3 298 | m_HDR: 1 299 | m_AllowMSAA: 1 300 | m_AllowDynamicResolution: 0 301 | m_ForceIntoRT: 0 302 | m_OcclusionCulling: 1 303 | m_StereoConvergence: 10 304 | m_StereoSeparation: 0.022 305 | --- !u!4 &658461273 306 | Transform: 307 | m_ObjectHideFlags: 0 308 | m_CorrespondingSourceObject: {fileID: 0} 309 | m_PrefabInstance: {fileID: 0} 310 | m_PrefabAsset: {fileID: 0} 311 | m_GameObject: {fileID: 658461270} 312 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 313 | m_LocalPosition: {x: 0, y: 1, z: -10} 314 | m_LocalScale: {x: 1, y: 1, z: 1} 315 | m_Children: [] 316 | m_Father: {fileID: 0} 317 | m_RootOrder: 0 318 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 319 | --- !u!1 &789660838 320 | GameObject: 321 | m_ObjectHideFlags: 0 322 | m_CorrespondingSourceObject: {fileID: 0} 323 | m_PrefabInstance: {fileID: 0} 324 | m_PrefabAsset: {fileID: 0} 325 | serializedVersion: 6 326 | m_Component: 327 | - component: {fileID: 789660839} 328 | - component: {fileID: 789660841} 329 | - component: {fileID: 789660840} 330 | m_Layer: 0 331 | m_Name: UdonUTF8Test 332 | m_TagString: Untagged 333 | m_Icon: {fileID: 0} 334 | m_NavMeshLayer: 0 335 | m_StaticEditorFlags: 0 336 | m_IsActive: 1 337 | --- !u!4 &789660839 338 | Transform: 339 | m_ObjectHideFlags: 0 340 | m_CorrespondingSourceObject: {fileID: 0} 341 | m_PrefabInstance: {fileID: 0} 342 | m_PrefabAsset: {fileID: 0} 343 | m_GameObject: {fileID: 789660838} 344 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 345 | m_LocalPosition: {x: 0, y: 0, z: 0} 346 | m_LocalScale: {x: 1, y: 1, z: 1} 347 | m_Children: [] 348 | m_Father: {fileID: 318234366} 349 | m_RootOrder: 0 350 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 351 | --- !u!114 &789660840 352 | MonoBehaviour: 353 | m_ObjectHideFlags: 2 354 | m_CorrespondingSourceObject: {fileID: 0} 355 | m_PrefabInstance: {fileID: 0} 356 | m_PrefabAsset: {fileID: 0} 357 | m_GameObject: {fileID: 789660838} 358 | m_Enabled: 1 359 | m_EditorHideFlags: 0 360 | m_Script: {fileID: 11500000, guid: 45115577ef41a5b4ca741ed302693907, type: 3} 361 | m_Name: 362 | m_EditorClassIdentifier: 363 | interactTextPlacement: {fileID: 0} 364 | interactText: Use 365 | interactTextGO: {fileID: 0} 366 | proximity: 2 367 | SynchronizePosition: 0 368 | AllowCollisionOwnershipTransfer: 0 369 | Reliable: 0 370 | _syncMethod: 2 371 | serializedProgramAsset: {fileID: 11400000, guid: 7aa9f29fc2ebce949871429a504b8996, 372 | type: 2} 373 | programSource: {fileID: 11400000, guid: df15cb1c8c6c3ce45af3f7221fafe9dc, type: 2} 374 | serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAAAAACcBBAAAAHQAeQBwAGUAAWgAAABTAHkAcwB0AGUAbQAuAEMAbwBsAGwAZQBjAHQAaQBvAG4AcwAuAEcAZQBuAGUAcgBpAGMALgBMAGkAcwB0AGAAMQBbAFsAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBJAG4AdABlAHIAZgBhAGMAZQBzAC4ASQBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AXQBdACwAIABtAHMAYwBvAHIAbABpAGIAAQEJAAAAVgBhAHIAaQBhAGIAbABlAHMALwEAAAABaAAAAFMAeQBzAHQAZQBtAC4AQwBvAGwAbABlAGMAdABpAG8AbgBzAC4ARwBlAG4AZQByAGkAYwAuAEwAaQBzAHQAYAAxAFsAWwBWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAEkAbgB0AGUAcgBmAGEAYwBlAHMALgBJAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlACwAIABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgBdAF0ALAAgAG0AcwBjAG8AcgBsAGkAYgABAAAABgEAAAAAAAAAAi8CAAAAAUkAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAGAAMQBbAFsAUwB5AHMAdABlAG0ALgBJAG4AdAAzADIALAAgAG0AcwBjAG8AcgBsAGkAYgBdAF0ALAAgAFYAUgBDAC4AVQBkAG8AbgAuAEMAbwBtAG0AbwBuAAIAAAAGAgAAAAAAAAAnAQQAAAB0AHkAcABlAAEXAAAAUwB5AHMAdABlAG0ALgBTAHQAcgBpAG4AZwAsACAAbQBzAGMAbwByAGwAaQBiACcBCgAAAFMAeQBtAGIAbwBsAE4AYQBtAGUAAR8AAABfAF8AXwBVAGQAbwBuAFMAaABhAHIAcABCAGUAaABhAHYAaQBvAHUAcgBWAGUAcgBzAGkAbwBuAF8AXwBfACcBBAAAAHQAeQBwAGUAARYAAABTAHkAcwB0AGUAbQAuAEkAbgB0ADMAMgAsACAAbQBzAGMAbwByAGwAaQBiABcBBQAAAFYAYQBsAHUAZQACAAAABwUHBQcF 375 | publicVariablesUnityEngineObjects: [] 376 | publicVariablesSerializationDataFormat: 0 377 | --- !u!114 &789660841 378 | MonoBehaviour: 379 | m_ObjectHideFlags: 0 380 | m_CorrespondingSourceObject: {fileID: 0} 381 | m_PrefabInstance: {fileID: 0} 382 | m_PrefabAsset: {fileID: 0} 383 | m_GameObject: {fileID: 789660838} 384 | m_Enabled: 1 385 | m_EditorHideFlags: 0 386 | m_Script: {fileID: 11500000, guid: ea733bc3f9cc4a74583847e297a43c38, type: 3} 387 | m_Name: 388 | m_EditorClassIdentifier: 389 | serializationData: 390 | SerializedFormat: 2 391 | SerializedBytes: 392 | ReferencedUnityObjects: [] 393 | SerializedBytesString: 394 | Prefab: {fileID: 0} 395 | PrefabModificationsReferencedUnityObjects: [] 396 | PrefabModifications: [] 397 | SerializationNodes: [] 398 | _udonSharpBackingUdonBehaviour: {fileID: 789660840} 399 | --- !u!1 &1046547061 400 | GameObject: 401 | m_ObjectHideFlags: 0 402 | m_CorrespondingSourceObject: {fileID: 0} 403 | m_PrefabInstance: {fileID: 0} 404 | m_PrefabAsset: {fileID: 0} 405 | serializedVersion: 6 406 | m_Component: 407 | - component: {fileID: 1046547063} 408 | - component: {fileID: 1046547062} 409 | m_Layer: 0 410 | m_Name: Directional Light 411 | m_TagString: Untagged 412 | m_Icon: {fileID: 0} 413 | m_NavMeshLayer: 0 414 | m_StaticEditorFlags: 0 415 | m_IsActive: 1 416 | --- !u!108 &1046547062 417 | Light: 418 | m_ObjectHideFlags: 0 419 | m_CorrespondingSourceObject: {fileID: 0} 420 | m_PrefabInstance: {fileID: 0} 421 | m_PrefabAsset: {fileID: 0} 422 | m_GameObject: {fileID: 1046547061} 423 | m_Enabled: 1 424 | serializedVersion: 10 425 | m_Type: 1 426 | m_Shape: 0 427 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 428 | m_Intensity: 1 429 | m_Range: 10 430 | m_SpotAngle: 30 431 | m_InnerSpotAngle: 21.80208 432 | m_CookieSize: 10 433 | m_Shadows: 434 | m_Type: 2 435 | m_Resolution: -1 436 | m_CustomResolution: -1 437 | m_Strength: 1 438 | m_Bias: 0.05 439 | m_NormalBias: 0.4 440 | m_NearPlane: 0.2 441 | m_CullingMatrixOverride: 442 | e00: 1 443 | e01: 0 444 | e02: 0 445 | e03: 0 446 | e10: 0 447 | e11: 1 448 | e12: 0 449 | e13: 0 450 | e20: 0 451 | e21: 0 452 | e22: 1 453 | e23: 0 454 | e30: 0 455 | e31: 0 456 | e32: 0 457 | e33: 1 458 | m_UseCullingMatrixOverride: 0 459 | m_Cookie: {fileID: 0} 460 | m_DrawHalo: 0 461 | m_Flare: {fileID: 0} 462 | m_RenderMode: 0 463 | m_CullingMask: 464 | serializedVersion: 2 465 | m_Bits: 4294967295 466 | m_RenderingLayerMask: 1 467 | m_Lightmapping: 4 468 | m_LightShadowCasterMode: 0 469 | m_AreaSize: {x: 1, y: 1} 470 | m_BounceIntensity: 1 471 | m_ColorTemperature: 6570 472 | m_UseColorTemperature: 0 473 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 474 | m_UseBoundingSphereOverride: 0 475 | m_ShadowRadius: 0 476 | m_ShadowAngle: 0 477 | --- !u!4 &1046547063 478 | Transform: 479 | m_ObjectHideFlags: 0 480 | m_CorrespondingSourceObject: {fileID: 0} 481 | m_PrefabInstance: {fileID: 0} 482 | m_PrefabAsset: {fileID: 0} 483 | m_GameObject: {fileID: 1046547061} 484 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 485 | m_LocalPosition: {x: 0, y: 3, z: 0} 486 | m_LocalScale: {x: 1, y: 1, z: 1} 487 | m_Children: [] 488 | m_Father: {fileID: 0} 489 | m_RootOrder: 1 490 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 491 | --- !u!1 &1720304915 492 | GameObject: 493 | m_ObjectHideFlags: 0 494 | m_CorrespondingSourceObject: {fileID: 0} 495 | m_PrefabInstance: {fileID: 0} 496 | m_PrefabAsset: {fileID: 0} 497 | serializedVersion: 6 498 | m_Component: 499 | - component: {fileID: 1720304918} 500 | - component: {fileID: 1720304917} 501 | - component: {fileID: 1720304916} 502 | m_Layer: 0 503 | m_Name: World 504 | m_TagString: Untagged 505 | m_Icon: {fileID: 0} 506 | m_NavMeshLayer: 0 507 | m_StaticEditorFlags: 0 508 | m_IsActive: 1 509 | --- !u!114 &1720304916 510 | MonoBehaviour: 511 | m_ObjectHideFlags: 0 512 | m_CorrespondingSourceObject: {fileID: 0} 513 | m_PrefabInstance: {fileID: 0} 514 | m_PrefabAsset: {fileID: 0} 515 | m_GameObject: {fileID: 1720304915} 516 | m_Enabled: 1 517 | m_EditorHideFlags: 0 518 | m_Script: {fileID: -1427037861, guid: 4ecd63eff847044b68db9453ce219299, type: 3} 519 | m_Name: 520 | m_EditorClassIdentifier: 521 | launchedFromSDKPipeline: 0 522 | completedSDKPipeline: 0 523 | blueprintId: 524 | contentType: 0 525 | assetBundleUnityVersion: 526 | fallbackStatus: 0 527 | --- !u!114 &1720304917 528 | MonoBehaviour: 529 | m_ObjectHideFlags: 0 530 | m_CorrespondingSourceObject: {fileID: 0} 531 | m_PrefabInstance: {fileID: 0} 532 | m_PrefabAsset: {fileID: 0} 533 | m_GameObject: {fileID: 1720304915} 534 | m_Enabled: 1 535 | m_EditorHideFlags: 0 536 | m_Script: {fileID: -17141911, guid: 661092b4961be7145bfbe56e1e62337b, type: 3} 537 | m_Name: 538 | m_EditorClassIdentifier: 539 | spawns: 540 | - {fileID: 1720304918} 541 | spawnOrder: 2 542 | spawnOrientation: 0 543 | ReferenceCamera: {fileID: 0} 544 | RespawnHeightY: -100 545 | ObjectBehaviourAtRespawnHeight: 0 546 | ForbidUserPortals: 0 547 | autoSpatializeAudioSources: 0 548 | gravity: {x: 0, y: -9.81, z: 0} 549 | layerCollisionArr: 550 | capacity: 0 551 | contentSex: 0 552 | contentViolence: 0 553 | contentGore: 0 554 | contentOther: 0 555 | releasePublic: 0 556 | unityVersion: 557 | Name: 558 | NSFW: 0 559 | SpawnPosition: {x: 0, y: 0, z: 0} 560 | SpawnLocation: {fileID: 0} 561 | DrawDistance: 0 562 | useAssignedLayers: 0 563 | DynamicPrefabs: [] 564 | DynamicMaterials: [] 565 | LightMapsNear: [] 566 | LightMapsFar: [] 567 | LightMode: 0 568 | RenderAmbientEquatorColor: {r: 0, g: 0, b: 0, a: 0} 569 | RenderAmbientGroundColor: {r: 0, g: 0, b: 0, a: 0} 570 | RenderAmbientIntensity: 0 571 | RenderAmbientLight: {r: 0, g: 0, b: 0, a: 0} 572 | RenderAmbientMode: 0 573 | RenderAmbientProbe: 574 | sh[ 0]: 0 575 | sh[ 1]: 0 576 | sh[ 2]: 0 577 | sh[ 3]: 0 578 | sh[ 4]: 0 579 | sh[ 5]: 0 580 | sh[ 6]: 0 581 | sh[ 7]: 0 582 | sh[ 8]: 0 583 | sh[ 9]: 0 584 | sh[10]: 0 585 | sh[11]: 0 586 | sh[12]: 0 587 | sh[13]: 0 588 | sh[14]: 0 589 | sh[15]: 0 590 | sh[16]: 0 591 | sh[17]: 0 592 | sh[18]: 0 593 | sh[19]: 0 594 | sh[20]: 0 595 | sh[21]: 0 596 | sh[22]: 0 597 | sh[23]: 0 598 | sh[24]: 0 599 | sh[25]: 0 600 | sh[26]: 0 601 | RenderAmbientSkyColor: {r: 0, g: 0, b: 0, a: 0} 602 | RenderFog: 0 603 | RenderFogColor: {r: 0, g: 0, b: 0, a: 0} 604 | RenderFogMode: 0 605 | RenderFogDensity: 0 606 | RenderFogLinearStart: 0 607 | RenderFogLinearEnd: 0 608 | RenderHaloStrength: 0 609 | RenderFlareFadeSpeed: 0 610 | RenderFlareStrength: 0 611 | RenderCustomReflection: {fileID: 0} 612 | RenderDefaultReflectionMode: 0 613 | RenderDefaultReflectionResolution: 0 614 | RenderReflectionBounces: 0 615 | RenderReflectionIntensity: 0 616 | RenderSkybox: {fileID: 0} 617 | NetworkIDs: [] 618 | portraitCameraPositionOffset: {x: 0, y: 0, z: 0} 619 | portraitCameraRotationOffset: {x: 0, y: 1, z: 0, w: -0.00000004371139} 620 | --- !u!4 &1720304918 621 | Transform: 622 | m_ObjectHideFlags: 0 623 | m_CorrespondingSourceObject: {fileID: 0} 624 | m_PrefabInstance: {fileID: 0} 625 | m_PrefabAsset: {fileID: 0} 626 | m_GameObject: {fileID: 1720304915} 627 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 628 | m_LocalPosition: {x: 0, y: 0, z: 0} 629 | m_LocalScale: {x: 1, y: 1, z: 1} 630 | m_Children: [] 631 | m_Father: {fileID: 0} 632 | m_RootOrder: 2 633 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 634 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c4e57c9f6ca525418b7382ae55e5caa 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF32Test.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3} 13 | m_Name: UdonUTF32Test 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 269b4b932ef421e43ab252233ae358dc, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: ab60429c76204fa46bb912be2e5c329f, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -3461006311190500104 25 | serializationData: 26 | SerializedFormat: 2 27 | SerializedBytes: 28 | ReferencedUnityObjects: [] 29 | SerializedBytesString: 30 | Prefab: {fileID: 0} 31 | PrefabModificationsReferencedUnityObjects: [] 32 | PrefabModifications: [] 33 | SerializationNodes: 34 | - Name: fieldDefinitions 35 | Entry: 7 36 | Data: 0|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UdonSharp.Compiler.FieldDefinition, 37 | UdonSharp.Editor]], mscorlib 38 | - Name: comparer 39 | Entry: 7 40 | Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.String, 41 | mscorlib]], mscorlib 42 | - Name: 43 | Entry: 8 44 | Data: 45 | - Name: 46 | Entry: 12 47 | Data: 0 48 | - Name: 49 | Entry: 13 50 | Data: 51 | - Name: 52 | Entry: 8 53 | Data: 54 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF32Test.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 269eb6024428580449386e0d74c49028 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF32Test.cs: -------------------------------------------------------------------------------- 1 | using UdonSharp; 2 | using Koyashiro.UdonTest; 3 | 4 | namespace Koyashiro 5 | { 6 | namespace UdonEncoding.Test 7 | { 8 | public class UdonUTF32Test : UdonSharpBehaviour 9 | { 10 | public void Start() 11 | { 12 | Assert.Equal(new byte[] { 0x61, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00 }, UdonUTF32.GetBytes("abc")); 13 | Assert.Equal(new byte[] { 0x42, 0x30, 0x0, 0x0, 0x44, 0x30, 0x0, 0x0, 0x46, 0x30, 0x0, 0x0 }, UdonUTF32.GetBytes("あいう")); 14 | Assert.Equal(new byte[] { 0x10, 0xff, 0x0, 0x0, 0x11, 0xff, 0x0, 0x0, 0x12, 0xff, 0x0, 0x0 }, UdonUTF32.GetBytes("012")); 15 | Assert.Equal(new byte[] { 0x14, 0xf9, 0x01, 0x00, 0x5b, 0xf3, 0x01, 0x00, 0x63, 0xf3, 0x01, 0x00 }, UdonUTF32.GetBytes("🤔🍛🍣")); 16 | 17 | Assert.Equal("abc", UdonUTF32.GetString(new byte[] { 0x61, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00 })); 18 | Assert.Equal("あいう", UdonUTF32.GetString(new byte[] { 0x42, 0x30, 0x0, 0x0, 0x44, 0x30, 0x0, 0x0, 0x46, 0x30, 0x0, 0x0 })); 19 | Assert.Equal("012", UdonUTF32.GetString(new byte[] { 0x10, 0xff, 0x0, 0x0, 0x11, 0xff, 0x0, 0x0, 0x12, 0xff, 0x0, 0x0 })); 20 | Assert.Equal("🤔🍛🍣", UdonUTF32.GetString(new byte[] { 0x14, 0xf9, 0x01, 0x00, 0x5b, 0xf3, 0x01, 0x00, 0x63, 0xf3, 0x01, 0x00 })); 21 | 22 | string output; 23 | Assert.True(UdonUTF32.TryGetString(new byte[] { 0x61, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00 }, out output)); 24 | Assert.Equal("abc", output); 25 | Assert.True(UdonUTF32.TryGetString(new byte[] { 0x42, 0x30, 0x0, 0x0, 0x44, 0x30, 0x0, 0x0, 0x46, 0x30, 0x0, 0x0 }, out output)); 26 | Assert.Equal("あいう", output); 27 | Assert.True(UdonUTF32.TryGetString(new byte[] { 0x10, 0xff, 0x0, 0x0, 0x11, 0xff, 0x0, 0x0, 0x12, 0xff, 0x0, 0x0 }, out output)); 28 | Assert.Equal("012", output); 29 | Assert.True(UdonUTF32.TryGetString(new byte[] { 0x14, 0xf9, 0x01, 0x00, 0x5b, 0xf3, 0x01, 0x00, 0x63, 0xf3, 0x01, 0x00 }, out output)); 30 | Assert.Equal("🤔🍛🍣", output); 31 | Assert.False(UdonUTF32.TryGetString(new byte[] { 0xff, 0xff, 0xff, 0xff }, out output)); 32 | Assert.Equal(null, output); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF32Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab60429c76204fa46bb912be2e5c329f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF8Test.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3} 13 | m_Name: UdonUTF8Test 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 7aa9f29fc2ebce949871429a504b8996, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: ea733bc3f9cc4a74583847e297a43c38, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -322189366567520271 25 | serializationData: 26 | SerializedFormat: 2 27 | SerializedBytes: 28 | ReferencedUnityObjects: [] 29 | SerializedBytesString: 30 | Prefab: {fileID: 0} 31 | PrefabModificationsReferencedUnityObjects: [] 32 | PrefabModifications: [] 33 | SerializationNodes: 34 | - Name: fieldDefinitions 35 | Entry: 7 36 | Data: 0|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UdonSharp.Compiler.FieldDefinition, 37 | UdonSharp.Editor]], mscorlib 38 | - Name: comparer 39 | Entry: 7 40 | Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.String, 41 | mscorlib]], mscorlib 42 | - Name: 43 | Entry: 8 44 | Data: 45 | - Name: 46 | Entry: 12 47 | Data: 0 48 | - Name: 49 | Entry: 13 50 | Data: 51 | - Name: 52 | Entry: 8 53 | Data: 54 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF8Test.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df15cb1c8c6c3ce45af3f7221fafe9dc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF8Test.cs: -------------------------------------------------------------------------------- 1 | using UdonSharp; 2 | using Koyashiro.UdonTest; 3 | 4 | namespace Koyashiro 5 | { 6 | namespace UdonEncoding.Test 7 | { 8 | public class UdonUTF8Test : UdonSharpBehaviour 9 | { 10 | public void Start() 11 | { 12 | Assert.Equal(new byte[] { 0x61, 0x62, 0x63 }, UdonUTF8.GetBytes("abc")); 13 | Assert.Equal(new byte[] { 0xc2, 0xa5, 0xc2, 0xa6, 0xc2, 0xa7 }, UdonUTF8.GetBytes("¥¦§")); 14 | Assert.Equal(new byte[] { 0xe3, 0x81, 0x82, 0xe3, 0x81, 0x84, 0xe3, 0x81, 0x86 }, UdonUTF8.GetBytes("あいう")); 15 | Assert.Equal(new byte[] { 0xf0, 0x9f, 0xa4, 0x94, 0xf0, 0x9f, 0x8d, 0x9b, 0xf0, 0x9f, 0x8d, 0xa3 }, UdonUTF8.GetBytes("🤔🍛🍣")); 16 | 17 | Assert.Equal("abc", UdonUTF8.GetString(new byte[] { 0x61, 0x62, 0x63 })); 18 | Assert.Equal("¥¦§", UdonUTF8.GetString(new byte[] { 0xc2, 0xa5, 0xc2, 0xa6, 0xc2, 0xa7 })); 19 | Assert.Equal("あいう", UdonUTF8.GetString(new byte[] { 0xe3, 0x81, 0x82, 0xe3, 0x81, 0x84, 0xe3, 0x81, 0x86 })); 20 | Assert.Equal("🤔🍛🍣", UdonUTF8.GetString(new byte[] { 0xf0, 0x9f, 0xa4, 0x94, 0xf0, 0x9f, 0x8d, 0x9b, 0xf0, 0x9f, 0x8d, 0xa3 })); 21 | 22 | string output; 23 | Assert.True(UdonUTF8.TryGetString(new byte[] { 0x61, 0x62, 0x63 }, out output)); 24 | Assert.Equal("abc", output); 25 | Assert.True(UdonUTF8.TryGetString(new byte[] { 0xc2, 0xa5, 0xc2, 0xa6, 0xc2, 0xa7 }, out output)); 26 | Assert.Equal("¥¦§", output); 27 | Assert.True(UdonUTF8.TryGetString(new byte[] { 0xe3, 0x81, 0x82, 0xe3, 0x81, 0x84, 0xe3, 0x81, 0x86 }, out output)); 28 | Assert.Equal("あいう", output); 29 | Assert.True(UdonUTF8.TryGetString(new byte[] { 0xf0, 0x9f, 0xa4, 0x94, 0xf0, 0x9f, 0x8d, 0x9b, 0xf0, 0x9f, 0x8d, 0xa3 }, out output)); 30 | Assert.Equal("🤔🍛🍣", output); 31 | Assert.False(UdonUTF8.TryGetString(new byte[] { 0xc2 }, out output)); 32 | Assert.Equal(null, output); 33 | Assert.False(UdonUTF8.TryGetString(new byte[] { 0xe3 }, out output)); 34 | Assert.Equal(null, output); 35 | Assert.False(UdonUTF8.TryGetString(new byte[] { 0xe3, 0x81 }, out output)); 36 | Assert.Equal(null, output); 37 | Assert.False(UdonUTF8.TryGetString(new byte[] { 0xf0 }, out output)); 38 | Assert.Equal(null, output); 39 | Assert.False(UdonUTF8.TryGetString(new byte[] { 0xf0, 0x9f }, out output)); 40 | Assert.Equal(null, output); 41 | Assert.False(UdonUTF8.TryGetString(new byte[] { 0xf0, 0x9f, 0xa4 }, out output)); 42 | Assert.Equal(null, output); 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/Tests/Runtime/UdonUTF8Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea733bc3f9cc4a74583847e297a43c38 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "net.koyashiro.udonencoding.tests", 3 | "displayName": "UdonEncoding.Tests", 4 | "version": "0.4.4", 5 | "vpmDependencies": { 6 | "com.vrchat.udonsharp": "1.1.8", 7 | "net.koyashiro.udonencoding": "0.4.4", 8 | "net.koyashiro.udontest": "0.5.2" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding.tests/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8b3b171b079880419b449075eddaf30 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/README.md: -------------------------------------------------------------------------------- 1 | # UdonEncoding 2 | 3 | Unicode encoder/decoder for UdonSharp. 4 | 5 | ## Installation 6 | 7 | To use this package, you need to add [my package repository](https://github.com/koyashiro/vpm-repos). 8 | Please read more details [here](https://github.com/koyashiro/vpm-repos#installation). 9 | 10 | Please install this package with [Creator Companion](https://vcc.docs.vrchat.com/) or [VPM CLI](https://vcc.docs.vrchat.com/vpm/cli/). 11 | 12 | ### Creator Companion 13 | 14 | 1. Enable the `koyashiro` package repository. 15 | 16 | ![image](https://user-images.githubusercontent.com/6698252/230629434-048cde39-a0ec-4c53-bfe2-46bde2e6a57a.png) 17 | 18 | 2. Find `UdonEncoding` from the list of packages and install any version you want. 19 | 20 | ### VPM CLI 21 | 22 | 1. Execute the following command to install the package. 23 | 24 | ```sh 25 | vpm add package net.koyashiro.udonencoding 26 | ``` 27 | 28 | ## Examples 29 | 30 | ```cs 31 | using UnityEngine; 32 | using UdonSharp; 33 | using Koyashiro.UdonEncoding; 34 | 35 | public class UdonEncodingSample : UdonSharpBehaviour 36 | { 37 | public void Start() 38 | { 39 | var s = UdonUTF8.GetString(new byte[] { 0x66, 0x6f, 0x78, 0xf0, 0x9f, 0xa6, 0x8a }); 40 | Debug.Log(s); // fox🦊 41 | 42 | var bytes = UdonUTF8.GetBytes("fox🦊"); 43 | Debug.Log(bytes.Length); // 7 44 | Debug.Log($"0x{bytes[0]:x}"); // 0x66 45 | Debug.Log($"0x{bytes[1]:x}"); // 0x6f 46 | Debug.Log($"0x{bytes[2]:x}"); // 0x78 47 | Debug.Log($"0x{bytes[3]:x}"); // 0xf0 48 | Debug.Log($"0x{bytes[4]:x}"); // 0x9f 49 | Debug.Log($"0x{bytes[5]:x}"); // 0xa6 50 | Debug.Log($"0x{bytes[6]:x}"); // 0x8a 51 | } 52 | } 53 | ``` 54 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3eed777d60836f34eb4d98bd43fa6b83 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f017c65c4d73694d8bb04fcabed227e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 768c87f3af4435549a64e1137b99003e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Internal/ExceptionHelper.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Koyashiro.UdonEncoding.Internal 4 | { 5 | public static class ExceptionHelper 6 | { 7 | private const string TAG = "UdonEncoding"; 8 | private const string COLOR_TAG = "red"; 9 | private const string COLOR_EXCEPTION = "lime"; 10 | private const string COLOR_PARAMETER = "cyan"; 11 | private const string COLOR_ACTUAL_VALUE = "magenta"; 12 | 13 | public static void ThrowArgumentException(string message) 14 | { 15 | LogErrorMessage(typeof(System.ArgumentException).FullName, message); 16 | Panic(); 17 | } 18 | 19 | public static void ThrowArgumentNullException(string paramName) 20 | { 21 | LogErrorMessage(typeof(System.ArgumentNullException).FullName, "Value cannot be null.", paramName); 22 | Panic(); 23 | } 24 | 25 | private static void LogErrorMessage(string exception, string message) 26 | { 27 | Debug.LogError($"[{TAG}] {exception}: {message}"); 28 | } 29 | 30 | private static void LogErrorMessage(string exception, string message, string paramName) 31 | { 32 | Debug.LogError($"[{TAG}] {exception}: {message} (Parameter '{paramName}')"); 33 | } 34 | 35 | private static void Panic() 36 | { 37 | // Raise runtime Exception 38 | ((object)null).ToString(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Internal/ExceptionHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3db7957aeca3da47826eeb285e91539 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Koyashiro.UdonEncoding.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Koyashiro.UdonEncoding", 3 | "references": [ 4 | "UdonSharp.Runtime" 5 | ], 6 | "includePlatforms": [], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Koyashiro.UdonEncoding.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a867ab99cdbcaf4ca336402e16488c5 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Koyashiro.UdonEncoding.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 5136146375e9a0a498a72a0091b40cc1, type: 3} 13 | m_Name: Koyashiro.UdonEncoding 14 | m_EditorClassIdentifier: 15 | sourceAssembly: {fileID: 5897886265953266890, guid: 7a867ab99cdbcaf4ca336402e16488c5, 16 | type: 3} 17 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/Koyashiro.UdonEncoding.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3aab9cc5f23164545973a2d3aa3a2797 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/UdonUTF32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Koyashiro.UdonEncoding.Internal; 3 | 4 | namespace Koyashiro.UdonEncoding 5 | { 6 | [Obsolete("UdonUTF32 is obsolete. Use System.Text.Encoding instead.")] 7 | public static class UdonUTF32 8 | { 9 | private const string EXCEPTION_INVALID_UNICODE_CODEPOINTS = "The byte array contains invalid Unicode code points."; 10 | 11 | public static byte[] GetBytes(char[] chars) 12 | { 13 | if (chars == null) 14 | { 15 | ExceptionHelper.ThrowArgumentNullException(nameof(chars)); 16 | } 17 | 18 | var buf = new byte[chars.Length * 4]; 19 | var count = 0; 20 | 21 | for (var i = 0; i < chars.Length; i++) 22 | { 23 | var c1 = chars[i]; 24 | 25 | if (char.IsHighSurrogate(c1)) 26 | { 27 | if (i + 1 >= chars.Length) 28 | { 29 | ExceptionHelper.ThrowArgumentException(EXCEPTION_INVALID_UNICODE_CODEPOINTS); 30 | return default; 31 | } 32 | 33 | var c2 = chars[++i]; 34 | 35 | if (char.IsLowSurrogate(c2)) 36 | { 37 | var n = char.ConvertToUtf32(c1, c2); 38 | buf[count++] = (byte)(n & 0xff); 39 | buf[count++] = (byte)((n >> 8) & 0xff); 40 | buf[count++] = (byte)((n >> 16) & 0xff); 41 | buf[count++] = (byte)((n >> 24) & 0xff); 42 | } 43 | else 44 | { 45 | ExceptionHelper.ThrowArgumentException(EXCEPTION_INVALID_UNICODE_CODEPOINTS); 46 | return default; 47 | } 48 | } 49 | else 50 | { 51 | buf[count++] = (byte)(c1 & 0xff); 52 | buf[count++] = (byte)((c1 >> 8) & 0xff); 53 | buf[count++] = (byte)0x00; 54 | buf[count++] = (byte)0x00; 55 | } 56 | } 57 | 58 | var bytes = new byte[count]; 59 | Array.Copy(buf, bytes, count); 60 | 61 | return bytes; 62 | } 63 | 64 | public static byte[] GetBytes(string s) 65 | { 66 | if (s == null) 67 | { 68 | ExceptionHelper.ThrowArgumentNullException(nameof(s)); 69 | } 70 | 71 | return GetBytes(s.ToCharArray()); 72 | } 73 | 74 | public static char[] GetChars(byte[] bytes) 75 | { 76 | if (bytes == null) 77 | { 78 | ExceptionHelper.ThrowArgumentNullException(nameof(bytes)); 79 | } 80 | 81 | var buf = new char[bytes.Length / 2]; 82 | var count = 0; 83 | 84 | for (var i = 0; i < bytes.Length / 4; i++) 85 | { 86 | var c = (bytes[i * 4 + 3] << 24) | (bytes[i * 4 + 2] << 16) | (bytes[i * 4 + 1] << 8) | bytes[i * 4]; 87 | 88 | if (c < 0 || 0x10ffff < c || (0xd800 <= c && c < 0xe000)) 89 | { 90 | ExceptionHelper.ThrowArgumentException(EXCEPTION_INVALID_UNICODE_CODEPOINTS); 91 | return default; 92 | } 93 | 94 | var s = char.ConvertFromUtf32(c); 95 | 96 | if (c < 0x10000) 97 | { 98 | buf[count++] = s[0]; 99 | } 100 | else 101 | { 102 | buf[count++] = s[0]; 103 | buf[count++] = s[1]; 104 | } 105 | } 106 | 107 | var chars = new char[count]; 108 | Array.Copy(buf, chars, count); 109 | 110 | return chars; 111 | } 112 | 113 | public static string GetString(byte[] bytes) 114 | { 115 | if (bytes == null) 116 | { 117 | ExceptionHelper.ThrowArgumentNullException(nameof(bytes)); 118 | } 119 | 120 | var chars = GetChars(bytes); 121 | var s = new string(chars); 122 | 123 | return s; 124 | } 125 | 126 | public static bool TryGetChars(byte[] bytes, out char[] output) 127 | { 128 | if (bytes == null) 129 | { 130 | output = default; 131 | return false; 132 | } 133 | 134 | var buf = new char[bytes.Length / 2]; 135 | var count = 0; 136 | 137 | for (var i = 0; i < bytes.Length / 4; i++) 138 | { 139 | var c = (bytes[i * 4 + 3] << 24) | (bytes[i * 4 + 2] << 16) | (bytes[i * 4 + 1] << 8) | bytes[i * 4]; 140 | 141 | if (c < 0 || 0x10ffff < c || (0xd800 <= c && c < 0xe000)) 142 | { 143 | output = default; 144 | return false; 145 | } 146 | 147 | var s = char.ConvertFromUtf32(c); 148 | 149 | if (c < 0x10000) 150 | { 151 | buf[count++] = s[0]; 152 | } 153 | else 154 | { 155 | buf[count++] = s[0]; 156 | buf[count++] = s[1]; 157 | } 158 | } 159 | 160 | output = new char[count]; 161 | Array.Copy(buf, output, count); 162 | 163 | return true; 164 | } 165 | 166 | public static bool TryGetString(byte[] bytes, out string output) 167 | { 168 | if (!TryGetChars(bytes, out var chars)) 169 | { 170 | output = default; 171 | return false; 172 | } 173 | 174 | output = new string(chars); 175 | 176 | return true; 177 | } 178 | } 179 | } 180 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/UdonUTF32.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e8fc3eaea28f1e4bb064de036ba0e93 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/UdonUTF8.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Koyashiro.UdonEncoding.Internal; 3 | 4 | namespace Koyashiro.UdonEncoding 5 | { 6 | [Obsolete("UdonUTF8 is obsolete. Use System.Text.Encoding instead.")] 7 | public static class UdonUTF8 8 | { 9 | private const string EXCEPTION_INVALID_UNICODE_CODEPOINTS = "The byte array contains invalid Unicode code points."; 10 | 11 | public static byte[] GetBytes(char[] chars) 12 | { 13 | if (chars == null) 14 | { 15 | ExceptionHelper.ThrowArgumentNullException(nameof(chars)); 16 | return default; 17 | } 18 | 19 | var utf32bytes = UdonUTF32.GetBytes(chars); 20 | 21 | var buf = new byte[chars.Length * 4]; 22 | var count = 0; 23 | 24 | for (var i = 0; i < utf32bytes.Length / 4; i++) 25 | { 26 | var uintChar = (uint)((utf32bytes[4 * i + 3] << 24) | (utf32bytes[4 * i + 2] << 16) | (utf32bytes[4 * i + 1] << 8) | utf32bytes[4 * i]); 27 | 28 | if (uintChar < 0x80) 29 | { 30 | buf[count++] = (byte)uintChar; 31 | } 32 | else if (uintChar < 0x800) 33 | { 34 | buf[count++] = (byte)(0xc0 | uintChar >> 6); 35 | buf[count++] = (byte)(0x80 | uintChar & 0x3f); 36 | } 37 | else if (uintChar < 0x10000) 38 | { 39 | buf[count++] = (byte)(0xe0 | uintChar >> 12); 40 | buf[count++] = (byte)(0x80 | uintChar >> 6 & 0x3f); 41 | buf[count++] = (byte)(0x80 | uintChar & 0x3f); 42 | } 43 | else 44 | { 45 | buf[count++] = (byte)(0xf0 | uintChar >> 18); 46 | buf[count++] = (byte)(0x80 | uintChar >> 12 & 0x3f); 47 | buf[count++] = (byte)(0x80 | uintChar >> 6 & 0x3f); 48 | buf[count++] = (byte)(0x80 | uintChar & 0x3f); 49 | } 50 | } 51 | 52 | var bytes = new byte[count]; 53 | Array.Copy(buf, bytes, count); 54 | 55 | return bytes; 56 | } 57 | 58 | public static byte[] GetBytes(string s) 59 | { 60 | if (s == null) 61 | { 62 | ExceptionHelper.ThrowArgumentNullException(nameof(s)); 63 | return default; 64 | } 65 | 66 | return GetBytes(s.ToCharArray()); 67 | } 68 | 69 | public static char[] GetChars(byte[] bytes) 70 | { 71 | if (bytes == null) 72 | { 73 | ExceptionHelper.ThrowArgumentNullException(nameof(bytes)); 74 | return default; 75 | } 76 | 77 | var buf = new byte[bytes.Length * 4]; 78 | var count = 0; 79 | 80 | for (var i = 0; i < bytes.Length; i++) 81 | { 82 | var b = bytes[i]; 83 | 84 | if (b < 0x80) 85 | { 86 | buf[count++] = (byte)(b & 0xff); 87 | buf[count++] = (byte)0x00; 88 | buf[count++] = (byte)0x00; 89 | buf[count++] = (byte)0x00; 90 | } 91 | else if (b < 0xe0 && i + 1 < bytes.Length) 92 | { 93 | var c = (uint)(((b & 0x1f) << 6) | (bytes[++i] & 0x3f)); 94 | buf[count++] = (byte)(c & 0xff); 95 | buf[count++] = (byte)((c >> 8) & 0xff); 96 | buf[count++] = (byte)0x00; 97 | buf[count++] = (byte)0x00; 98 | } 99 | else if (b < 0xf0 && i + 2 < bytes.Length) 100 | { 101 | var c = (uint)(((b & 0x0f) << 12) | ((bytes[++i] & 0x3f) << 6) | (bytes[++i] & 0x3f)); 102 | buf[count++] = (byte)(c & 0xff); 103 | buf[count++] = (byte)((c >> 8) & 0xff); 104 | buf[count++] = (byte)((c >> 16) & 0xff); 105 | buf[count++] = (byte)0x00; 106 | } 107 | else if (b < 0xf8 & i + 3 < bytes.Length) 108 | { 109 | var c = (uint)(((b & 0x07) << 18) | ((bytes[++i] & 0x3f) << 12) | ((bytes[++i] & 0x3f) << 6) | (bytes[++i] & 0x3f)); 110 | buf[count++] = (byte)(c & 0xff); 111 | buf[count++] = (byte)((c >> 8) & 0xff); 112 | buf[count++] = (byte)((c >> 16) & 0xff); 113 | buf[count++] = (byte)((c >> 24) & 0xff); 114 | } 115 | else 116 | { 117 | ExceptionHelper.ThrowArgumentException(EXCEPTION_INVALID_UNICODE_CODEPOINTS); 118 | return default; 119 | } 120 | } 121 | 122 | var utf32Bytes = new byte[count]; 123 | Array.Copy(buf, utf32Bytes, count); 124 | var chars = UdonUTF32.GetChars(utf32Bytes); 125 | 126 | return chars; 127 | } 128 | 129 | public static string GetString(byte[] bytes) 130 | { 131 | if (bytes == null) 132 | { 133 | ExceptionHelper.ThrowArgumentNullException(nameof(bytes)); 134 | return default; 135 | } 136 | 137 | var chars = GetChars(bytes); 138 | var s = new string(chars); 139 | 140 | return s; 141 | } 142 | 143 | public static bool TryGetChars(byte[] bytes, out char[] output) 144 | { 145 | if (bytes == null) 146 | { 147 | output = default; 148 | return false; 149 | } 150 | 151 | var buf = new byte[bytes.Length * 4]; 152 | var count = 0; 153 | 154 | for (var i = 0; i < bytes.Length; i++) 155 | { 156 | var b = bytes[i]; 157 | 158 | if (b < 0x80) 159 | { 160 | buf[count++] = (byte)(b & 0xff); 161 | buf[count++] = (byte)0x00; 162 | buf[count++] = (byte)0x00; 163 | buf[count++] = (byte)0x00; 164 | } 165 | else if (b < 0xe0 && i + 1 < bytes.Length) 166 | { 167 | var c = (uint)(((b & 0x1f) << 6) | (bytes[++i] & 0x3f)); 168 | buf[count++] = (byte)(c & 0xff); 169 | buf[count++] = (byte)((c >> 8) & 0xff); 170 | buf[count++] = (byte)0x00; 171 | buf[count++] = (byte)0x00; 172 | } 173 | else if (b < 0xf0 && i + 2 < bytes.Length) 174 | { 175 | var c = (uint)(((b & 0x0f) << 12) | ((bytes[++i] & 0x3f) << 6) | (bytes[++i] & 0x3f)); 176 | buf[count++] = (byte)(c & 0xff); 177 | buf[count++] = (byte)((c >> 8) & 0xff); 178 | buf[count++] = (byte)((c >> 16) & 0xff); 179 | buf[count++] = (byte)0x00; 180 | } 181 | else if (b < 0xf8 && i + 3 < bytes.Length) 182 | { 183 | var c = (uint)(((b & 0x07) << 18) | ((bytes[++i] & 0x3f) << 12) | ((bytes[++i] & 0x3f) << 6) | (bytes[++i] & 0x3f)); 184 | buf[count++] = (byte)(c & 0xff); 185 | buf[count++] = (byte)((c >> 8) & 0xff); 186 | buf[count++] = (byte)((c >> 16) & 0xff); 187 | buf[count++] = (byte)((c >> 24) & 0xff); 188 | } 189 | else 190 | { 191 | output = default; 192 | return false; 193 | } 194 | } 195 | 196 | var utf32Bytes = new byte[count]; 197 | Array.Copy(buf, utf32Bytes, count); 198 | 199 | return UdonUTF32.TryGetChars(utf32Bytes, out output); 200 | } 201 | 202 | public static bool TryGetString(byte[] bytes, out string output) 203 | { 204 | if (!TryGetChars(bytes, out var chars)) 205 | { 206 | output = default; 207 | return false; 208 | } 209 | 210 | output = new string(chars); 211 | 212 | return true; 213 | } 214 | } 215 | } 216 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Runtime/UdonUTF8.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21b52b1059b55cc4691e536e9c9a8033 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/Samples~/UdonEncodingSample/UdonEncodingSample.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonEncoding; 4 | 5 | public class UdonEncodingSample : UdonSharpBehaviour 6 | { 7 | public void Start() 8 | { 9 | var s = UdonUTF8.GetString(new byte[] { 0x66, 0x6f, 0x78, 0xf0, 0x9f, 0xa6, 0x8a }); 10 | Debug.Log(s); // fox🦊 11 | 12 | var bytes = UdonUTF8.GetBytes("fox🦊"); 13 | Debug.Log(bytes.Length); // 7 14 | Debug.Log($"0x{bytes[0]:x}"); // 0x66 15 | Debug.Log($"0x{bytes[1]:x}"); // 0x6f 16 | Debug.Log($"0x{bytes[2]:x}"); // 0x78 17 | Debug.Log($"0x{bytes[3]:x}"); // 0xf0 18 | Debug.Log($"0x{bytes[4]:x}"); // 0x9f 19 | Debug.Log($"0x{bytes[5]:x}"); // 0xa6 20 | Debug.Log($"0x{bytes[6]:x}"); // 0x8a 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "net.koyashiro.udonencoding", 3 | "displayName": "UdonEncoding", 4 | "version": "0.4.5", 5 | "description": "Unicode encoder/decoder for UdonSharp", 6 | "homepage": "https://github.com/koyashiro/udon-encoding", 7 | "bugs": { 8 | "url": "https://github.com/koyashiro/udon-encoding/issues" 9 | }, 10 | "license": "MIT", 11 | "author": { 12 | "name": "koyashiro", 13 | "email": "develop@koyashi.ro", 14 | "url": "https://github.com/koyashiro" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "https://github.com/koyashiro/udon-encoding" 19 | }, 20 | "samples": [ 21 | { 22 | "displayName": "UdonEncodingSample", 23 | "description": "Sample of UdonEncoding.", 24 | "path": "Samples~/UdonEncodingSample" 25 | } 26 | ], 27 | "url": "https://github.com/koyashiro/udon-encoding/releases/download/v0.4.5/net.koyashiro.udonencoding-0.4.5.zip", 28 | "vpmDependencies": { 29 | "com.vrchat.udonsharp": "^1.1.8" 30 | }, 31 | "repo": "https://vpm.koyashiro.net/index.json" 32 | } 33 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonencoding/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30c88d3de6701f448a2b15fdeb4063e2 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.burst": { 4 | "version": "1.4.11", 5 | "depth": 1, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.mathematics": "1.2.1" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.cinemachine": { 13 | "version": "2.8.0", 14 | "depth": 1, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.collab-proxy": { 20 | "version": "1.6.0", 21 | "depth": 0, 22 | "source": "registry", 23 | "dependencies": {}, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ext.nunit": { 27 | "version": "1.0.6", 28 | "depth": 1, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.ide.rider": { 34 | "version": "1.2.1", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": { 38 | "com.unity.test-framework": "1.1.1" 39 | }, 40 | "url": "https://packages.unity.com" 41 | }, 42 | "com.unity.ide.visualstudio": { 43 | "version": "2.0.9", 44 | "depth": 0, 45 | "source": "registry", 46 | "dependencies": { 47 | "com.unity.test-framework": "1.1.9" 48 | }, 49 | "url": "https://packages.unity.com" 50 | }, 51 | "com.unity.ide.vscode": { 52 | "version": "1.2.3", 53 | "depth": 0, 54 | "source": "registry", 55 | "dependencies": {}, 56 | "url": "https://packages.unity.com" 57 | }, 58 | "com.unity.inputsystem": { 59 | "version": "1.2.0", 60 | "depth": 1, 61 | "source": "registry", 62 | "dependencies": { 63 | "com.unity.modules.uielements": "1.0.0" 64 | }, 65 | "url": "https://packages.unity.com" 66 | }, 67 | "com.unity.mathematics": { 68 | "version": "1.2.5", 69 | "depth": 1, 70 | "source": "registry", 71 | "dependencies": {}, 72 | "url": "https://packages.unity.com" 73 | }, 74 | "com.unity.nuget.newtonsoft-json": { 75 | "version": "2.0.2", 76 | "depth": 1, 77 | "source": "registry", 78 | "dependencies": {}, 79 | "url": "https://packages.unity.com" 80 | }, 81 | "com.unity.postprocessing": { 82 | "version": "3.1.1", 83 | "depth": 1, 84 | "source": "registry", 85 | "dependencies": { 86 | "com.unity.modules.physics": "1.0.0" 87 | }, 88 | "url": "https://packages.unity.com" 89 | }, 90 | "com.unity.test-framework": { 91 | "version": "1.1.27", 92 | "depth": 0, 93 | "source": "registry", 94 | "dependencies": { 95 | "com.unity.ext.nunit": "1.0.6", 96 | "com.unity.modules.imgui": "1.0.0", 97 | "com.unity.modules.jsonserialize": "1.0.0" 98 | }, 99 | "url": "https://packages.unity.com" 100 | }, 101 | "com.unity.textmeshpro": { 102 | "version": "2.1.6", 103 | "depth": 0, 104 | "source": "registry", 105 | "dependencies": { 106 | "com.unity.ugui": "1.0.0" 107 | }, 108 | "url": "https://packages.unity.com" 109 | }, 110 | "com.unity.timeline": { 111 | "version": "1.2.18", 112 | "depth": 0, 113 | "source": "registry", 114 | "dependencies": { 115 | "com.unity.modules.director": "1.0.0", 116 | "com.unity.modules.animation": "1.0.0", 117 | "com.unity.modules.audio": "1.0.0", 118 | "com.unity.modules.particlesystem": "1.0.0" 119 | }, 120 | "url": "https://packages.unity.com" 121 | }, 122 | "com.unity.ugui": { 123 | "version": "1.0.0", 124 | "depth": 0, 125 | "source": "builtin", 126 | "dependencies": { 127 | "com.unity.modules.ui": "1.0.0", 128 | "com.unity.modules.imgui": "1.0.0" 129 | } 130 | }, 131 | "com.unity.xr.oculus.standalone": { 132 | "version": "2.38.4", 133 | "depth": 0, 134 | "source": "registry", 135 | "dependencies": {}, 136 | "url": "https://packages.unity.com" 137 | }, 138 | "com.unity.xr.openvr.standalone": { 139 | "version": "2.0.5", 140 | "depth": 0, 141 | "source": "registry", 142 | "dependencies": {}, 143 | "url": "https://packages.unity.com" 144 | }, 145 | "com.vrchat.base": { 146 | "version": "file:com.vrchat.base", 147 | "depth": 0, 148 | "source": "embedded", 149 | "dependencies": { 150 | "com.unity.burst": "1.4.11", 151 | "com.unity.mathematics": "1.2.5", 152 | "com.unity.nuget.newtonsoft-json": "2.0.2" 153 | } 154 | }, 155 | "com.vrchat.clientsim": { 156 | "version": "file:com.vrchat.clientsim", 157 | "depth": 0, 158 | "source": "embedded", 159 | "dependencies": { 160 | "com.unity.xr.oculus.standalone": "2.38.4", 161 | "com.unity.inputsystem": "1.2.0" 162 | } 163 | }, 164 | "com.vrchat.core.vpm-resolver": { 165 | "version": "file:com.vrchat.core.vpm-resolver", 166 | "depth": 0, 167 | "source": "embedded", 168 | "dependencies": { 169 | "com.unity.nuget.newtonsoft-json": "2.0.2" 170 | } 171 | }, 172 | "com.vrchat.udonsharp": { 173 | "version": "file:com.vrchat.udonsharp", 174 | "depth": 0, 175 | "source": "embedded", 176 | "dependencies": {} 177 | }, 178 | "com.vrchat.worlds": { 179 | "version": "file:com.vrchat.worlds", 180 | "depth": 0, 181 | "source": "embedded", 182 | "dependencies": { 183 | "com.unity.cinemachine": "2.8.0", 184 | "com.unity.postprocessing": "3.1.1", 185 | "com.unity.textmeshpro": "2.1.6" 186 | } 187 | }, 188 | "net.koyashiro.udonencoding": { 189 | "version": "file:net.koyashiro.udonencoding", 190 | "depth": 0, 191 | "source": "embedded", 192 | "dependencies": {} 193 | }, 194 | "net.koyashiro.udonencoding.tests": { 195 | "version": "file:net.koyashiro.udonencoding.tests", 196 | "depth": 0, 197 | "source": "embedded", 198 | "dependencies": {} 199 | }, 200 | "net.koyashiro.udontest": { 201 | "version": "file:net.koyashiro.udontest", 202 | "depth": 0, 203 | "source": "embedded", 204 | "dependencies": {} 205 | }, 206 | "com.unity.modules.ai": { 207 | "version": "1.0.0", 208 | "depth": 0, 209 | "source": "builtin", 210 | "dependencies": {} 211 | }, 212 | "com.unity.modules.androidjni": { 213 | "version": "1.0.0", 214 | "depth": 0, 215 | "source": "builtin", 216 | "dependencies": {} 217 | }, 218 | "com.unity.modules.animation": { 219 | "version": "1.0.0", 220 | "depth": 0, 221 | "source": "builtin", 222 | "dependencies": {} 223 | }, 224 | "com.unity.modules.assetbundle": { 225 | "version": "1.0.0", 226 | "depth": 0, 227 | "source": "builtin", 228 | "dependencies": {} 229 | }, 230 | "com.unity.modules.audio": { 231 | "version": "1.0.0", 232 | "depth": 0, 233 | "source": "builtin", 234 | "dependencies": {} 235 | }, 236 | "com.unity.modules.cloth": { 237 | "version": "1.0.0", 238 | "depth": 0, 239 | "source": "builtin", 240 | "dependencies": { 241 | "com.unity.modules.physics": "1.0.0" 242 | } 243 | }, 244 | "com.unity.modules.director": { 245 | "version": "1.0.0", 246 | "depth": 0, 247 | "source": "builtin", 248 | "dependencies": { 249 | "com.unity.modules.audio": "1.0.0", 250 | "com.unity.modules.animation": "1.0.0" 251 | } 252 | }, 253 | "com.unity.modules.imageconversion": { 254 | "version": "1.0.0", 255 | "depth": 0, 256 | "source": "builtin", 257 | "dependencies": {} 258 | }, 259 | "com.unity.modules.imgui": { 260 | "version": "1.0.0", 261 | "depth": 0, 262 | "source": "builtin", 263 | "dependencies": {} 264 | }, 265 | "com.unity.modules.jsonserialize": { 266 | "version": "1.0.0", 267 | "depth": 0, 268 | "source": "builtin", 269 | "dependencies": {} 270 | }, 271 | "com.unity.modules.particlesystem": { 272 | "version": "1.0.0", 273 | "depth": 0, 274 | "source": "builtin", 275 | "dependencies": {} 276 | }, 277 | "com.unity.modules.physics": { 278 | "version": "1.0.0", 279 | "depth": 0, 280 | "source": "builtin", 281 | "dependencies": {} 282 | }, 283 | "com.unity.modules.physics2d": { 284 | "version": "1.0.0", 285 | "depth": 0, 286 | "source": "builtin", 287 | "dependencies": {} 288 | }, 289 | "com.unity.modules.screencapture": { 290 | "version": "1.0.0", 291 | "depth": 0, 292 | "source": "builtin", 293 | "dependencies": { 294 | "com.unity.modules.imageconversion": "1.0.0" 295 | } 296 | }, 297 | "com.unity.modules.subsystems": { 298 | "version": "1.0.0", 299 | "depth": 1, 300 | "source": "builtin", 301 | "dependencies": { 302 | "com.unity.modules.jsonserialize": "1.0.0" 303 | } 304 | }, 305 | "com.unity.modules.terrain": { 306 | "version": "1.0.0", 307 | "depth": 0, 308 | "source": "builtin", 309 | "dependencies": {} 310 | }, 311 | "com.unity.modules.terrainphysics": { 312 | "version": "1.0.0", 313 | "depth": 0, 314 | "source": "builtin", 315 | "dependencies": { 316 | "com.unity.modules.physics": "1.0.0", 317 | "com.unity.modules.terrain": "1.0.0" 318 | } 319 | }, 320 | "com.unity.modules.tilemap": { 321 | "version": "1.0.0", 322 | "depth": 0, 323 | "source": "builtin", 324 | "dependencies": { 325 | "com.unity.modules.physics2d": "1.0.0" 326 | } 327 | }, 328 | "com.unity.modules.ui": { 329 | "version": "1.0.0", 330 | "depth": 0, 331 | "source": "builtin", 332 | "dependencies": {} 333 | }, 334 | "com.unity.modules.uielements": { 335 | "version": "1.0.0", 336 | "depth": 0, 337 | "source": "builtin", 338 | "dependencies": { 339 | "com.unity.modules.imgui": "1.0.0", 340 | "com.unity.modules.jsonserialize": "1.0.0" 341 | } 342 | }, 343 | "com.unity.modules.umbra": { 344 | "version": "1.0.0", 345 | "depth": 0, 346 | "source": "builtin", 347 | "dependencies": {} 348 | }, 349 | "com.unity.modules.unityanalytics": { 350 | "version": "1.0.0", 351 | "depth": 0, 352 | "source": "builtin", 353 | "dependencies": { 354 | "com.unity.modules.unitywebrequest": "1.0.0", 355 | "com.unity.modules.jsonserialize": "1.0.0" 356 | } 357 | }, 358 | "com.unity.modules.unitywebrequest": { 359 | "version": "1.0.0", 360 | "depth": 0, 361 | "source": "builtin", 362 | "dependencies": {} 363 | }, 364 | "com.unity.modules.unitywebrequestassetbundle": { 365 | "version": "1.0.0", 366 | "depth": 0, 367 | "source": "builtin", 368 | "dependencies": { 369 | "com.unity.modules.assetbundle": "1.0.0", 370 | "com.unity.modules.unitywebrequest": "1.0.0" 371 | } 372 | }, 373 | "com.unity.modules.unitywebrequestaudio": { 374 | "version": "1.0.0", 375 | "depth": 0, 376 | "source": "builtin", 377 | "dependencies": { 378 | "com.unity.modules.unitywebrequest": "1.0.0", 379 | "com.unity.modules.audio": "1.0.0" 380 | } 381 | }, 382 | "com.unity.modules.unitywebrequesttexture": { 383 | "version": "1.0.0", 384 | "depth": 0, 385 | "source": "builtin", 386 | "dependencies": { 387 | "com.unity.modules.unitywebrequest": "1.0.0", 388 | "com.unity.modules.imageconversion": "1.0.0" 389 | } 390 | }, 391 | "com.unity.modules.unitywebrequestwww": { 392 | "version": "1.0.0", 393 | "depth": 0, 394 | "source": "builtin", 395 | "dependencies": { 396 | "com.unity.modules.unitywebrequest": "1.0.0", 397 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 398 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 399 | "com.unity.modules.audio": "1.0.0", 400 | "com.unity.modules.assetbundle": "1.0.0", 401 | "com.unity.modules.imageconversion": "1.0.0" 402 | } 403 | }, 404 | "com.unity.modules.vehicles": { 405 | "version": "1.0.0", 406 | "depth": 0, 407 | "source": "builtin", 408 | "dependencies": { 409 | "com.unity.modules.physics": "1.0.0" 410 | } 411 | }, 412 | "com.unity.modules.video": { 413 | "version": "1.0.0", 414 | "depth": 0, 415 | "source": "builtin", 416 | "dependencies": { 417 | "com.unity.modules.audio": "1.0.0", 418 | "com.unity.modules.ui": "1.0.0", 419 | "com.unity.modules.unitywebrequest": "1.0.0" 420 | } 421 | }, 422 | "com.unity.modules.vr": { 423 | "version": "1.0.0", 424 | "depth": 0, 425 | "source": "builtin", 426 | "dependencies": { 427 | "com.unity.modules.jsonserialize": "1.0.0", 428 | "com.unity.modules.physics": "1.0.0", 429 | "com.unity.modules.xr": "1.0.0" 430 | } 431 | }, 432 | "com.unity.modules.wind": { 433 | "version": "1.0.0", 434 | "depth": 0, 435 | "source": "builtin", 436 | "dependencies": {} 437 | }, 438 | "com.unity.modules.xr": { 439 | "version": "1.0.0", 440 | "depth": 0, 441 | "source": "builtin", 442 | "dependencies": { 443 | "com.unity.modules.physics": "1.0.0", 444 | "com.unity.modules.jsonserialize": "1.0.0", 445 | "com.unity.modules.subsystems": "1.0.0" 446 | } 447 | } 448 | } 449 | } 450 | -------------------------------------------------------------------------------- /Packages/vpm-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.vrchat.udonsharp": { 4 | "version": "1.1.8" 5 | }, 6 | "com.vrchat.clientsim": { 7 | "version": "1.2.4" 8 | }, 9 | "com.vrchat.core.vpm-resolver": { 10 | "version": "0.1.19" 11 | }, 12 | "net.koyashiro.udontest": { 13 | "version": "0.5.2" 14 | } 15 | }, 16 | "locked": { 17 | "com.vrchat.udonsharp": { 18 | "version": "1.1.8", 19 | "dependencies": { 20 | "com.vrchat.worlds": "^3.1.x" 21 | } 22 | }, 23 | "com.vrchat.worlds": { 24 | "version": "3.2.0", 25 | "dependencies": { 26 | "com.vrchat.base": "3.2.0" 27 | } 28 | }, 29 | "com.vrchat.base": { 30 | "version": "3.2.0", 31 | "dependencies": {} 32 | }, 33 | "com.vrchat.clientsim": { 34 | "version": "1.2.4", 35 | "dependencies": { 36 | "com.vrchat.worlds": "^3.1.x" 37 | } 38 | }, 39 | "com.vrchat.core.vpm-resolver": { 40 | "version": "0.1.19", 41 | "dependencies": {} 42 | }, 43 | "net.koyashiro.udontest": { 44 | "version": "0.5.2", 45 | "dependencies": { 46 | "com.vrchat.base": "^3.2.x", 47 | "com.vrchat.udonsharp": "^1.1.8" 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /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: 48000 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 64 14 | m_RealVoiceCount: 32 15 | m_EnableOutputSuspension: 1 16 | m_SpatializerPlugin: OculusSpatializer 17 | m_AmbisonicDecoderPlugin: OculusSpatializer 18 | m_DisableAudio: 0 19 | m_VirtualizeEffects: 1 20 | m_RequestedDSPBufferSize: 0 21 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 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: dfafffffdfafffffdfafffffffffffffdfafffffc800c0ffffffffffffffffffdfafffffdf09fcffdf09fcffdfafffffc800c0ffdfe9c3ffc820c0ffdfa9ffffdfa9ffffdfa9ffffdf8fffffdf8fffffdf8fffffdf8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_SolverType: 0 36 | m_DefaultMaxAngularSpeed: 7 37 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 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;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /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: 13 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 | m_PreloadedShaders: [] 33 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 34 | type: 0} 35 | m_CustomRenderPipeline: {fileID: 0} 36 | m_TransparencySortMode: 0 37 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 38 | m_DefaultRenderingPath: 1 39 | m_DefaultMobileRenderingPath: 1 40 | m_TierSettings: [] 41 | m_LightmapStripping: 0 42 | m_FogStripping: 0 43 | m_InstancingStripping: 0 44 | m_LightmapKeepPlain: 1 45 | m_LightmapKeepDirCombined: 1 46 | m_LightmapKeepDynamicPlain: 1 47 | m_LightmapKeepDynamicDirCombined: 1 48 | m_LightmapKeepShadowMask: 1 49 | m_LightmapKeepSubtractive: 1 50 | m_FogKeepLinear: 1 51 | m_FogKeepExp: 1 52 | m_FogKeepExp2: 1 53 | m_AlbedoSwatchInfos: [] 54 | m_LightsUseLinearIntensity: 1 55 | m_LightsUseColorTemperature: 1 56 | m_LogWhenShaderIsCompiled: 0 57 | m_AllowEnlightenSupportForUpgradedProject: 0 58 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_ScopedRegistriesSettingsExpanded: 1 16 | oneTimeWarningShown: 0 17 | m_Registries: 18 | - m_Id: main 19 | m_Name: 20 | m_Url: https://packages.unity.com 21 | m_Scopes: [] 22 | m_IsDefault: 1 23 | m_UserSelectedRegistryName: 24 | m_UserAddingNewScopedRegistry: 0 25 | m_RegistryInfoDraft: 26 | m_ErrorMessage: 27 | m_Original: 28 | m_Id: 29 | m_Name: 30 | m_Url: 31 | m_Scopes: [] 32 | m_IsDefault: 0 33 | m_Modified: 0 34 | m_Name: 35 | m_Url: 36 | m_Scopes: 37 | - 38 | m_SelectedScopeIndex: 0 39 | -------------------------------------------------------------------------------- /ProjectSettings/Packages/com.vrchat.base/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "samplesImported": false, 3 | "allowVRCPackageChanges": false, 4 | "samplesHintCreated": true 5 | } -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 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 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/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: 20 7 | productGUID: 9e59d35066069f1469c7165423087ff5 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: udon-encoding 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: 1 50 | m_ActiveColorSpace: 1 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosUseCustomAppBackgroundBehavior: 0 56 | iosAllowHTTPDownload: 1 57 | allowedAutorotateToPortrait: 1 58 | allowedAutorotateToPortraitUpsideDown: 1 59 | allowedAutorotateToLandscapeRight: 1 60 | allowedAutorotateToLandscapeLeft: 1 61 | useOSAutorotation: 1 62 | use32BitDisplayBuffer: 1 63 | preserveFramebufferAlpha: 0 64 | disableDepthAndStencilBuffers: 0 65 | androidStartInFullscreen: 1 66 | androidRenderOutsideSafeArea: 1 67 | androidUseSwappy: 0 68 | androidBlitType: 0 69 | androidResizableWindow: 0 70 | androidDefaultWindowWidth: 1920 71 | androidDefaultWindowHeight: 1080 72 | androidMinimumWindowWidth: 400 73 | androidMinimumWindowHeight: 300 74 | androidFullscreenMode: 1 75 | defaultIsNativeResolution: 1 76 | macRetinaSupport: 1 77 | runInBackground: 1 78 | captureSingleScreen: 0 79 | muteOtherAudioSources: 0 80 | Prepare IOS For Recording: 0 81 | Force IOS Speakers When Recording: 0 82 | deferSystemGesturesMode: 0 83 | hideHomeButton: 0 84 | submitAnalytics: 1 85 | usePlayerLog: 1 86 | bakeCollisionMeshes: 0 87 | forceSingleInstance: 0 88 | useFlipModelSwapchain: 1 89 | resizableWindow: 0 90 | useMacAppStoreValidation: 0 91 | macAppStoreCategory: public.app-category.games 92 | gpuSkinning: 1 93 | xboxPIXTextureCapture: 0 94 | xboxEnableAvatar: 0 95 | xboxEnableKinect: 0 96 | xboxEnableKinectAutoTracking: 0 97 | xboxEnableFitness: 0 98 | visibleInBackground: 1 99 | allowFullscreenSwitch: 1 100 | fullscreenMode: 1 101 | xboxSpeechDB: 0 102 | xboxEnableHeadOrientation: 0 103 | xboxEnableGuest: 0 104 | xboxEnablePIXSampling: 0 105 | metalFramebufferOnly: 0 106 | xboxOneResolution: 0 107 | xboxOneSResolution: 0 108 | xboxOneXResolution: 3 109 | xboxOneMonoLoggingLevel: 0 110 | xboxOneLoggingLevel: 1 111 | xboxOneDisableEsram: 0 112 | xboxOneEnableTypeOptimization: 0 113 | xboxOnePresentImmediateThreshold: 0 114 | switchQueueCommandMemory: 0 115 | switchQueueControlMemory: 16384 116 | switchQueueComputeMemory: 262144 117 | switchNVNShaderPoolsGranularity: 33554432 118 | switchNVNDefaultPoolsGranularity: 16777216 119 | switchNVNOtherPoolsGranularity: 16777216 120 | switchNVNMaxPublicTextureIDCount: 0 121 | switchNVNMaxPublicSamplerIDCount: 0 122 | stadiaPresentMode: 0 123 | stadiaTargetFramerate: 0 124 | vulkanNumSwapchainBuffers: 3 125 | vulkanEnableSetSRGBWrite: 0 126 | vulkanEnableLateAcquireNextImage: 0 127 | m_SupportedAspectRatios: 128 | 4:3: 1 129 | 5:4: 1 130 | 16:10: 1 131 | 16:9: 1 132 | Others: 1 133 | bundleVersion: 0.1 134 | preloadedAssets: [] 135 | metroInputSource: 0 136 | wsaTransparentSwapchain: 0 137 | m_HolographicPauseOnTrackingLoss: 1 138 | xboxOneDisableKinectGpuReservation: 1 139 | xboxOneEnable7thCore: 1 140 | vrSettings: 141 | cardboard: 142 | depthFormat: 0 143 | enableTransitionView: 0 144 | daydream: 145 | depthFormat: 0 146 | useSustainedPerformanceMode: 0 147 | enableVideoLayer: 0 148 | useProtectedVideoMemory: 0 149 | minimumSupportedHeadTracking: 0 150 | maximumSupportedHeadTracking: 1 151 | hololens: 152 | depthFormat: 1 153 | depthBufferSharingEnabled: 1 154 | lumin: 155 | depthFormat: 0 156 | frameTiming: 2 157 | enableGLCache: 0 158 | glCacheMaxBlobSize: 524288 159 | glCacheMaxFileSize: 8388608 160 | oculus: 161 | sharedDepthBuffer: 1 162 | dashSupport: 1 163 | lowOverheadMode: 0 164 | protectedContext: 0 165 | v2Signing: 1 166 | enable360StereoCapture: 0 167 | isWsaHolographicRemotingEnabled: 0 168 | enableFrameTimingStats: 0 169 | useHDRDisplay: 0 170 | D3DHDRBitDepth: 0 171 | m_ColorGamuts: 00000000 172 | targetPixelDensity: 30 173 | resolutionScalingMode: 0 174 | androidSupportedAspectRatio: 1 175 | androidMaxAspectRatio: 2.1 176 | applicationIdentifier: {} 177 | buildNumber: {} 178 | AndroidBundleVersionCode: 1 179 | AndroidMinSdkVersion: 19 180 | AndroidTargetSdkVersion: 0 181 | AndroidPreferredInstallLocation: 1 182 | aotOptions: 183 | stripEngineCode: 1 184 | iPhoneStrippingLevel: 0 185 | iPhoneScriptCallOptimization: 0 186 | ForceInternetPermission: 0 187 | ForceSDCardPermission: 0 188 | CreateWallpaper: 0 189 | APKExpansionFiles: 0 190 | keepLoadedShadersAlive: 0 191 | StripUnusedMeshComponents: 1 192 | VertexChannelCompressionMask: 4054 193 | iPhoneSdkVersion: 988 194 | iOSTargetOSVersionString: 10.0 195 | tvOSSdkVersion: 0 196 | tvOSRequireExtendedGameController: 0 197 | tvOSTargetOSVersionString: 10.0 198 | uIPrerenderedIcon: 0 199 | uIRequiresPersistentWiFi: 0 200 | uIRequiresFullScreen: 1 201 | uIStatusBarHidden: 1 202 | uIExitOnSuspend: 0 203 | uIStatusBarStyle: 0 204 | appleTVSplashScreen: {fileID: 0} 205 | appleTVSplashScreen2x: {fileID: 0} 206 | tvOSSmallIconLayers: [] 207 | tvOSSmallIconLayers2x: [] 208 | tvOSLargeIconLayers: [] 209 | tvOSLargeIconLayers2x: [] 210 | tvOSTopShelfImageLayers: [] 211 | tvOSTopShelfImageLayers2x: [] 212 | tvOSTopShelfImageWideLayers: [] 213 | tvOSTopShelfImageWideLayers2x: [] 214 | iOSLaunchScreenType: 0 215 | iOSLaunchScreenPortrait: {fileID: 0} 216 | iOSLaunchScreenLandscape: {fileID: 0} 217 | iOSLaunchScreenBackgroundColor: 218 | serializedVersion: 2 219 | rgba: 0 220 | iOSLaunchScreenFillPct: 100 221 | iOSLaunchScreenSize: 100 222 | iOSLaunchScreenCustomXibPath: 223 | iOSLaunchScreeniPadType: 0 224 | iOSLaunchScreeniPadImage: {fileID: 0} 225 | iOSLaunchScreeniPadBackgroundColor: 226 | serializedVersion: 2 227 | rgba: 0 228 | iOSLaunchScreeniPadFillPct: 100 229 | iOSLaunchScreeniPadSize: 100 230 | iOSLaunchScreeniPadCustomXibPath: 231 | iOSUseLaunchScreenStoryboard: 0 232 | iOSLaunchScreenCustomStoryboardPath: 233 | iOSDeviceRequirements: [] 234 | iOSURLSchemes: [] 235 | iOSBackgroundModes: 0 236 | iOSMetalForceHardShadows: 0 237 | metalEditorSupport: 1 238 | metalAPIValidation: 1 239 | iOSRenderExtraFrameOnPause: 0 240 | iosCopyPluginsCodeInsteadOfSymlink: 0 241 | appleDeveloperTeamID: 242 | iOSManualSigningProvisioningProfileID: 243 | tvOSManualSigningProvisioningProfileID: 244 | iOSManualSigningProvisioningProfileType: 0 245 | tvOSManualSigningProvisioningProfileType: 0 246 | appleEnableAutomaticSigning: 0 247 | iOSRequireARKit: 0 248 | iOSAutomaticallyDetectAndAddCapabilities: 1 249 | appleEnableProMotion: 0 250 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 251 | templatePackageId: com.vrchat.template.udonsharp@1.0.0 252 | templateDefaultScene: Assets/VRCWelcome.unity 253 | AndroidTargetArchitectures: 1 254 | AndroidTargetDevices: 0 255 | AndroidSplashScreenScale: 0 256 | androidSplashScreen: {fileID: 0} 257 | AndroidKeystoreName: 258 | AndroidKeyaliasName: 259 | AndroidBuildApkPerCpuArchitecture: 0 260 | AndroidTVCompatibility: 0 261 | AndroidIsGame: 1 262 | AndroidEnableTango: 0 263 | androidEnableBanner: 1 264 | androidUseLowAccuracyLocation: 0 265 | androidUseCustomKeystore: 0 266 | m_AndroidBanners: 267 | - width: 320 268 | height: 180 269 | banner: {fileID: 0} 270 | androidGamepadSupportLevel: 0 271 | chromeosInputEmulation: 1 272 | AndroidValidateAppBundleSize: 1 273 | AndroidAppBundleSizeToValidate: 150 274 | m_BuildTargetIcons: [] 275 | m_BuildTargetPlatformIcons: [] 276 | m_BuildTargetBatching: 277 | - m_BuildTarget: Standalone 278 | m_StaticBatching: 1 279 | m_DynamicBatching: 1 280 | - m_BuildTarget: tvOS 281 | m_StaticBatching: 1 282 | m_DynamicBatching: 0 283 | - m_BuildTarget: Android 284 | m_StaticBatching: 1 285 | m_DynamicBatching: 0 286 | - m_BuildTarget: iPhone 287 | m_StaticBatching: 1 288 | m_DynamicBatching: 0 289 | - m_BuildTarget: WebGL 290 | m_StaticBatching: 0 291 | m_DynamicBatching: 0 292 | m_BuildTargetGraphicsJobs: 293 | - m_BuildTarget: MacStandaloneSupport 294 | m_GraphicsJobs: 0 295 | - m_BuildTarget: Switch 296 | m_GraphicsJobs: 1 297 | - m_BuildTarget: MetroSupport 298 | m_GraphicsJobs: 1 299 | - m_BuildTarget: AppleTVSupport 300 | m_GraphicsJobs: 0 301 | - m_BuildTarget: BJMSupport 302 | m_GraphicsJobs: 1 303 | - m_BuildTarget: LinuxStandaloneSupport 304 | m_GraphicsJobs: 1 305 | - m_BuildTarget: PS4Player 306 | m_GraphicsJobs: 1 307 | - m_BuildTarget: iOSSupport 308 | m_GraphicsJobs: 0 309 | - m_BuildTarget: WindowsStandaloneSupport 310 | m_GraphicsJobs: 1 311 | - m_BuildTarget: XboxOnePlayer 312 | m_GraphicsJobs: 1 313 | - m_BuildTarget: LuminSupport 314 | m_GraphicsJobs: 0 315 | - m_BuildTarget: AndroidPlayer 316 | m_GraphicsJobs: 0 317 | - m_BuildTarget: WebGLSupport 318 | m_GraphicsJobs: 0 319 | m_BuildTargetGraphicsJobMode: 320 | - m_BuildTarget: PS4Player 321 | m_GraphicsJobMode: 0 322 | - m_BuildTarget: XboxOnePlayer 323 | m_GraphicsJobMode: 0 324 | m_BuildTargetGraphicsAPIs: 325 | - m_BuildTarget: AndroidPlayer 326 | m_APIs: 0b000000 327 | m_Automatic: 0 328 | - m_BuildTarget: iOSSupport 329 | m_APIs: 10000000 330 | m_Automatic: 0 331 | - m_BuildTarget: AppleTVSupport 332 | m_APIs: 10000000 333 | m_Automatic: 0 334 | - m_BuildTarget: WebGLSupport 335 | m_APIs: 0b000000 336 | m_Automatic: 1 337 | - m_BuildTarget: WindowsStandaloneSupport 338 | m_APIs: 02000000 339 | m_Automatic: 0 340 | - m_BuildTarget: MacStandaloneSupport 341 | m_APIs: 10000000 342 | m_Automatic: 0 343 | m_BuildTargetVRSettings: 344 | - m_BuildTarget: Standalone 345 | m_Enabled: 1 346 | m_Devices: 347 | - None 348 | - OpenVR 349 | - Oculus 350 | openGLRequireES31: 0 351 | openGLRequireES31AEP: 0 352 | openGLRequireES32: 0 353 | m_TemplateCustomTags: {} 354 | mobileMTRendering: 355 | Android: 1 356 | iPhone: 1 357 | tvOS: 1 358 | m_BuildTargetGroupLightmapEncodingQuality: [] 359 | m_BuildTargetGroupLightmapSettings: [] 360 | playModeTestRunnerEnabled: 0 361 | runPlayModeTestAsEditModeTest: 0 362 | actionOnDotNetUnhandledException: 1 363 | enableInternalProfiler: 0 364 | logObjCUncaughtExceptions: 1 365 | enableCrashReportAPI: 0 366 | cameraUsageDescription: 367 | locationUsageDescription: 368 | microphoneUsageDescription: 369 | switchNetLibKey: 370 | switchSocketMemoryPoolSize: 6144 371 | switchSocketAllocatorPoolSize: 128 372 | switchSocketConcurrencyLimit: 14 373 | switchScreenResolutionBehavior: 2 374 | switchUseCPUProfiler: 0 375 | switchApplicationID: 0x01004b9000490000 376 | switchNSODependencies: 377 | switchTitleNames_0: 378 | switchTitleNames_1: 379 | switchTitleNames_2: 380 | switchTitleNames_3: 381 | switchTitleNames_4: 382 | switchTitleNames_5: 383 | switchTitleNames_6: 384 | switchTitleNames_7: 385 | switchTitleNames_8: 386 | switchTitleNames_9: 387 | switchTitleNames_10: 388 | switchTitleNames_11: 389 | switchTitleNames_12: 390 | switchTitleNames_13: 391 | switchTitleNames_14: 392 | switchTitleNames_15: 393 | switchPublisherNames_0: 394 | switchPublisherNames_1: 395 | switchPublisherNames_2: 396 | switchPublisherNames_3: 397 | switchPublisherNames_4: 398 | switchPublisherNames_5: 399 | switchPublisherNames_6: 400 | switchPublisherNames_7: 401 | switchPublisherNames_8: 402 | switchPublisherNames_9: 403 | switchPublisherNames_10: 404 | switchPublisherNames_11: 405 | switchPublisherNames_12: 406 | switchPublisherNames_13: 407 | switchPublisherNames_14: 408 | switchPublisherNames_15: 409 | switchIcons_0: {fileID: 0} 410 | switchIcons_1: {fileID: 0} 411 | switchIcons_2: {fileID: 0} 412 | switchIcons_3: {fileID: 0} 413 | switchIcons_4: {fileID: 0} 414 | switchIcons_5: {fileID: 0} 415 | switchIcons_6: {fileID: 0} 416 | switchIcons_7: {fileID: 0} 417 | switchIcons_8: {fileID: 0} 418 | switchIcons_9: {fileID: 0} 419 | switchIcons_10: {fileID: 0} 420 | switchIcons_11: {fileID: 0} 421 | switchIcons_12: {fileID: 0} 422 | switchIcons_13: {fileID: 0} 423 | switchIcons_14: {fileID: 0} 424 | switchIcons_15: {fileID: 0} 425 | switchSmallIcons_0: {fileID: 0} 426 | switchSmallIcons_1: {fileID: 0} 427 | switchSmallIcons_2: {fileID: 0} 428 | switchSmallIcons_3: {fileID: 0} 429 | switchSmallIcons_4: {fileID: 0} 430 | switchSmallIcons_5: {fileID: 0} 431 | switchSmallIcons_6: {fileID: 0} 432 | switchSmallIcons_7: {fileID: 0} 433 | switchSmallIcons_8: {fileID: 0} 434 | switchSmallIcons_9: {fileID: 0} 435 | switchSmallIcons_10: {fileID: 0} 436 | switchSmallIcons_11: {fileID: 0} 437 | switchSmallIcons_12: {fileID: 0} 438 | switchSmallIcons_13: {fileID: 0} 439 | switchSmallIcons_14: {fileID: 0} 440 | switchSmallIcons_15: {fileID: 0} 441 | switchManualHTML: 442 | switchAccessibleURLs: 443 | switchLegalInformation: 444 | switchMainThreadStackSize: 1048576 445 | switchPresenceGroupId: 446 | switchLogoHandling: 0 447 | switchReleaseVersion: 0 448 | switchDisplayVersion: 1.0.0 449 | switchStartupUserAccount: 0 450 | switchTouchScreenUsage: 0 451 | switchSupportedLanguagesMask: 0 452 | switchLogoType: 0 453 | switchApplicationErrorCodeCategory: 454 | switchUserAccountSaveDataSize: 0 455 | switchUserAccountSaveDataJournalSize: 0 456 | switchApplicationAttribute: 0 457 | switchCardSpecSize: -1 458 | switchCardSpecClock: -1 459 | switchRatingsMask: 0 460 | switchRatingsInt_0: 0 461 | switchRatingsInt_1: 0 462 | switchRatingsInt_2: 0 463 | switchRatingsInt_3: 0 464 | switchRatingsInt_4: 0 465 | switchRatingsInt_5: 0 466 | switchRatingsInt_6: 0 467 | switchRatingsInt_7: 0 468 | switchRatingsInt_8: 0 469 | switchRatingsInt_9: 0 470 | switchRatingsInt_10: 0 471 | switchRatingsInt_11: 0 472 | switchRatingsInt_12: 0 473 | switchLocalCommunicationIds_0: 474 | switchLocalCommunicationIds_1: 475 | switchLocalCommunicationIds_2: 476 | switchLocalCommunicationIds_3: 477 | switchLocalCommunicationIds_4: 478 | switchLocalCommunicationIds_5: 479 | switchLocalCommunicationIds_6: 480 | switchLocalCommunicationIds_7: 481 | switchParentalControl: 0 482 | switchAllowsScreenshot: 1 483 | switchAllowsVideoCapturing: 1 484 | switchAllowsRuntimeAddOnContentInstall: 0 485 | switchDataLossConfirmation: 0 486 | switchUserAccountLockEnabled: 0 487 | switchSystemResourceMemory: 16777216 488 | switchSupportedNpadStyles: 22 489 | switchNativeFsCacheSize: 32 490 | switchIsHoldTypeHorizontal: 0 491 | switchSupportedNpadCount: 8 492 | switchSocketConfigEnabled: 0 493 | switchTcpInitialSendBufferSize: 32 494 | switchTcpInitialReceiveBufferSize: 64 495 | switchTcpAutoSendBufferSizeMax: 256 496 | switchTcpAutoReceiveBufferSizeMax: 256 497 | switchUdpSendBufferSize: 9 498 | switchUdpReceiveBufferSize: 42 499 | switchSocketBufferEfficiency: 4 500 | switchSocketInitializeEnabled: 1 501 | switchNetworkInterfaceManagerInitializeEnabled: 1 502 | switchPlayerConnectionEnabled: 1 503 | switchUseMicroSleepForYield: 1 504 | switchMicroSleepForYieldTime: 25 505 | ps4NPAgeRating: 12 506 | ps4NPTitleSecret: 507 | ps4NPTrophyPackPath: 508 | ps4ParentalLevel: 11 509 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 510 | ps4Category: 0 511 | ps4MasterVersion: 01.00 512 | ps4AppVersion: 01.00 513 | ps4AppType: 0 514 | ps4ParamSfxPath: 515 | ps4VideoOutPixelFormat: 0 516 | ps4VideoOutInitialWidth: 1920 517 | ps4VideoOutBaseModeInitialWidth: 1920 518 | ps4VideoOutReprojectionRate: 60 519 | ps4PronunciationXMLPath: 520 | ps4PronunciationSIGPath: 521 | ps4BackgroundImagePath: 522 | ps4StartupImagePath: 523 | ps4StartupImagesFolder: 524 | ps4IconImagesFolder: 525 | ps4SaveDataImagePath: 526 | ps4SdkOverride: 527 | ps4BGMPath: 528 | ps4ShareFilePath: 529 | ps4ShareOverlayImagePath: 530 | ps4PrivacyGuardImagePath: 531 | ps4ExtraSceSysFile: 532 | ps4NPtitleDatPath: 533 | ps4RemotePlayKeyAssignment: -1 534 | ps4RemotePlayKeyMappingDir: 535 | ps4PlayTogetherPlayerCount: 0 536 | ps4EnterButtonAssignment: 1 537 | ps4ApplicationParam1: 0 538 | ps4ApplicationParam2: 0 539 | ps4ApplicationParam3: 0 540 | ps4ApplicationParam4: 0 541 | ps4DownloadDataSize: 0 542 | ps4GarlicHeapSize: 2048 543 | ps4ProGarlicHeapSize: 2560 544 | playerPrefsMaxSize: 32768 545 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 546 | ps4pnSessions: 1 547 | ps4pnPresence: 1 548 | ps4pnFriends: 1 549 | ps4pnGameCustomData: 1 550 | playerPrefsSupport: 0 551 | enableApplicationExit: 0 552 | resetTempFolder: 1 553 | restrictedAudioUsageRights: 0 554 | ps4UseResolutionFallback: 0 555 | ps4ReprojectionSupport: 0 556 | ps4UseAudio3dBackend: 0 557 | ps4UseLowGarlicFragmentationMode: 1 558 | ps4SocialScreenEnabled: 0 559 | ps4ScriptOptimizationLevel: 0 560 | ps4Audio3dVirtualSpeakerCount: 14 561 | ps4attribCpuUsage: 0 562 | ps4PatchPkgPath: 563 | ps4PatchLatestPkgPath: 564 | ps4PatchChangeinfoPath: 565 | ps4PatchDayOne: 0 566 | ps4attribUserManagement: 0 567 | ps4attribMoveSupport: 0 568 | ps4attrib3DSupport: 0 569 | ps4attribShareSupport: 0 570 | ps4attribExclusiveVR: 0 571 | ps4disableAutoHideSplash: 0 572 | ps4videoRecordingFeaturesUsed: 0 573 | ps4contentSearchFeaturesUsed: 0 574 | ps4CompatibilityPS5: 0 575 | ps4AllowPS5Detection: 0 576 | ps4GPU800MHz: 1 577 | ps4attribEyeToEyeDistanceSettingVR: 0 578 | ps4IncludedModules: [] 579 | ps4attribVROutputEnabled: 0 580 | ps5ParamFilePath: 581 | ps5VideoOutPixelFormat: 0 582 | ps5VideoOutInitialWidth: 1920 583 | ps5VideoOutOutputMode: 1 584 | ps5BackgroundImagePath: 585 | ps5StartupImagePath: 586 | ps5Pic2Path: 587 | ps5StartupImagesFolder: 588 | ps5IconImagesFolder: 589 | ps5SaveDataImagePath: 590 | ps5SdkOverride: 591 | ps5BGMPath: 592 | ps5ShareOverlayImagePath: 593 | ps5NPConfigZipPath: 594 | ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 595 | ps5UseResolutionFallback: 0 596 | ps5UseAudio3dBackend: 0 597 | ps5ScriptOptimizationLevel: 2 598 | ps5Audio3dVirtualSpeakerCount: 14 599 | ps5UpdateReferencePackage: 600 | ps5disableAutoHideSplash: 0 601 | ps5OperatingSystemCanDisableSplashScreen: 0 602 | ps5IncludedModules: [] 603 | ps5SharedBinaryContentLabels: [] 604 | ps5SharedBinarySystemFolders: [] 605 | monoEnv: 606 | splashScreenBackgroundSourceLandscape: {fileID: 0} 607 | splashScreenBackgroundSourcePortrait: {fileID: 0} 608 | blurSplashScreenBackground: 1 609 | spritePackerPolicy: 610 | webGLMemorySize: 16 611 | webGLExceptionSupport: 1 612 | webGLNameFilesAsHashes: 0 613 | webGLDataCaching: 1 614 | webGLDebugSymbols: 0 615 | webGLEmscriptenArgs: 616 | webGLModulesDirectory: 617 | webGLTemplate: APPLICATION:Default 618 | webGLAnalyzeBuildSize: 0 619 | webGLUseEmbeddedResources: 0 620 | webGLCompressionFormat: 1 621 | webGLLinkerTarget: 1 622 | webGLThreadsSupport: 0 623 | webGLWasmStreaming: 0 624 | scriptingDefineSymbols: 625 | 1: UNITY_POST_PROCESSING_STACK_V2;UDON;VRC_SDK_VRCSDK3;UDONSHARP 626 | 7: UNITY_POST_PROCESSING_STACK_V2 627 | 13: UNITY_POST_PROCESSING_STACK_V2 628 | 14: UNITY_POST_PROCESSING_STACK_V2 629 | 19: UNITY_POST_PROCESSING_STACK_V2 630 | 21: UNITY_POST_PROCESSING_STACK_V2 631 | 25: UNITY_POST_PROCESSING_STACK_V2 632 | 27: UNITY_POST_PROCESSING_STACK_V2 633 | 28: UNITY_POST_PROCESSING_STACK_V2 634 | 29: UNITY_POST_PROCESSING_STACK_V2 635 | 30: UNITY_POST_PROCESSING_STACK_V2 636 | 32: UNITY_POST_PROCESSING_STACK_V2 637 | 33: UNITY_POST_PROCESSING_STACK_V2 638 | platformArchitecture: {} 639 | scriptingBackend: {} 640 | il2cppCompilerConfiguration: {} 641 | managedStrippingLevel: {} 642 | incrementalIl2cppBuild: {} 643 | suppressCommonWarnings: 1 644 | allowUnsafeCode: 0 645 | additionalIl2CppArgs: 646 | scriptingRuntimeVersion: 1 647 | gcIncremental: 1 648 | assemblyVersionValidation: 1 649 | gcWBarrierValidation: 0 650 | apiCompatibilityLevelPerPlatform: 651 | Standalone: 3 652 | m_RenderingPath: 1 653 | m_MobileRenderingPath: 1 654 | metroPackageName: Template_3D 655 | metroPackageVersion: 656 | metroCertificatePath: 657 | metroCertificatePassword: 658 | metroCertificateSubject: 659 | metroCertificateIssuer: 660 | metroCertificateNotAfter: 0000000000000000 661 | metroApplicationDescription: Template_3D 662 | wsaImages: {} 663 | metroTileShortName: 664 | metroTileShowName: 0 665 | metroMediumTileShowName: 0 666 | metroLargeTileShowName: 0 667 | metroWideTileShowName: 0 668 | metroSupportStreamingInstall: 0 669 | metroLastRequiredScene: 0 670 | metroDefaultTileSize: 1 671 | metroTileForegroundText: 2 672 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 673 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 674 | a: 1} 675 | metroSplashScreenUseBackgroundColor: 0 676 | platformCapabilities: {} 677 | metroTargetDeviceFamilies: {} 678 | metroFTAName: 679 | metroFTAFileTypes: [] 680 | metroProtocolName: 681 | XboxOneProductId: 682 | XboxOneUpdateKey: 683 | XboxOneSandboxId: 684 | XboxOneContentId: 685 | XboxOneTitleId: 686 | XboxOneSCId: 687 | XboxOneGameOsOverridePath: 688 | XboxOnePackagingOverridePath: 689 | XboxOneAppManifestOverridePath: 690 | XboxOneVersion: 1.0.0.0 691 | XboxOnePackageEncryption: 0 692 | XboxOnePackageUpdateGranularity: 2 693 | XboxOneDescription: 694 | XboxOneLanguage: 695 | - enus 696 | XboxOneCapability: [] 697 | XboxOneGameRating: {} 698 | XboxOneIsContentPackage: 0 699 | XboxOneEnhancedXboxCompatibilityMode: 0 700 | XboxOneEnableGPUVariability: 1 701 | XboxOneSockets: {} 702 | XboxOneSplashScreen: {fileID: 0} 703 | XboxOneAllowedProductIds: [] 704 | XboxOnePersistentLocalStorageSize: 0 705 | XboxOneXTitleMemory: 8 706 | XboxOneOverrideIdentityName: 707 | XboxOneOverrideIdentityPublisher: 708 | vrEditorSettings: 709 | daydream: 710 | daydreamIconForeground: {fileID: 0} 711 | daydreamIconBackground: {fileID: 0} 712 | cloudServicesEnabled: 713 | UNet: 1 714 | luminIcon: 715 | m_Name: 716 | m_ModelFolderPath: 717 | m_PortalFolderPath: 718 | luminCert: 719 | m_CertPath: 720 | m_SignPackage: 1 721 | luminIsChannelApp: 0 722 | luminVersion: 723 | m_VersionCode: 1 724 | m_VersionName: 725 | apiCompatibilityLevel: 6 726 | cloudProjectId: 727 | framebufferDepthMemorylessMode: 0 728 | projectName: 729 | organizationId: 730 | cloudEnabled: 0 731 | enableNativePlatformBackendsForNewInputSystem: 1 732 | disableOldInputManagerSupport: 0 733 | legacyClampBlendShapeWeights: 0 734 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.4.31f1 2 | m_EditorVersionWithRevision: 2019.4.31f1 (bd5abf232a62) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: VRC Low 11 | pixelLightCount: 4 12 | shadows: 2 13 | shadowResolution: 2 14 | shadowProjection: 1 15 | shadowCascades: 2 16 | shadowDistance: 75 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 4 22 | textureQuality: 0 23 | anisotropicTextures: 2 24 | antiAliasing: 0 25 | softParticles: 1 26 | softVegetation: 1 27 | realtimeReflectionProbes: 1 28 | billboardsFaceCameraPosition: 1 29 | vSyncCount: 0 30 | lodBias: 1 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 1024 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 64 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: 45 | - Android 46 | - serializedVersion: 2 47 | name: VRC Medium 48 | pixelLightCount: 4 49 | shadows: 2 50 | shadowResolution: 2 51 | shadowProjection: 1 52 | shadowCascades: 2 53 | shadowDistance: 75 54 | shadowNearPlaneOffset: 2 55 | shadowCascade2Split: 0.33333334 56 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 57 | shadowmaskMode: 0 58 | skinWeights: 4 59 | textureQuality: 0 60 | anisotropicTextures: 2 61 | antiAliasing: 4 62 | softParticles: 1 63 | softVegetation: 1 64 | realtimeReflectionProbes: 1 65 | billboardsFaceCameraPosition: 1 66 | vSyncCount: 0 67 | lodBias: 1.5 68 | maximumLODLevel: 0 69 | streamingMipmapsActive: 0 70 | streamingMipmapsAddAllCameras: 1 71 | streamingMipmapsMemoryBudget: 512 72 | streamingMipmapsRenderersPerFrame: 512 73 | streamingMipmapsMaxLevelReduction: 2 74 | streamingMipmapsMaxFileIORequests: 1024 75 | particleRaycastBudget: 2048 76 | asyncUploadTimeSlice: 2 77 | asyncUploadBufferSize: 64 78 | asyncUploadPersistentBuffer: 1 79 | resolutionScalingFixedDPIFactor: 1 80 | customRenderPipeline: {fileID: 0} 81 | excludedTargetPlatforms: 82 | - Android 83 | - serializedVersion: 2 84 | name: VRC High 85 | pixelLightCount: 8 86 | shadows: 2 87 | shadowResolution: 3 88 | shadowProjection: 1 89 | shadowCascades: 2 90 | shadowDistance: 75 91 | shadowNearPlaneOffset: 2 92 | shadowCascade2Split: 0.33333334 93 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 94 | shadowmaskMode: 0 95 | skinWeights: 4 96 | textureQuality: 0 97 | anisotropicTextures: 2 98 | antiAliasing: 4 99 | softParticles: 1 100 | softVegetation: 1 101 | realtimeReflectionProbes: 1 102 | billboardsFaceCameraPosition: 1 103 | vSyncCount: 0 104 | lodBias: 2 105 | maximumLODLevel: 0 106 | streamingMipmapsActive: 0 107 | streamingMipmapsAddAllCameras: 1 108 | streamingMipmapsMemoryBudget: 512 109 | streamingMipmapsRenderersPerFrame: 512 110 | streamingMipmapsMaxLevelReduction: 2 111 | streamingMipmapsMaxFileIORequests: 1024 112 | particleRaycastBudget: 4096 113 | asyncUploadTimeSlice: 2 114 | asyncUploadBufferSize: 128 115 | asyncUploadPersistentBuffer: 1 116 | resolutionScalingFixedDPIFactor: 1 117 | customRenderPipeline: {fileID: 0} 118 | excludedTargetPlatforms: 119 | - Android 120 | - serializedVersion: 2 121 | name: VRC Ultra 122 | pixelLightCount: 8 123 | shadows: 2 124 | shadowResolution: 3 125 | shadowProjection: 1 126 | shadowCascades: 4 127 | shadowDistance: 150 128 | shadowNearPlaneOffset: 2 129 | shadowCascade2Split: 0.33333334 130 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 131 | shadowmaskMode: 0 132 | skinWeights: 4 133 | textureQuality: 0 134 | anisotropicTextures: 2 135 | antiAliasing: 4 136 | softParticles: 1 137 | softVegetation: 1 138 | realtimeReflectionProbes: 1 139 | billboardsFaceCameraPosition: 1 140 | vSyncCount: 0 141 | lodBias: 2 142 | maximumLODLevel: 0 143 | streamingMipmapsActive: 0 144 | streamingMipmapsAddAllCameras: 1 145 | streamingMipmapsMemoryBudget: 512 146 | streamingMipmapsRenderersPerFrame: 512 147 | streamingMipmapsMaxLevelReduction: 2 148 | streamingMipmapsMaxFileIORequests: 1024 149 | particleRaycastBudget: 4096 150 | asyncUploadTimeSlice: 2 151 | asyncUploadBufferSize: 128 152 | asyncUploadPersistentBuffer: 1 153 | resolutionScalingFixedDPIFactor: 1 154 | customRenderPipeline: {fileID: 0} 155 | excludedTargetPlatforms: 156 | - Android 157 | - serializedVersion: 2 158 | name: VRC Mobile 159 | pixelLightCount: 4 160 | shadows: 0 161 | shadowResolution: 1 162 | shadowProjection: 1 163 | shadowCascades: 1 164 | shadowDistance: 50 165 | shadowNearPlaneOffset: 2 166 | shadowCascade2Split: 0.33333334 167 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 168 | shadowmaskMode: 0 169 | skinWeights: 4 170 | textureQuality: 0 171 | anisotropicTextures: 2 172 | antiAliasing: 2 173 | softParticles: 0 174 | softVegetation: 0 175 | realtimeReflectionProbes: 0 176 | billboardsFaceCameraPosition: 1 177 | vSyncCount: 0 178 | lodBias: 2 179 | maximumLODLevel: 0 180 | streamingMipmapsActive: 0 181 | streamingMipmapsAddAllCameras: 1 182 | streamingMipmapsMemoryBudget: 512 183 | streamingMipmapsRenderersPerFrame: 512 184 | streamingMipmapsMaxLevelReduction: 2 185 | streamingMipmapsMaxFileIORequests: 1024 186 | particleRaycastBudget: 1024 187 | asyncUploadTimeSlice: 1 188 | asyncUploadBufferSize: 32 189 | asyncUploadPersistentBuffer: 1 190 | resolutionScalingFixedDPIFactor: 1 191 | customRenderPipeline: {fileID: 0} 192 | excludedTargetPlatforms: 193 | - Standalone 194 | m_PerPlatformDefaultQuality: {} 195 | -------------------------------------------------------------------------------- /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 | - Interactive 17 | - Player 18 | - PlayerLocal 19 | - Environment 20 | - UiMenu 21 | - Pickup 22 | - PickupNoEnvironment 23 | - StereoLeft 24 | - StereoRight 25 | - Walkthrough 26 | - MirrorReflection 27 | - reserved2 28 | - reserved3 29 | - reserved4 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_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 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UdonEncoding 2 | 3 | > [!WARNING] 4 | > UdonEncoding has been archived. 5 | > Please use `System.Text.Encoding` exposed in version [3.5.2](https://creators.vrchat.com/releases/release-3-5-2/) instead. 6 | 7 | Unicode encoder/decoder for UdonSharp. 8 | 9 | ## Installation 10 | 11 | To use this package, you need to add [my package repository](https://github.com/koyashiro/vpm-repos). 12 | Please read more details [here](https://github.com/koyashiro/vpm-repos#installation). 13 | 14 | Please install this package with [Creator Companion](https://vcc.docs.vrchat.com/) or [VPM CLI](https://vcc.docs.vrchat.com/vpm/cli/). 15 | 16 | ### Creator Companion 17 | 18 | 1. Enable the `koyashiro` package repository. 19 | 20 | ![image](https://user-images.githubusercontent.com/6698252/230629434-048cde39-a0ec-4c53-bfe2-46bde2e6a57a.png) 21 | 22 | 2. Find `UdonEncoding` from the list of packages and install any version you want. 23 | 24 | ### VPM CLI 25 | 26 | 1. Execute the following command to install the package. 27 | 28 | ```sh 29 | vpm add package net.koyashiro.udonencoding 30 | ``` 31 | 32 | ## Examples 33 | 34 | ```cs 35 | using UnityEngine; 36 | using UdonSharp; 37 | using Koyashiro.UdonEncoding; 38 | 39 | public class UdonEncodingSample : UdonSharpBehaviour 40 | { 41 | public void Start() 42 | { 43 | var s = UdonUTF8.GetString(new byte[] { 0x66, 0x6f, 0x78, 0xf0, 0x9f, 0xa6, 0x8a }); 44 | Debug.Log(s); // fox🦊 45 | 46 | var bytes = UdonUTF8.GetBytes("fox🦊"); 47 | Debug.Log(bytes.Length); // 7 48 | Debug.Log($"0x{bytes[0]:x}"); // 0x66 49 | Debug.Log($"0x{bytes[1]:x}"); // 0x6f 50 | Debug.Log($"0x{bytes[2]:x}"); // 0x78 51 | Debug.Log($"0x{bytes[3]:x}"); // 0xf0 52 | Debug.Log($"0x{bytes[4]:x}"); // 0x9f 53 | Debug.Log($"0x{bytes[5]:x}"); // 0xa6 54 | Debug.Log($"0x{bytes[6]:x}"); // 0x8a 55 | } 56 | } 57 | ``` 58 | --------------------------------------------------------------------------------