├── .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.udonlist.tests │ ├── Tests.meta │ ├── Tests │ │ ├── Runtime.meta │ │ └── Runtime │ │ │ ├── AddRangeTest.asset │ │ │ ├── AddRangeTest.asset.meta │ │ │ ├── AddRangeTest.cs │ │ │ ├── AddRangeTest.cs.meta │ │ │ ├── AddTest.asset │ │ │ ├── AddTest.asset.meta │ │ │ ├── AddTest.cs │ │ │ ├── AddTest.cs.meta │ │ │ ├── InsertTest.asset │ │ │ ├── InsertTest.asset.meta │ │ │ ├── InsertTest.cs │ │ │ ├── InsertTest.cs.meta │ │ │ ├── Koyashiro.UdonList.Tests.asmdef │ │ │ ├── Koyashiro.UdonList.Tests.asmdef.meta │ │ │ ├── Koyashiro.UdonList.Tests.asset │ │ │ ├── Koyashiro.UdonList.Tests.asset.meta │ │ │ ├── NewTest.asset │ │ │ ├── NewTest.asset.meta │ │ │ ├── NewTest.cs │ │ │ ├── NewTest.cs.meta │ │ │ ├── RemoveTest.asset │ │ │ ├── RemoveTest.asset.meta │ │ │ ├── RemoveTest.cs │ │ │ ├── RemoveTest.cs.meta │ │ │ ├── Test.unity │ │ │ ├── Test.unity.meta │ │ │ ├── UdonBoolListTest.asset │ │ │ ├── UdonBoolListTest.asset.meta │ │ │ ├── UdonBoolListTest.cs │ │ │ ├── UdonBoolListTest.cs.meta │ │ │ ├── UdonByteListTest.asset │ │ │ ├── UdonByteListTest.asset.meta │ │ │ ├── UdonByteListTest.cs │ │ │ ├── UdonByteListTest.cs.meta │ │ │ ├── UdonCharListTest.asset │ │ │ ├── UdonCharListTest.asset.meta │ │ │ ├── UdonCharListTest.cs │ │ │ ├── UdonCharListTest.cs.meta │ │ │ ├── UdonDecimalListTest.asset │ │ │ ├── UdonDecimalListTest.asset.meta │ │ │ ├── UdonDecimalListTest.cs │ │ │ ├── UdonDecimalListTest.cs.meta │ │ │ ├── UdonDoubleListTest.asset │ │ │ ├── UdonDoubleListTest.asset.meta │ │ │ ├── UdonDoubleListTest.cs │ │ │ ├── UdonDoubleListTest.cs.meta │ │ │ ├── UdonFloatListTest.asset │ │ │ ├── UdonFloatListTest.asset.meta │ │ │ ├── UdonFloatListTest.cs │ │ │ ├── UdonFloatListTest.cs.meta │ │ │ ├── UdonGenericListTest.asset │ │ │ ├── UdonGenericListTest.asset.meta │ │ │ ├── UdonGenericListTest.cs │ │ │ ├── UdonGenericListTest.cs.meta │ │ │ ├── UdonIntListTest.asset │ │ │ ├── UdonIntListTest.asset.meta │ │ │ ├── UdonIntListTest.cs │ │ │ ├── UdonIntListTest.cs.meta │ │ │ ├── UdonListTest.asset │ │ │ ├── UdonListTest.asset.meta │ │ │ ├── UdonListTest.cs │ │ │ ├── UdonListTest.cs.meta │ │ │ ├── UdonLongListTest.asset │ │ │ ├── UdonLongListTest.asset.meta │ │ │ ├── UdonLongListTest.cs │ │ │ ├── UdonLongListTest.cs.meta │ │ │ ├── UdonObjectListTest.asset │ │ │ ├── UdonObjectListTest.asset.meta │ │ │ ├── UdonObjectListTest.cs │ │ │ ├── UdonObjectListTest.cs.meta │ │ │ ├── UdonSbyteListTest.asset │ │ │ ├── UdonSbyteListTest.asset.meta │ │ │ ├── UdonSbyteListTest.cs │ │ │ ├── UdonSbyteListTest.cs.meta │ │ │ ├── UdonShortListTest.asset │ │ │ ├── UdonShortListTest.asset.meta │ │ │ ├── UdonShortListTest.cs │ │ │ ├── UdonShortListTest.cs.meta │ │ │ ├── UdonStringListTest.asset │ │ │ ├── UdonStringListTest.asset.meta │ │ │ ├── UdonStringListTest.cs │ │ │ ├── UdonStringListTest.cs.meta │ │ │ ├── UdonUintListTest.asset │ │ │ ├── UdonUintListTest.asset.meta │ │ │ ├── UdonUintListTest.cs │ │ │ ├── UdonUintListTest.cs.meta │ │ │ ├── UdonUlongListTest.asset │ │ │ ├── UdonUlongListTest.asset.meta │ │ │ ├── UdonUlongListTest.cs │ │ │ ├── UdonUlongListTest.cs.meta │ │ │ ├── UdonUshortListTest.asset │ │ │ ├── UdonUshortListTest.asset.meta │ │ │ ├── UdonUshortListTest.cs │ │ │ └── UdonUshortListTest.cs.meta │ ├── package.json │ └── package.json.meta ├── net.koyashiro.udonlist │ ├── LICENSE │ ├── LICENSE.meta │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ │ ├── Core.meta │ │ ├── Core │ │ │ ├── UdonList.cs │ │ │ └── UdonList.cs.meta │ │ ├── Internal.meta │ │ ├── Internal │ │ │ ├── ExceptionHelper.cs │ │ │ └── ExceptionHelper.cs.meta │ │ ├── Koyashiro.UdonList.asmdef │ │ ├── Koyashiro.UdonList.asmdef.meta │ │ ├── Koyashiro.UdonList.asset │ │ ├── Koyashiro.UdonList.asset.meta │ │ ├── UdonList.cs │ │ ├── UdonList.cs.meta │ │ ├── UdonListExt.cs │ │ └── UdonListExt.cs.meta │ ├── Samples~ │ │ └── UdonListSample │ │ │ └── UdonListSample.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 └── ureishi.json /.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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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.udonlist/ 4 | !net.koyashiro.udonlist.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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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.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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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-list/f7243cdcdd2d7e9a3dbc7be9b4e7d7ac405c39d8/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.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.18", 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.udonlist.tests/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f0c352d1aa892347a4c4ac22d337d4f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60610fc891f70174b9f5b09ea70ac3bf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/AddRangeTest.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: AddRangeTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: da0463af273b3e9458ac64e8cdc92e7d, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: f6a89209e5dedc0429411895eedda3cb, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 3972453793727397848 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.udonlist.tests/Tests/Runtime/AddRangeTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3111806426c77a04e9422b5740fe52fc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/AddRangeTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | [AddComponentMenu("")] 8 | public class AddRangeTest : UdonSharpBehaviour 9 | { 10 | private void Start() 11 | { 12 | var list = UdonList.New(new object[] { 0 }); 13 | list.AddRange(new object[] { 0, null, 1, "2", 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }); 14 | Assert.Equal(new object[] { new object[] { 0, 0, null, 1, "2", 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, 15, typeof(object) }, list, this); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/AddRangeTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6a89209e5dedc0429411895eedda3cb 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.udonlist.tests/Tests/Runtime/AddTest.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: AddTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 2672c826134462648a7867f0645b7ddf, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 3f3e664298e232f438e8e29b9b6d1c53, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 8612279651814664548 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.udonlist.tests/Tests/Runtime/AddTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15e202813dca87a479863282d520976c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/AddTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | [AddComponentMenu("")] 8 | public class AddTest : UdonSharpBehaviour 9 | { 10 | private void Start() 11 | { 12 | var list = UdonList.New(); 13 | 14 | list.Add(0); 15 | Assert.Equal(new object[] { new object[] { 0, null, null, null }, 1, typeof(object) }, list, this); 16 | 17 | list.Add(1); 18 | Assert.Equal(new object[] { new object[] { 0, 1, null, null }, 2, typeof(object) }, list, this); 19 | 20 | list.Add(2); 21 | Assert.Equal(new object[] { new object[] { 0, 1, 2, null }, 3, typeof(object) }, list, this); 22 | 23 | list.Add(3); 24 | Assert.Equal(new object[] { new object[] { 0, 1, 2, 3 }, 4, typeof(object) }, list, this); 25 | 26 | list.Add(4); 27 | Assert.Equal(new object[] { new object[] { 0, 1, 2, 3, 4, null, null, null }, 5, typeof(object) }, list, this); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/AddTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f3e664298e232f438e8e29b9b6d1c53 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.udonlist.tests/Tests/Runtime/InsertTest.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: InsertTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 1cecac72d789ac5479b5375ae34d67d9, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: c34213e27de2dde44bfeb32fb3bc8a42, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 4407131949743663590 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.udonlist.tests/Tests/Runtime/InsertTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9477760563598fd4d8fcdc4cda9938f8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/InsertTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | [AddComponentMenu("")] 8 | public class InsertTest : UdonSharpBehaviour 9 | { 10 | private void Start() 11 | { 12 | var list = UdonList.New(); 13 | 14 | list.Insert(0, 0); 15 | Assert.Equal(new object[] { new object[] { 0, null, null, null }, 1, typeof(object) }, list, this); 16 | 17 | list.Insert(1, 1); 18 | Assert.Equal(new object[] { new object[] { 0, 1, null, null }, 2, typeof(object) }, list, this); 19 | 20 | list.Insert(2, 2); 21 | Assert.Equal(new object[] { new object[] { 0, 1, 2, null }, 3, typeof(object) }, list, this); 22 | 23 | list.Insert(3, 3); 24 | Assert.Equal(new object[] { new object[] { 0, 1, 2, 3 }, 4, typeof(object) }, list, this); 25 | 26 | list.Insert(0, -1); 27 | Assert.Equal(new object[] { new object[] { -1, 0, 1, 2, 3, null, null, null }, 5, typeof(object) }, list, this); 28 | 29 | list.Insert(1, -0.5); 30 | Assert.Equal(new object[] { new object[] { -1, -0.5, 0, 1, 2, 3, null, null }, 6, typeof(object) }, list, this); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/InsertTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c34213e27de2dde44bfeb32fb3bc8a42 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.udonlist.tests/Tests/Runtime/Koyashiro.UdonList.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Koyashiro.UdonList.Tests", 3 | "references": [ 4 | "UdonSharp.Runtime", 5 | "Koyashiro.UdonTest", 6 | "Koyashiro.UdonList" 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.udonlist.tests/Tests/Runtime/Koyashiro.UdonList.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba102bdeb1b2be346b43fcd06a4d4573 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/Koyashiro.UdonList.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.UdonList.Tests 14 | m_EditorClassIdentifier: 15 | sourceAssembly: {fileID: 5897886265953266890, guid: ba102bdeb1b2be346b43fcd06a4d4573, 16 | type: 3} 17 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/Koyashiro.UdonList.Tests.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c514557dffa66f48911244a40286526 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/NewTest.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: NewTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 8b74185d65ab7d34e855b7fabd73424a, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: d569b0fb01b89f44f863f21a42456a49, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 6735378571123275141 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.udonlist.tests/Tests/Runtime/NewTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 983e4c43b4277514e87c73f3cbb3264b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/NewTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | [AddComponentMenu("")] 8 | public class NewTest : UdonSharpBehaviour 9 | { 10 | private void Start() 11 | { 12 | Assert.Equal(new object[] { new object[0], 0, typeof(object) }, UdonList.New(), this); 13 | Assert.Equal(new object[] { new object[1], 0, typeof(object) }, UdonList.New(1), this); 14 | Assert.Equal(new object[] { new object[2], 0, typeof(object) }, UdonList.New(2), this); 15 | Assert.Equal(new object[] { new object[3], 0, typeof(object) }, UdonList.New(3), this); 16 | Assert.Equal(new object[] { new object[4], 0, typeof(object) }, UdonList.New(4), this); 17 | Assert.Equal(new object[] { new object[] { 1, 2, 3 }, 3, typeof(object) }, UdonList.New(new object[] { 1, 2, 3 }), this); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/NewTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d569b0fb01b89f44f863f21a42456a49 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.udonlist.tests/Tests/Runtime/RemoveTest.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: RemoveTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: e74a959efe0309349aa33484f8021ffb, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 3e748e24bd43bce47b5eff37c877e765, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -2114386328279768215 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.udonlist.tests/Tests/Runtime/RemoveTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 411b29f8b7ca72b4b9567586412b83be 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/RemoveTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | [AddComponentMenu("")] 8 | public class RemoveTest : UdonSharpBehaviour 9 | { 10 | private void Start() 11 | { 12 | var list = UdonList.New(new object[] { 1, 2u, 3f, 4d, 'a', "aaa", 1 }); 13 | 14 | Assert.False(list.Remove(-1), this); 15 | Assert.Equal(new object[] { new object[] { 1, 2u, 3f, 4d, 'a', "aaa", 1 }, 7, typeof(object) }, list, this); 16 | 17 | Assert.True(list.Remove(1), this); 18 | Assert.Equal(new object[] { new object[] { 2u, 3f, 4d, 'a', "aaa", 1, 1 }, 6, typeof(object) }, list, this); 19 | 20 | Assert.True(list.Remove("aaa"), this); 21 | Assert.Equal(new object[] { new object[] { 2u, 3f, 4d, 'a', 1, 1, 1 }, 5, typeof(object) }, list, this); 22 | 23 | Assert.True(list.Remove(3f), this); 24 | Assert.Equal(new object[] { new object[] { 2u, 4d, 'a', 1, 1, 1, 1 }, 4, typeof(object) }, list, this); 25 | 26 | Assert.True(list.Remove(4d), this); 27 | Assert.Equal(new object[] { new object[] { 2u, 'a', 1, 1, 1, 1, 1 }, 3, typeof(object) }, list, this); 28 | 29 | Assert.True(list.Remove('a'), this); 30 | Assert.Equal(new object[] { new object[] { 2u, 1, 1, 1, 1, 1, 1 }, 2, typeof(object) }, list, this); 31 | 32 | Assert.True(list.Remove(1), this); 33 | Assert.Equal(new object[] { new object[] { 2u, 1, 1, 1, 1, 1, 1 }, 1, typeof(object) }, list, this); 34 | 35 | Assert.True(list.Remove(2u), this); 36 | Assert.Equal(new object[] { new object[] { 2u, 1, 1, 1, 1, 1, 1 }, 0, typeof(object) }, list, this); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/RemoveTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e748e24bd43bce47b5eff37c877e765 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.udonlist.tests/Tests/Runtime/Test.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b49596a51ceb9ff4b92fedae86b1aa8f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonBoolListTest.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: UdonBoolListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: cc647ed34dc23474c82c36f725e85118, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: d73c6f5bb08e8cb44813cb18b97940c7, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -95616608604036886 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.udonlist.tests/Tests/Runtime/UdonBoolListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff637a43c6da62849a279754ad899970 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonBoolListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonBoolListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(true); 16 | list.Add(true); 17 | list.Add(false); 18 | Assert.Equal(true, list.GetValue(0), this); 19 | Assert.Equal(true, list.GetValue(1), this); 20 | Assert.Equal(false, list.GetValue(2), this); 21 | Assert.Equal(new bool[] { true, true, false, }, list.ToArray(), this); 22 | Assert.True(list.Remove(false), this); 23 | Assert.False(list.Remove(false), this); 24 | Assert.Equal(true, list.GetValue(0), this); 25 | Assert.Equal(true, list.GetValue(1), this); 26 | Assert.Equal(new bool[] { true, true }, list.ToArray(), this); 27 | list.SetValue(1, false); 28 | Assert.Equal(new bool[] { true, false }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new bool[] { false, true, true, false, true }); 31 | list.Reverse(); 32 | Assert.Equal(new bool[] { true, false, true, true, false }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new bool[] { true, true, true, false, false }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new bool[] { false, false, true, true, true }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonBoolListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d73c6f5bb08e8cb44813cb18b97940c7 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.udonlist.tests/Tests/Runtime/UdonByteListTest.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: UdonByteListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 45b4ad77631ef4a4cb9afcba0ed9d22e, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: f49ef85434d2da544b48bc6686101cba, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -7453898697552144277 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.udonlist.tests/Tests/Runtime/UdonByteListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc0c48818380da24e8b8f41627214bc0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonByteListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonByteListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add((byte)100); 16 | list.Add((byte)101); 17 | list.Add((byte)102); 18 | Assert.Equal((byte)100, list.GetValue(0), this); 19 | Assert.Equal((byte)101, list.GetValue(1), this); 20 | Assert.Equal((byte)102, list.GetValue(2), this); 21 | Assert.Equal(new byte[] { 100, 101, 102 }, list.ToArray(), this); 22 | Assert.True(list.Remove((byte)101), this); 23 | Assert.False(list.Remove((byte)103), this); 24 | Assert.Equal((byte)100, list.GetValue(0), this); 25 | Assert.Equal((byte)102, list.GetValue(1), this); 26 | Assert.Equal(new byte[] { 100, 102 }, list.ToArray(), this); 27 | list.SetValue(1, (byte)101); 28 | Assert.Equal(new byte[] { 100, 101 }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new byte[] { 0, 1, 2, 3, 4 }); 31 | list.Reverse(); 32 | Assert.Equal(new byte[] { 4, 3, 2, 1, 0 }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new byte[] { 4, 1, 2, 3, 0 }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new byte[] { 0, 1, 2, 3, 4 }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonByteListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f49ef85434d2da544b48bc6686101cba 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.udonlist.tests/Tests/Runtime/UdonCharListTest.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: UdonCharListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: ad14f704c8b9c4a46b632e70484253b5, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: a76c2d39551451a478dec1fb9dde493f, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 7285856462906047680 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.udonlist.tests/Tests/Runtime/UdonCharListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d73a1512e2f870f4f91ca8a8c0162ca8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonCharListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonCharListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add('a'); 16 | list.Add('b'); 17 | list.Add('c'); 18 | Assert.Equal('a', list.GetValue(0), this); 19 | Assert.Equal('b', list.GetValue(1), this); 20 | Assert.Equal('c', list.GetValue(2), this); 21 | Assert.Equal(new char[] { 'a', 'b', 'c' }, list.ToArray(), this); 22 | Assert.True(list.Remove('b'), this); 23 | Assert.False(list.Remove('d'), this); 24 | Assert.Equal('a', list.GetValue(0), this); 25 | Assert.Equal('c', list.GetValue(1), this); 26 | Assert.Equal(new char[] { 'a', 'c' }, list.ToArray(), this); 27 | list.SetValue(1, 'b'); 28 | Assert.Equal(new char[] { 'a', 'b' }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new char[] { '0', '1', '2', '3', '4' }); 31 | list.Reverse(); 32 | Assert.Equal(new char[] { '4', '3', '2', '1', '0' }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new char[] { '4', '1', '2', '3', '0' }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new char[] { '0', '1', '2', '3', '4' }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonCharListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a76c2d39551451a478dec1fb9dde493f 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.udonlist.tests/Tests/Runtime/UdonDecimalListTest.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: UdonDecimalListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 72295ec324bb2044d9fe9e8a0349b0cb, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 0e65775a04e4a8749baa1da325e8fb85, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -317317263516476583 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.udonlist.tests/Tests/Runtime/UdonDecimalListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31873fd148043024692db99290116f39 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonDecimalListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonDecimalListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100m); 16 | list.Add(101m); 17 | list.Add(102m); 18 | Assert.Equal(100m, list.GetValue(0), this); 19 | Assert.Equal(101m, list.GetValue(1), this); 20 | Assert.Equal(102m, list.GetValue(2), this); 21 | Assert.Equal(new decimal[] { 100m, 101m, 102m }, list.ToArray(), this); 22 | Assert.True(list.Remove(101m), this); 23 | Assert.False(list.Remove(103m), this); 24 | Assert.Equal(100m, list.GetValue(0), this); 25 | Assert.Equal(102m, list.GetValue(1), this); 26 | Assert.Equal(new decimal[] { 100m, 102m }, list.ToArray(), this); 27 | list.SetValue(1, 101m); 28 | Assert.Equal(new decimal[] { 100m, 101m }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new decimal[] { 0m, 1m, 2m, 3m, 4m }); 31 | list.Reverse(); 32 | Assert.Equal(new decimal[] { 4m, 3m, 2m, 1m, 0m }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new decimal[] { 4m, 1m, 2m, 3m, 0m }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new decimal[] { 0m, 1m, 2m, 3m, 4m }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonDecimalListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e65775a04e4a8749baa1da325e8fb85 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.udonlist.tests/Tests/Runtime/UdonDoubleListTest.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: UdonDoubleListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: a9b55ebaf64bece4fa75ba3c8a0a7566, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 20854634d2169e84487ed298d36e6bee, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 2098938377609803174 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.udonlist.tests/Tests/Runtime/UdonDoubleListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60480bf64accba5438f2d5b3aed91078 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonDoubleListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonDoubleListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100d); 16 | list.Add(101d); 17 | list.Add(102d); 18 | Assert.Equal(100d, list.GetValue(0), this); 19 | Assert.Equal(101d, list.GetValue(1), this); 20 | Assert.Equal(102d, list.GetValue(2), this); 21 | Assert.Equal(new double[] { 100d, 101d, 102d }, list.ToArray(), this); 22 | Assert.True(list.Remove(101d), this); 23 | Assert.False(list.Remove(103d), this); 24 | Assert.Equal(100d, list.GetValue(0), this); 25 | Assert.Equal(102d, list.GetValue(1), this); 26 | Assert.Equal(new double[] { 100d, 102d }, list.ToArray(), this); 27 | list.SetValue(1, 101d); 28 | Assert.Equal(new double[] { 100d, 101d }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new double[] { 0d, 1d, 2d, 3d, 4d }); 31 | list.Reverse(); 32 | Assert.Equal(new double[] { 4d, 3d, 2d, 1d, 0d }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new double[] { 4d, 1d, 2d, 3d, 0d }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new double[] { 0d, 1d, 2d, 3d, 4d }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonDoubleListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20854634d2169e84487ed298d36e6bee 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.udonlist.tests/Tests/Runtime/UdonFloatListTest.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: UdonFloatListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 216fd9cff71a24643945a986b10e1a4e, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: b1bf678905309b24693c87b244a2b0b9, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 8867622553459178907 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.udonlist.tests/Tests/Runtime/UdonFloatListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8ba60e35bffbd74fbea9a9eb5761c1e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonFloatListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonFloatListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100f); 16 | list.Add(101f); 17 | list.Add(102f); 18 | Assert.Equal(100f, list.GetValue(0), this); 19 | Assert.Equal(101f, list.GetValue(1), this); 20 | Assert.Equal(102f, list.GetValue(2), this); 21 | Assert.Equal(new float[] { 100f, 101f, 102f }, list.ToArray(), this); 22 | Assert.True(list.Remove(101f), this); 23 | Assert.False(list.Remove(103f), this); 24 | Assert.Equal(100f, list.GetValue(0), this); 25 | Assert.Equal(102f, list.GetValue(1), this); 26 | Assert.Equal(new float[] { 100f, 102f }, list.ToArray(), this); 27 | list.SetValue(1, 101f); 28 | Assert.Equal(new float[] { 100f, 101f }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new float[] { 0f, 1f, 2f, 3f, 4f }); 31 | list.Reverse(); 32 | Assert.Equal(new float[] { 4f, 3f, 2f, 1f, 0f }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new float[] { 4f, 1f, 2f, 3f, 0f }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new float[] { 0f, 1f, 2f, 3f, 4f }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonFloatListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1bf678905309b24693c87b244a2b0b9 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.udonlist.tests/Tests/Runtime/UdonGenericListTest.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: UdonGenericListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 4e81aeb3d8544a44c981e3a3cfec49a7, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: a32c423aba463534c86b500cb43d0bff, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 3861778289515139055 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: 1 48 | - Name: 49 | Entry: 7 50 | Data: 51 | - Name: $k 52 | Entry: 1 53 | Data: gameObjects 54 | - Name: $v 55 | Entry: 7 56 | Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor 57 | - Name: k__BackingField 58 | Entry: 1 59 | Data: gameObjects 60 | - Name: k__BackingField 61 | Entry: 7 62 | Data: 3|System.RuntimeType, mscorlib 63 | - Name: 64 | Entry: 1 65 | Data: UnityEngine.GameObject[], UnityEngine.CoreModule 66 | - Name: 67 | Entry: 8 68 | Data: 69 | - Name: k__BackingField 70 | Entry: 9 71 | Data: 3 72 | - Name: k__BackingField 73 | Entry: 7 74 | Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib 75 | - Name: 76 | Entry: 6 77 | Data: 78 | - Name: 79 | Entry: 8 80 | Data: 81 | - Name: k__BackingField 82 | Entry: 5 83 | Data: true 84 | - Name: _fieldAttributes 85 | Entry: 7 86 | Data: 4|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib 87 | - Name: 88 | Entry: 12 89 | Data: 1 90 | - Name: 91 | Entry: 7 92 | Data: 5|UnityEngine.SerializeField, UnityEngine.CoreModule 93 | - Name: 94 | Entry: 8 95 | Data: 96 | - Name: 97 | Entry: 13 98 | Data: 99 | - Name: 100 | Entry: 8 101 | Data: 102 | - Name: 103 | Entry: 8 104 | Data: 105 | - Name: 106 | Entry: 8 107 | Data: 108 | - Name: 109 | Entry: 13 110 | Data: 111 | - Name: 112 | Entry: 8 113 | Data: 114 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonGenericListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b811305a252c894ba83d8110f36e0dc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonGenericListTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UdonSharp; 4 | using Koyashiro.UdonTest; 5 | 6 | namespace Koyashiro.UdonList.Tests 7 | { 8 | using Koyashiro.UdonList; 9 | 10 | [AddComponentMenu("")] 11 | public class UdonGenericListTest : UdonSharpBehaviour 12 | { 13 | [SerializeField] 14 | private GameObject[] gameObjects = { }; 15 | 16 | private void Start() 17 | { 18 | var gameObjectList = UdonList.New(); 19 | gameObjectList.Add(gameObjects[0]); 20 | gameObjectList.Add(gameObjects[1]); 21 | gameObjectList.Add(gameObjects[2]); 22 | Assert.Equal(gameObjects[0], gameObjectList.GetValue(0), this); 23 | Assert.Equal(gameObjects[1], gameObjectList.GetValue(1), this); 24 | Assert.Equal(gameObjects[2], gameObjectList.GetValue(2), this); 25 | Assert.True(gameObjectList.Remove(gameObjects[1]), this); 26 | Assert.False(gameObjectList.Remove(gameObjects[3]), this); 27 | Assert.Equal(new GameObject[] { gameObjects[0], gameObjects[2] }, gameObjectList.ToArray(), this); 28 | gameObjectList.SetValue(1, gameObjects[1]); 29 | Assert.Equal(gameObjects[1], gameObjectList.GetValue(1), this); 30 | 31 | gameObjectList = UdonList.New(gameObjects); 32 | gameObjectList.Reverse(); 33 | Assert.Equal(new GameObject[] { gameObjects[3], gameObjects[2], gameObjects[1], gameObjects[0] }, 34 | gameObjectList.ToArray(), this); 35 | 36 | var guidList = UdonList.New(); 37 | 38 | for (var i = 0; i < 100; i++) 39 | { 40 | guidList.Add(Guid.NewGuid()); 41 | } 42 | 43 | guidList.Sort(); 44 | 45 | var sortedGuidArray = guidList.ToArray(); 46 | Array.Reverse(sortedGuidArray, 0, sortedGuidArray.Length); 47 | 48 | guidList.Reverse(); 49 | 50 | Assert.Equal(sortedGuidArray, guidList.ToArray(), this); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonGenericListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a32c423aba463534c86b500cb43d0bff 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.udonlist.tests/Tests/Runtime/UdonIntListTest.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: UdonIntListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: a50e8b8fb7167eb458c5761c5d0a7065, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 9fd8ff89d8222b2428dcee2d354ae6b7, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -2545786965210811857 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.udonlist.tests/Tests/Runtime/UdonIntListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f7b37921ba494948a30d5534be0b487 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonIntListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonIntListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100); 16 | list.Add(101); 17 | list.Add(102); 18 | Assert.Equal(100, list.GetValue(0), this); 19 | Assert.Equal(101, list.GetValue(1), this); 20 | Assert.Equal(102, list.GetValue(2), this); 21 | Assert.Equal(new int[] { 100, 101, 102 }, list.ToArray(), this); 22 | Assert.True(list.Remove(101), this); 23 | Assert.False(list.Remove(103), this); 24 | Assert.Equal(100, list.GetValue(0), this); 25 | Assert.Equal(102, list.GetValue(1), this); 26 | Assert.Equal(new int[] { 100, 102 }, list.ToArray(), this); 27 | list.SetValue(1, 101); 28 | Assert.Equal(new int[] { 100, 101 }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new int[] { 0, 1, 2, 3, 4 }); 31 | list.Reverse(); 32 | Assert.Equal(new int[] { 4, 3, 2, 1, 0 }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new int[] { 4, 1, 2, 3, 0 }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new int[] { 0, 1, 2, 3, 4 }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonIntListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fd8ff89d8222b2428dcee2d354ae6b7 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.udonlist.tests/Tests/Runtime/UdonListTest.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: UdonListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 95e3f0b11e8602f4c93e253da994e428, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: e7952d13e83eaa449afbba439f257b5e, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -4758513532515654961 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.udonlist.tests/Tests/Runtime/UdonListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6071bb67413c68b43a5e098a2fe86f09 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonListTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UdonSharp; 4 | using Koyashiro.UdonTest; 5 | 6 | namespace Koyashiro.UdonList.Tests 7 | { 8 | [AddComponentMenu("")] 9 | public class UdonListTest : UdonSharpBehaviour 10 | { 11 | private void Start() 12 | { 13 | UdonList list; 14 | 15 | list = UdonList.New(); 16 | Assert.Equal(0, list.Count(), this); 17 | list = UdonList.New(5); 18 | Assert.Equal(0, list.Count(), this); 19 | list = UdonList.New(new decimal[] { 1, 2, 3 }); 20 | Assert.Equal(3, list.Count(), this); 21 | list.EnsureCapacity(10); 22 | Assert.Equal(10, ((Array)((object[])(object)list)[0]).Length, this); 23 | Assert.Equal(3, list.Count(), this); 24 | list.Add(0m); 25 | list.SetValue(3, 4m); 26 | Assert.Equal(4m, list.GetValue(3), this); 27 | list.Add(5m); 28 | list.AddRange(new decimal[] { 6, 7 }); 29 | Assert.Equal(new decimal[] { 1, 2, 3, 4, 5, 6, 7 }, list.ToArray(), this); 30 | Assert.True(list.Contains(4m), this); 31 | var array = new decimal[list.Count()]; 32 | list.CopyTo(array); 33 | Assert.Equal(list.ToArray(), array, this); 34 | list.Clear(); 35 | Assert.Equal(0, list.Count(), this); 36 | list = UdonList.New(new decimal[] { 1, 2, 3, 4, 5, 1, 2, 3, 4, 5 }); 37 | Assert.Equal(10, list.Count(), this); 38 | Assert.Equal(new decimal[] { 2, 3, 4 }, list.GetRange(1, 3).ToArray(), this); 39 | Assert.Equal(2, list.IndexOf(3m), this); 40 | Assert.Equal(7, list.IndexOf(3m, 4), this); 41 | Assert.Equal(7, list.LastIndexOf(3m), this); 42 | list.Insert(5, 0m); 43 | Assert.Equal(new decimal[] { 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5 }, list.ToArray(), this); 44 | list.InsertRange(5, new decimal[] { 0, 1, 2 }); 45 | Assert.Equal(new decimal[] { 1, 2, 3, 4, 5, 0, 1, 2, 0, 1, 2, 3, 4, 5 }, list.ToArray(), this); 46 | list.Remove(0m); 47 | Assert.Equal(new decimal[] { 1, 2, 3, 4, 5, 1, 2, 0, 1, 2, 3, 4, 5 }, list.ToArray(), this); 48 | list.RemoveAt(7); 49 | Assert.Equal(new decimal[] { 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5 }, list.ToArray(), this); 50 | list.RemoveRange(5, 2); 51 | Assert.Equal(new decimal[] { 1, 2, 3, 4, 5, 1, 2, 3, 4, 5 }, list.ToArray(), this); 52 | list.Reverse(); 53 | Assert.Equal(new decimal[] { 5, 4, 3, 2, 1, 5, 4, 3, 2, 1 }, list.ToArray(), this); 54 | list.Reverse(2, 3); 55 | Assert.Equal(new decimal[] { 5, 4, 1, 2, 3, 5, 4, 3, 2, 1 }, list.ToArray(), this); 56 | list.Sort(2, 5); 57 | Assert.Equal(new decimal[] { 5, 4, 1, 2, 3, 4, 5, 3, 2, 1 }, list.ToArray(), this); 58 | list.Sort(); 59 | Assert.Equal(new decimal[] { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5 }, list.ToArray(), this); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7952d13e83eaa449afbba439f257b5e 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.udonlist.tests/Tests/Runtime/UdonLongListTest.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: UdonLongListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 42130ad13dedef246b1b2ff2f10912bd, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: f5afb9b6d3a588b46973eca2d8150e37, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -8787177110139758433 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.udonlist.tests/Tests/Runtime/UdonLongListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcac17c8a6441964e98238ccdd27a6d6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonLongListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonLongListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100L); 16 | list.Add(101L); 17 | list.Add(102L); 18 | Assert.Equal(100L, list.GetValue(0), this); 19 | Assert.Equal(101L, list.GetValue(1), this); 20 | Assert.Equal(102L, list.GetValue(2), this); 21 | Assert.Equal(new long[] { 100L, 101L, 102L }, list.ToArray(), this); 22 | Assert.True(list.Remove(101L), this); 23 | Assert.False(list.Remove(103L), this); 24 | Assert.Equal(100L, list.GetValue(0), this); 25 | Assert.Equal(102L, list.GetValue(1), this); 26 | Assert.Equal(new long[] { 100L, 102L }, list.ToArray(), this); 27 | list.SetValue(1, 101L); 28 | Assert.Equal(new long[] { 100L, 101L }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new long[] { 0L, 1L, 2L, 3L, 4L }); 31 | list.Reverse(); 32 | Assert.Equal(new long[] { 4L, 3L, 2L, 1L, 0L }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new long[] { 4L, 1L, 2L, 3L, 0L }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new long[] { 0L, 1L, 2L, 3L, 4L }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonLongListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5afb9b6d3a588b46973eca2d8150e37 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.udonlist.tests/Tests/Runtime/UdonObjectListTest.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: UdonObjectListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 8c092eb777c63274eb4a6c9c26a155e1, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: f779af32af0710847b6e86f4eb8870b6, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -1701198187022600937 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.udonlist.tests/Tests/Runtime/UdonObjectListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6db8b0a3d75c03f43a45997497859e31 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonObjectListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonObjectListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100); 16 | list.Add(101); 17 | list.Add(102); 18 | Assert.Equal(100, list.GetValue(0), this); 19 | Assert.Equal(101, list.GetValue(1), this); 20 | Assert.Equal(102, list.GetValue(2), this); 21 | Assert.Equal(new object[] { 100, 101, 102 }, list.ToArray(), this); 22 | Assert.True(list.Remove(101), this); 23 | Assert.False(list.Remove(103), this); 24 | Assert.Equal(100, list.GetValue(0), this); 25 | Assert.Equal(102, list.GetValue(1), this); 26 | Assert.Equal(new object[] { 100, 102 }, list.ToArray(), this); 27 | list.SetValue(1, 101); 28 | Assert.Equal(new object[] { 100, 101 }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new object[] { 0, 1, 2, 3, 4 }); 31 | list.Reverse(); 32 | Assert.Equal(new object[] { 4, 3, 2, 1, 0 }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new object[] { 4, 1, 2, 3, 0 }, list.ToArray(), this); 35 | 36 | // Not supported 37 | //list.Sort(); 38 | //Assert.Equal(new object[] { 0, 1, 2, 3, 4 }, list.ToArray(), this); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonObjectListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f779af32af0710847b6e86f4eb8870b6 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.udonlist.tests/Tests/Runtime/UdonSbyteListTest.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: UdonSbyteListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 7381713a54ed8a0468dd9753863feeee, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: f14350d93c08dc644bf83a2dc0eaa6c7, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -8153188145792794309 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.udonlist.tests/Tests/Runtime/UdonSbyteListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b0d20f50a242b543b12d325a0d9a77b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonSbyteListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonSbyteListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add((sbyte)100); 16 | list.Add((sbyte)101); 17 | list.Add((sbyte)102); 18 | Assert.Equal((sbyte)100, list.GetValue(0), this); 19 | Assert.Equal((sbyte)101, list.GetValue(1), this); 20 | Assert.Equal((sbyte)102, list.GetValue(2), this); 21 | Assert.Equal(new sbyte[] { 100, 101, 102 }, list.ToArray(), this); 22 | Assert.True(list.Remove((sbyte)101), this); 23 | Assert.False(list.Remove((sbyte)103), this); 24 | Assert.Equal((sbyte)100, list.GetValue(0), this); 25 | Assert.Equal((sbyte)102, list.GetValue(1), this); 26 | Assert.Equal(new sbyte[] { 100, 102 }, list.ToArray(), this); 27 | list.SetValue(1, (sbyte)101); 28 | Assert.Equal(new sbyte[] { 100, 101 }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new sbyte[] { 0, 1, 2, 3, 4 }); 31 | list.Reverse(); 32 | Assert.Equal(new sbyte[] { 4, 3, 2, 1, 0 }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new sbyte[] { 4, 1, 2, 3, 0 }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new sbyte[] { 0, 1, 2, 3, 4 }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonSbyteListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f14350d93c08dc644bf83a2dc0eaa6c7 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.udonlist.tests/Tests/Runtime/UdonShortListTest.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: UdonShortListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 87fe0ea16df41f548a3d27e136473116, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 421ade62e7cf7dd4f8581a5e1dcdac1f, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 8287525106172153677 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.udonlist.tests/Tests/Runtime/UdonShortListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08e1009dbbf29db44b9c389611bf4118 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonShortListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonShortListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add((short)100); 16 | list.Add((short)101); 17 | list.Add((short)102); 18 | Assert.Equal((short)100, list.GetValue(0), this); 19 | Assert.Equal((short)101, list.GetValue(1), this); 20 | Assert.Equal((short)102, list.GetValue(2), this); 21 | Assert.Equal(new short[] { 100, 101, 102 }, list.ToArray(), this); 22 | Assert.True(list.Remove((short)101), this); 23 | Assert.False(list.Remove((short)103), this); 24 | Assert.Equal((short)100, list.GetValue(0), this); 25 | Assert.Equal((short)102, list.GetValue(1), this); 26 | Assert.Equal(new short[] { 100, 102 }, list.ToArray(), this); 27 | list.SetValue(1, (short)101); 28 | Assert.Equal(new short[] { 100, 101 }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new short[] { 0, 1, 2, 3, 4 }); 31 | list.Reverse(); 32 | Assert.Equal(new short[] { 4, 3, 2, 1, 0 }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new short[] { 4, 1, 2, 3, 0 }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new short[] { 0, 1, 2, 3, 4 }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonShortListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 421ade62e7cf7dd4f8581a5e1dcdac1f 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.udonlist.tests/Tests/Runtime/UdonStringListTest.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: UdonStringListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 37d2a128b006b8e408a76c2d496051ae, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: ee2639159b46e0d4c83c1432635ad0a7, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -4954563836900064794 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.udonlist.tests/Tests/Runtime/UdonStringListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93270823adc3b17468fbfbcf3fdb671e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonStringListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonStringListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add("first"); 16 | list.Add("second"); 17 | list.Add("third"); 18 | Assert.Equal("first", list.GetValue(0), this); 19 | Assert.Equal("second", list.GetValue(1), this); 20 | Assert.Equal("third", list.GetValue(2), this); 21 | Assert.Equal(new string[] { "first", "second", "third" }, list.ToArray(), this); 22 | Assert.True(list.Remove("second"), this); 23 | Assert.False(list.Remove("fourth"), this); 24 | Assert.Equal("first", list.GetValue(0), this); 25 | Assert.Equal("third", list.GetValue(1), this); 26 | Assert.Equal(new string[] { "first", "third" }, list.ToArray(), this); 27 | list.SetValue(1, "second"); 28 | Assert.Equal(new string[] { "first", "second" }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new string[] { "0", "1", "2", "3", "4" }); 31 | list.Reverse(); 32 | Assert.Equal(new string[] { "4", "3", "2", "1", "0" }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new string[] { "4", "1", "2", "3", "0" }, list.ToArray(), this); 35 | 36 | list.SetValue(1, null); 37 | list.SetValue(2, ""); 38 | list.SetValue(3, null); 39 | list.Sort(); 40 | Assert.Equal(new string[] { null, null, "", "0", "4" }, list.ToArray(), this); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonStringListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee2639159b46e0d4c83c1432635ad0a7 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.udonlist.tests/Tests/Runtime/UdonUintListTest.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: UdonUintListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: d0737c0507ce9a444884780ddc3b1d5a, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: c262928d510b0154dbf90be276e36ce1, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 3836746191220525978 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.udonlist.tests/Tests/Runtime/UdonUintListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bad43b9eece01664ca851bfe1c4b967a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonUintListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonUintListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100u); 16 | list.Add(101u); 17 | list.Add(102u); 18 | Assert.Equal(100u, list.GetValue(0), this); 19 | Assert.Equal(101u, list.GetValue(1), this); 20 | Assert.Equal(102u, list.GetValue(2), this); 21 | Assert.Equal(new uint[] { 100u, 101u, 102u }, list.ToArray(), this); 22 | Assert.True(list.Remove(101u), this); 23 | Assert.False(list.Remove(103u), this); 24 | Assert.Equal(100u, list.GetValue(0), this); 25 | Assert.Equal(102u, list.GetValue(1), this); 26 | Assert.Equal(new uint[] { 100u, 102u }, list.ToArray(), this); 27 | list.SetValue(1, 101u); 28 | Assert.Equal(new uint[] { 100u, 101u }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new uint[] { 0u, 1u, 2u, 3u, 4u }); 31 | list.Reverse(); 32 | Assert.Equal(new uint[] { 4u, 3u, 2u, 1u, 0u }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new uint[] { 4u, 1u, 2u, 3u, 0u }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new uint[] { 0u, 1u, 2u, 3u, 4u }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonUintListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c262928d510b0154dbf90be276e36ce1 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.udonlist.tests/Tests/Runtime/UdonUlongListTest.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: UdonUlongListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: cc44a966c17502849837df04e32e6c26, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 3a6be0ae3f36c8042b360c2a446edcd7, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: -8760389983335253224 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.udonlist.tests/Tests/Runtime/UdonUlongListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85f3e8289fc217b42a77cf7e45058495 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonUlongListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonUlongListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add(100uL); 16 | list.Add(101uL); 17 | list.Add(102uL); 18 | Assert.Equal(100uL, list.GetValue(0), this); 19 | Assert.Equal(101uL, list.GetValue(1), this); 20 | Assert.Equal(102uL, list.GetValue(2), this); 21 | Assert.Equal(new ulong[] { 100uL, 101uL, 102uL }, list.ToArray(), this); 22 | Assert.True(list.Remove(101uL), this); 23 | Assert.False(list.Remove(103uL), this); 24 | Assert.Equal(100uL, list.GetValue(0), this); 25 | Assert.Equal(102uL, list.GetValue(1), this); 26 | Assert.Equal(new ulong[] { 100uL, 102uL }, list.ToArray(), this); 27 | list.SetValue(1, 101uL); 28 | Assert.Equal(new ulong[] { 100uL, 101uL }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new ulong[] { 0uL, 1uL, 2uL, 3uL, 4uL }); 31 | list.Reverse(); 32 | Assert.Equal(new ulong[] { 4uL, 3uL, 2uL, 1uL, 0uL }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new ulong[] { 4uL, 1uL, 2uL, 3uL, 0uL }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new ulong[] { 0uL, 1uL, 2uL, 3uL, 4uL }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonUlongListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a6be0ae3f36c8042b360c2a446edcd7 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.udonlist.tests/Tests/Runtime/UdonUshortListTest.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: UdonUshortListTest 14 | m_EditorClassIdentifier: 15 | serializedUdonProgramAsset: {fileID: 11400000, guid: 940a2c318ba2ee0468facf8358e67317, 16 | type: 2} 17 | udonAssembly: 18 | assemblyError: 19 | sourceCsScript: {fileID: 11500000, guid: 028066998dde86543b8cf9f8b5570280, type: 3} 20 | scriptVersion: 2 21 | compiledVersion: 2 22 | behaviourSyncMode: 0 23 | hasInteractEvent: 0 24 | scriptID: 665039040006156628 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.udonlist.tests/Tests/Runtime/UdonUshortListTest.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2fac34106936a248a35fdd84efa619d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonUshortListTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonTest; 4 | 5 | namespace Koyashiro.UdonList.Tests 6 | { 7 | using Koyashiro.UdonList; 8 | 9 | [AddComponentMenu("")] 10 | public class UdonUshortListTest : UdonSharpBehaviour 11 | { 12 | private void Start() 13 | { 14 | var list = UdonList.New(); 15 | list.Add((ushort)100); 16 | list.Add((ushort)101); 17 | list.Add((ushort)102); 18 | Assert.Equal((ushort)100, list.GetValue(0), this); 19 | Assert.Equal((ushort)101, list.GetValue(1), this); 20 | Assert.Equal((ushort)102, list.GetValue(2), this); 21 | Assert.Equal(new ushort[] { 100, 101, 102 }, list.ToArray(), this); 22 | Assert.True(list.Remove((ushort)101), this); 23 | Assert.False(list.Remove((ushort)103), this); 24 | Assert.Equal((ushort)100, list.GetValue(0), this); 25 | Assert.Equal((ushort)102, list.GetValue(1), this); 26 | Assert.Equal(new ushort[] { 100, 102 }, list.ToArray(), this); 27 | list.SetValue(1, (ushort)101); 28 | Assert.Equal(new ushort[] { 100, 101 }, list.ToArray(), this); 29 | 30 | list = UdonList.New(new ushort[] { 0, 1, 2, 3, 4 }); 31 | list.Reverse(); 32 | Assert.Equal(new ushort[] { 4, 3, 2, 1, 0 }, list.ToArray(), this); 33 | list.Reverse(1, 3); 34 | Assert.Equal(new ushort[] { 4, 1, 2, 3, 0 }, list.ToArray(), this); 35 | 36 | list.Sort(); 37 | Assert.Equal(new ushort[] { 0, 1, 2, 3, 4 }, list.ToArray(), this); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/Tests/Runtime/UdonUshortListTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 028066998dde86543b8cf9f8b5570280 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.udonlist.tests/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "net.koyashiro.udonlist.tests", 3 | "displayName": "UdonList.Tests", 4 | "version": "0.14.2", 5 | "vpmDependencies": { 6 | "com.vrchat.udonsharp": "1.1.7", 7 | "net.koyashiro.udonlist": "0.14.2", 8 | "net.koyashiro.udontest": "0.4.2" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist.tests/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62ce44baf67b95e4792c367eed6adc25 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/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/net.koyashiro.udonlist/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79b3bac5a92c1a7469547f044f8027dc 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/README.md: -------------------------------------------------------------------------------- 1 | # ⚠️ ARCHIVED ⚠️ 2 | 3 | This repository has been archived following the launch of [DataList](https://docs.vrchat.com/docs/data-lists). We strongly recommend using [DataList](https://docs.vrchat.com/docs/data-lists) for future projects. 4 | 5 | If you're in need of a generic version of DataList, consider using the [GenericDataContainer](https://github.com/koyashiro/generic-data-container) repository as a potential resource. 6 | 7 | # UdonList 8 | 9 | List implementation for UdonSharp. 10 | 11 | ## Installation 12 | 13 | To use this package, you need to add [my package repository](https://github.com/koyashiro/vpm-repos). 14 | Please read more details [here](https://github.com/koyashiro/vpm-repos#installation). 15 | 16 | Please install this package with [Creator Companion](https://vcc.docs.vrchat.com/) or [VPM CLI](https://vcc.docs.vrchat.com/vpm/cli/). 17 | 18 | ### Creator Companion 19 | 20 | 1. Enable the `koyashiro` package repository. 21 | 22 | ![image](https://user-images.githubusercontent.com/6698252/230629434-048cde39-a0ec-4c53-bfe2-46bde2e6a57a.png) 23 | 24 | 2. Find `UdonList` from the list of packages and install any version you want. 25 | 26 | ### VPM CLI 27 | 28 | 1. Execute the following command to install the package. 29 | 30 | ```sh 31 | vpm add package net.koyashiro.udonlist 32 | ``` 33 | 34 | ## Example 35 | 36 | `UdonList` example for a `string`. 37 | 38 | In addition, `UdonList`, `UdonList`, `UdonList`, 39 | `UdonList`, `UdonList`, and so on can be used. 40 | 41 | ```cs 42 | using UnityEngine; 43 | using UdonSharp; 44 | using Koyashiro.UdonList; 45 | 46 | public class UdonListSample : UdonSharpBehaviour 47 | { 48 | private void Start() 49 | { 50 | var list = UdonList.New(); // Same as C# `new List();` 51 | list.Add("first"); // ["first"] 52 | list.Add("second"); // ["first", "second"] 53 | list.Add("third"); // ["first", "second", "third"] 54 | list.Remove("second"); // ["first", "third"] 55 | 56 | // List to array 57 | var convertedArray = list.ToArray(); 58 | 59 | // Array to list 60 | var convertedList = UdonList.New(convertedArray); 61 | 62 | // Alternative foreach 63 | for (var i = 0; i < convertedList.Count(); i++) 64 | { 65 | Debug.Log(list.GetValue(i)); // "first", "third" 66 | } 67 | } 68 | } 69 | ``` 70 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cb930636063c324fa287afa4348c76f 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4343cbb25759e254795272a0ecf0708b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 847772466c41de74f902ec95adb7c67b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/Core/UdonList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0fc7d47de158194098b1ee1171dabe2 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.udonlist/Runtime/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 111c6f108ff6f5643ae008fb4fad6c97 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/Internal/ExceptionHelper.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Koyashiro.UdonList.Internal 4 | { 5 | public static class ExceptionHelper 6 | { 7 | private const string TAG = "UdonList"; 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() 14 | { 15 | LogErrorMessage(typeof(System.ArgumentException).FullName, "Value does not fall within the expected range."); 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 | public static void ThrowArgumentOutOfRangeException() 26 | { 27 | LogErrorMessage(typeof(System.ArgumentOutOfRangeException).FullName, "Specified argument was out of the range of valid values."); 28 | Panic(); 29 | } 30 | 31 | public static void ThrowIndexOutOfRangeException() 32 | { 33 | LogErrorMessage(typeof(System.IndexOutOfRangeException).FullName, "Index was outside the bounds of the array."); 34 | Panic(); 35 | } 36 | 37 | private static void LogErrorMessage(string exception, string message) 38 | { 39 | Debug.LogError($"[{TAG}] {exception}: {message}"); 40 | } 41 | 42 | private static void LogErrorMessage(string exception, string message, string paramName) 43 | { 44 | Debug.LogError($"[{TAG}] {exception}: {message} (Parameter '{paramName}')"); 45 | } 46 | 47 | private static void Panic() 48 | { 49 | // Raise runtime Exception 50 | ((object)null).ToString(); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/Internal/ExceptionHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b1ae8f1a02c20745b4ade5fdb5cb4e4 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.udonlist/Runtime/Koyashiro.UdonList.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Koyashiro.UdonList", 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.udonlist/Runtime/Koyashiro.UdonList.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fb59fb8cd294ed45a24544564ebc05c 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/Koyashiro.UdonList.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.UdonList 14 | m_EditorClassIdentifier: 15 | sourceAssembly: {fileID: 5897886265953266890, guid: 3fb59fb8cd294ed45a24544564ebc05c, 16 | type: 3} 17 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/Koyashiro.UdonList.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fee312832ae9e354d980f49b2ae49244 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/UdonList.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | 4 | namespace Koyashiro.UdonList 5 | { 6 | [AddComponentMenu("")] 7 | public class UdonList : UdonSharpBehaviour 8 | { 9 | public static UdonList New() 10 | { 11 | return (UdonList)(object)Core.UdonList.New(); 12 | } 13 | 14 | public static UdonList New(T[] collection) 15 | { 16 | return (UdonList)(object)Core.UdonList.New(collection); 17 | } 18 | 19 | public static UdonList New(int capacity) 20 | { 21 | return (UdonList)(object)Core.UdonList.New(capacity); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/UdonList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4db988acaad1f240bbdb28e21518bf2 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.udonlist/Runtime/UdonListExt.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Koyashiro.UdonList 4 | { 5 | public static class UdonListExt 6 | { 7 | public static int Capacity(this UdonList list) 8 | { 9 | return Core.UdonList.Capacity((object[])(object)list); 10 | } 11 | 12 | public static void SetCapacity(this UdonList list, int capacity) 13 | { 14 | Core.UdonList.SetCapacity((object[])(object)list, capacity); 15 | } 16 | 17 | public static int Count(this UdonList list) 18 | { 19 | return Core.UdonList.Count((object[])(object)list); 20 | } 21 | 22 | public static T GetValue(this UdonList list, int index) 23 | { 24 | return Core.UdonList.GetValue((object[])(object)list, index); 25 | } 26 | 27 | public static void SetValue(this UdonList list, int index, T item) 28 | { 29 | Core.UdonList.SetValue((object[])(object)list, index, item); 30 | } 31 | 32 | public static void Add(this UdonList list, T item) 33 | { 34 | Core.UdonList.Add((object[])(object)list, item); 35 | } 36 | 37 | public static void AddRange(this UdonList list, T[] collection) 38 | { 39 | Core.UdonList.AddRange((object[])(object)list, collection); 40 | } 41 | 42 | public static void Clear(this UdonList list) 43 | { 44 | Core.UdonList.Clear((object[])(object)list); 45 | } 46 | 47 | public static bool Contains(this UdonList list, T item) 48 | { 49 | return Core.UdonList.Contains((object[])(object)list, item); 50 | } 51 | 52 | public static void CopyTo(this UdonList list, T[] array) 53 | { 54 | Core.UdonList.CopyTo((object[])(object)list, array); 55 | } 56 | 57 | public static void CopyTo(this UdonList list, int index, T[] array, int arrayIndex, int count) 58 | { 59 | Core.UdonList.CopyTo((object[])(object)list, index, array, arrayIndex, count); 60 | } 61 | 62 | public static void CopyTo(UdonList list, T[] array, int arrayIndex) 63 | { 64 | Core.UdonList.CopyTo((object[])(object)list, array, arrayIndex); 65 | } 66 | 67 | public static int EnsureCapacity(this UdonList list, int capacity) 68 | { 69 | return Core.UdonList.EnsureCapacity((object[])(object)list, capacity); 70 | } 71 | 72 | public static UdonList GetRange(this UdonList list, int index, int count) 73 | { 74 | return (UdonList)(object)Core.UdonList.GetRange((object[])(object)list, index, count); 75 | } 76 | 77 | public static int IndexOf(this UdonList list, T item) 78 | { 79 | return Core.UdonList.IndexOf((object[])(object)list, item); 80 | } 81 | 82 | public static int IndexOf(this UdonList list, T item, int index) 83 | { 84 | return Core.UdonList.IndexOf((object[])(object)list, item, index); 85 | } 86 | 87 | public static int IndexOf(this UdonList list, T item, int index, int count) 88 | { 89 | return Core.UdonList.IndexOf((object[])(object)list, item, index, count); 90 | } 91 | 92 | public static void Insert(this UdonList list, int index, T item) 93 | { 94 | Core.UdonList.Insert((object[])(object)list, index, item); 95 | } 96 | 97 | public static void InsertRange(this UdonList list, int index, T[] collection) 98 | { 99 | Core.UdonList.InsertRange((object[])(object)list, index, collection); 100 | } 101 | 102 | public static int LastIndexOf(this UdonList list, T item) 103 | { 104 | return Core.UdonList.LastIndexOf((object[])(object)list, item); 105 | } 106 | 107 | public static int LastIndexOf(this UdonList list, T item, int index) 108 | { 109 | return Core.UdonList.LastIndexOf((object[])(object)list, item, index); 110 | } 111 | 112 | public static int LastIndexOf(this UdonList list, T item, int index, int count) 113 | { 114 | return Core.UdonList.LastIndexOf((object[])(object)list, item, index, count); 115 | } 116 | 117 | public static bool Remove(this UdonList list, T item) 118 | { 119 | return Core.UdonList.Remove((object[])(object)list, item); 120 | } 121 | 122 | public static void RemoveAt(this UdonList list, int index) 123 | { 124 | Core.UdonList.RemoveAt((object[])(object)list, index); 125 | } 126 | 127 | public static void RemoveRange(this UdonList list, int index, int count) 128 | { 129 | Core.UdonList.RemoveRange((object[])(object)list, index, count); 130 | } 131 | 132 | public static void Reverse(this UdonList list) 133 | { 134 | Core.UdonList.Reverse((object[])(object)list); 135 | } 136 | 137 | public static void Reverse(this UdonList list, int index, int count) 138 | { 139 | Core.UdonList.Reverse((object[])(object)list, index, count); 140 | } 141 | 142 | public static void Sort(this UdonList list) where T : IComparable 143 | { 144 | Core.UdonList.Sort((object[])(object)list); 145 | } 146 | 147 | public static void Sort(this UdonList list, int index, int count) where T : IComparable 148 | { 149 | Core.UdonList.Sort((object[])(object)list, index, count); 150 | } 151 | 152 | public static T[] ToArray(this UdonList list) 153 | { 154 | return Core.UdonList.ToArray((object[])(object)list); 155 | } 156 | 157 | public static void TrimExcess(this UdonList list) 158 | { 159 | Core.UdonList.TrimExcess((object[])(object)list); 160 | } 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/Runtime/UdonListExt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0d93d8dcb9941e45a383cd8b5ba8331 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.udonlist/Samples~/UdonListSample/UdonListSample.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UdonSharp; 3 | using Koyashiro.UdonList; 4 | 5 | public class UdonListSample : UdonSharpBehaviour 6 | { 7 | private void Start() 8 | { 9 | var list = UdonList.New(); // Same as C# "new List();" 10 | list.Add("first"); // ["first"] 11 | list.Add("second"); // ["first", "second"] 12 | list.Add("third"); // ["first", "second", "third"] 13 | list.Remove("second"); // ["first", "third"] 14 | 15 | // List to array 16 | var convertedArray = list.ToArray(); 17 | 18 | // Array to list 19 | var convertedList = UdonList.New(convertedArray); 20 | 21 | // Alternative foreach 22 | for (var i = 0; i < convertedList.Count(); i++) 23 | { 24 | Debug.Log(list.GetValue(i)); // "first", "third" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "net.koyashiro.udonlist", 3 | "displayName": "UdonList", 4 | "version": "0.14.2", 5 | "description": "List implementation for UdonSharp.", 6 | "homepage": "https://github.com/koyashiro/udon-list", 7 | "bugs": { 8 | "url": "https://github.com/koyashiro/udon-list/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-list" 19 | }, 20 | "samples": [ 21 | { 22 | "displayName": "UdonListSample", 23 | "description": "Sample of UdonList.", 24 | "path": "Samples~/UdonListSample" 25 | } 26 | ], 27 | "url": "https://github.com/koyashiro/udon-list/releases/download/v0.14.2/net.koyashiro.udonlist-0.14.2.zip", 28 | "vpmDependencies": { 29 | "com.vrchat.udonsharp": "1.1.7" 30 | }, 31 | "repo": "https://vpm.koyashiro.net/repos.json" 32 | } 33 | -------------------------------------------------------------------------------- /Packages/net.koyashiro.udonlist/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 702227bcfc92b9041bd8ede3ca9035cb 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/vpm-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.vrchat.udonsharp": { 4 | "version": "1.1.7" 5 | }, 6 | "com.vrchat.clientsim": { 7 | "version": "1.2.2" 8 | }, 9 | "com.vrchat.core.vpm-resolver": { 10 | "version": "0.1.18" 11 | }, 12 | "net.koyashiro.udontest": { 13 | "version": "0.4.2" 14 | } 15 | }, 16 | "locked": { 17 | "com.vrchat.udonsharp": { 18 | "version": "1.1.7", 19 | "dependencies": { 20 | "com.vrchat.worlds": "3.1.x" 21 | } 22 | }, 23 | "com.vrchat.worlds": { 24 | "version": "3.1.13", 25 | "dependencies": { 26 | "com.vrchat.base": "3.1.13" 27 | } 28 | }, 29 | "com.vrchat.base": { 30 | "version": "3.1.13", 31 | "dependencies": {} 32 | }, 33 | "com.vrchat.clientsim": { 34 | "version": "1.2.2", 35 | "dependencies": { 36 | "com.vrchat.worlds": "3.1.x" 37 | } 38 | }, 39 | "com.vrchat.core.vpm-resolver": { 40 | "version": "0.1.18", 41 | "dependencies": {} 42 | }, 43 | "net.koyashiro.udontest": { 44 | "version": "0.4.2", 45 | "dependencies": { 46 | "com.vrchat.udonsharp": "1.1.7" 47 | } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /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/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 | # ⚠️ ARCHIVED ⚠️ 2 | 3 | This repository has been archived following the launch of [DataList](https://docs.vrchat.com/docs/data-lists). We strongly recommend using [DataList](https://docs.vrchat.com/docs/data-lists) for future projects. 4 | 5 | If you're in need of a generic version of DataList, consider using the [GenericDataContainer](https://github.com/koyashiro/generic-data-container) repository as a potential resource. 6 | 7 | # UdonList 8 | 9 | List implementation for UdonSharp. 10 | 11 | ## Installation 12 | 13 | To use this package, you need to add [my package repository](https://github.com/koyashiro/vpm-repos). 14 | Please read more details [here](https://github.com/koyashiro/vpm-repos#installation). 15 | 16 | Please install this package with [Creator Companion](https://vcc.docs.vrchat.com/) or [VPM CLI](https://vcc.docs.vrchat.com/vpm/cli/). 17 | 18 | ### Creator Companion 19 | 20 | 1. Enable the `koyashiro` package repository. 21 | 22 | ![image](https://user-images.githubusercontent.com/6698252/230629434-048cde39-a0ec-4c53-bfe2-46bde2e6a57a.png) 23 | 24 | 2. Find `UdonList` from the list of packages and install any version you want. 25 | 26 | ### VPM CLI 27 | 28 | 1. Execute the following command to install the package. 29 | 30 | ```sh 31 | vpm add package net.koyashiro.udonlist 32 | ``` 33 | 34 | ## Example 35 | 36 | `UdonList` example for a `string`. 37 | 38 | In addition, `UdonList`, `UdonList`, `UdonList`, 39 | `UdonList`, `UdonList`, and so on can be used. 40 | 41 | ```cs 42 | using UnityEngine; 43 | using UdonSharp; 44 | using Koyashiro.UdonList; 45 | 46 | public class UdonListSample : UdonSharpBehaviour 47 | { 48 | private void Start() 49 | { 50 | var list = UdonList.New(); // Same as C# `new List();` 51 | list.Add("first"); // ["first"] 52 | list.Add("second"); // ["first", "second"] 53 | list.Add("third"); // ["first", "second", "third"] 54 | list.Remove("second"); // ["first", "third"] 55 | 56 | // List to array 57 | var convertedArray = list.ToArray(); 58 | 59 | // Array to list 60 | var convertedList = UdonList.New(convertedArray); 61 | 62 | // Alternative foreach 63 | for (var i = 0; i < convertedList.Count(); i++) 64 | { 65 | Debug.Log(list.GetValue(i)); // "first", "third" 66 | } 67 | } 68 | } 69 | ``` 70 | -------------------------------------------------------------------------------- /ureishi.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ureishi", 3 | "author": "ureishi", 4 | "url": "", 5 | "packages": { 6 | "net.ureishi.qvpen": { 7 | "versions": { 8 | "3.2.6": { 9 | "version": "3.2.6", 10 | "name": "net.ureishi.qvpen", 11 | "dependencies": { 12 | "com.unity.textmeshpro": "2.1.4" 13 | }, 14 | "description": "VRChat World Pen.", 15 | "displayName": "QvPen", 16 | "legacyFolders": { 17 | "Assets\\QvPen": "0eeec8527d6948040915b97bddf0ba10" 18 | }, 19 | "unity": "2019.4", 20 | "url": "https://github.com/ureishi/QvPen/releases/download/v3.2.6/net.ureishi.qvpen-3.2.6.zip", 21 | "vpmDependencies": { 22 | "com.vrchat.udonsharp": "1.1.7" 23 | } 24 | } 25 | } 26 | } 27 | } 28 | } --------------------------------------------------------------------------------