├── .gitignore ├── .gitmodules ├── Assets ├── .gitkeep ├── Scenes.meta └── Scenes │ ├── NewBehaviourScript.cs │ └── NewBehaviourScript.cs.meta ├── LICENSE.md ├── Packages ├── example-package │ ├── CHANGELOG.md │ ├── CHANGELOG.md.meta │ ├── Editor.meta │ ├── Editor │ │ ├── AssemblyInfo.cs │ │ ├── AssemblyInfo.cs.meta │ │ ├── com.halodi.example-package.Editor.asmdef │ │ └── com.halodi.example-package.Editor.asmdef.meta │ ├── LICENSE.md │ ├── LICENSE.md.meta │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ │ ├── AssemblyInfo.cs │ │ ├── AssemblyInfo.cs.meta │ │ ├── com.halodi.example-package.Runtime.asmdef │ │ └── com.halodi.example-package.Runtime.asmdef.meta │ ├── Tests.meta │ ├── Tests │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── AssemblyInfo.cs │ │ │ ├── AssemblyInfo.cs.meta │ │ │ ├── com.halodi.example-package.Editor.Tests.asmdef │ │ │ └── com.halodi.example-package.Editor.Tests.asmdef.meta │ │ ├── Runtime.meta │ │ └── Runtime │ │ │ ├── AssemblyInfo.cs │ │ │ ├── AssemblyInfo.cs.meta │ │ │ ├── com.halodi.example-package.Runtime.Tests.asmdef │ │ │ └── com.halodi.example-package.Runtime.Tests.asmdef.meta │ ├── package.json │ └── package.json.meta ├── halodi-unity-package-creator │ ├── CHANGELOG.md │ ├── CHANGELOG.md.meta │ ├── Documentation~ │ │ └── halodi-unity-package-creator-screenshot.png │ ├── Editor.meta │ ├── Editor │ │ ├── Halodi.PackageCreator.Editor.asmdef │ │ ├── Halodi.PackageCreator.Editor.asmdef.meta │ │ ├── halodi.meta │ │ └── halodi │ │ │ ├── PackageCreator.meta │ │ │ └── PackageCreator │ │ │ ├── AssetDatabaseUtilities.cs │ │ │ ├── AssetDatabaseUtilities.cs.meta │ │ │ ├── CreateGitKeep.cs │ │ │ ├── CreateGitKeep.cs.meta │ │ │ ├── EmbedPackageView.cs │ │ │ ├── EmbedPackageView.cs.meta │ │ │ ├── ExtendedPackagePropertiesUI.cs │ │ │ ├── ExtendedPackagePropertiesUI.cs.meta │ │ │ ├── HalodiAddSampleView.cs │ │ │ ├── HalodiAddSampleView.cs.meta │ │ │ ├── HalodiEditPackageView.cs │ │ │ ├── HalodiEditPackageView.cs.meta │ │ │ ├── HalodiNewPackageController.cs │ │ │ ├── HalodiNewPackageController.cs.meta │ │ │ ├── HalodiNewPackageView.cs │ │ │ ├── HalodiNewPackageView.cs.meta │ │ │ ├── HalodiPackageCreatorController.cs │ │ │ ├── HalodiPackageCreatorController.cs.meta │ │ │ ├── HalodiPackageCreatorView.cs │ │ │ ├── HalodiPackageCreatorView.cs.meta │ │ │ ├── PackageGroupConfiguration.cs │ │ │ ├── PackageGroupConfiguration.cs.meta │ │ │ ├── PackageManifest.cs │ │ │ ├── PackageManifest.cs.meta │ │ │ ├── Paths.cs │ │ │ ├── Paths.cs.meta │ │ │ ├── PublicationController.cs │ │ │ ├── PublicationController.cs.meta │ │ │ ├── PublicationView.cs │ │ │ ├── PublicationView.cs.meta │ │ │ ├── RegistrySelector.cs │ │ │ ├── RegistrySelector.cs.meta │ │ │ ├── SPDXLicenseList.cs │ │ │ ├── SPDXLicenseList.cs.meta │ │ │ ├── UpgradeScripts.meta │ │ │ ├── UpgradeScripts │ │ │ ├── MoveFromAssetsToPackagesFolder.cs │ │ │ └── MoveFromAssetsToPackagesFolder.cs.meta │ │ │ ├── VersionMaintainer.cs │ │ │ └── VersionMaintainer.cs.meta │ ├── LICENSE.md │ ├── LICENSE.md.meta │ ├── README.md │ ├── README.md.meta │ ├── Resources.meta │ ├── Resources │ │ ├── halodi-unity-package-creator.meta │ │ └── halodi-unity-package-creator │ │ │ ├── spdx-license-list.json │ │ │ └── spdx-license-list.json.meta │ ├── Tests.meta │ ├── Tests │ │ ├── Editor.meta │ │ └── Editor │ │ │ ├── AssemblyInfo.cs │ │ │ ├── AssemblyInfo.cs.meta │ │ │ ├── com.halodi.halodi-unity-package-creator.Editor.Tests.asmdef │ │ │ └── com.halodi.halodi-unity-package-creator.Editor.Tests.asmdef.meta │ ├── package.json │ └── package.json.meta ├── manifest.json ├── package-group.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset ├── README.md └── UserSettings └── EditorUserSettings.asset /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Ll]ogs/ 3 | [Tt]emp/ 4 | [Oo]bj/ 5 | [Bb]uild/ 6 | [Bb]uilds/ 7 | Assets/AssetStoreTools* 8 | 9 | # Visual Studio cache directory 10 | .vs/ 11 | 12 | # Autogenerated VS/MD/Consulo solution and project files 13 | ExportedObj/ 14 | .consulo/ 15 | *.csproj 16 | *.unityproj 17 | *.sln 18 | *.suo 19 | *.tmp 20 | *.user 21 | *.userprefs 22 | *.pidb 23 | *.booproj 24 | *.svd 25 | *.pdb 26 | *.opendb 27 | 28 | # Unity3D generated meta files 29 | *.pidb.meta 30 | *.pdb.meta 31 | 32 | # Unity3D Generated File On Crash Reports 33 | sysinfo.txt 34 | 35 | # Builds 36 | *.apk 37 | *.unitypackage 38 | 39 | .vscode/ 40 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Packages/halodi-unity-package-registry-manager"] 2 | path = Packages/halodi-unity-package-registry-manager 3 | url = https://github.com/Halodi/halodi-unity-package-registry-manager.git 4 | -------------------------------------------------------------------------------- /Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | This file forces git to check-in the required Assets/ directory, even when it is empty. Do not remove. -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62743f6d04f344145a21c2e8202f3e5f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/NewBehaviourScript.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class NewBehaviourScript : MonoBehaviour 6 | { 7 | // Start is called before the first frame update 8 | void Start() 9 | { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update() 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scenes/NewBehaviourScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32d41d5d1cd6b6be5a581abdaa324c52 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /Packages/example-package/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # ChangeLog 2 | 3 | 4 | ## 0.0.1 - 2020-06-11 5 | - Package created -------------------------------------------------------------------------------- /Packages/example-package/CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b20f0b5344f6d4b2ae271cc20df5df2 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d87cec03e1eb9f0c8cbc8a7233613af 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/example-package/Editor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Reflection; 3 | 4 | [assembly: AssemblyTitle("com.halodi.example-package.Editor")] 5 | [assembly: AssemblyProduct("com.halodi.example-package")] 6 | -------------------------------------------------------------------------------- /Packages/example-package/Editor/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 736972d5082bf591088e2bb4b6292093 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/example-package/Editor/com.halodi.example-package.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.example-package.Editor", 3 | "references": [ 4 | "com.halodi.example-package.Runtime" 5 | ], 6 | "includePlatforms": [ 7 | "Editor" 8 | ], 9 | "excludePlatforms": [], 10 | "optionalUnityReferences": [] 11 | } -------------------------------------------------------------------------------- /Packages/example-package/Editor/com.halodi.example-package.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 556a47591e9d0354795674a5e95be1b2 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /Packages/example-package/LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a8f86b1bf5d458dbbc7a59bbcc96376 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/README.md: -------------------------------------------------------------------------------- 1 | # Example Package 2 | 3 | An example package 4 | -------------------------------------------------------------------------------- /Packages/example-package/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 345f7cb3dc402454ab3139f2702009cf 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3d99f8f58a88cda580537a1679ef866 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/example-package/Runtime/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Reflection; 3 | 4 | [assembly: AssemblyTitle("com.halodi.example-package.Runtime")] 5 | [assembly: AssemblyProduct("com.halodi.example-package")] 6 | -------------------------------------------------------------------------------- /Packages/example-package/Runtime/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25d25f85e7f5adcbd8452f062730e4d4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/example-package/Runtime/com.halodi.example-package.Runtime.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.example-package.Runtime", 3 | "references": [], 4 | "includePlatforms": [], 5 | "excludePlatforms": [], 6 | "optionalUnityReferences": [] 7 | } -------------------------------------------------------------------------------- /Packages/example-package/Runtime/com.halodi.example-package.Runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d0bba25ba48edbbda81dab37f280722 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 813d25d25c1f6e26485edd132bebc179 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a557d6c2bc1c05970acf977a31f22e5d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Editor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Reflection; 3 | 4 | [assembly: AssemblyTitle("com.halodi.example-package.Editor.Tests")] 5 | [assembly: AssemblyProduct("com.halodi.example-package")] 6 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Editor/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 438202cb161bf62dd93c9c0252101ad1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Editor/com.halodi.example-package.Editor.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.example-package.Editor.Tests", 3 | "references": [ 4 | "com.halodi.example-package.Runtime", 5 | "com.halodi.example-package.Editor" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "optionalUnityReferences": [ 12 | "TestAssemblies" 13 | ] 14 | } -------------------------------------------------------------------------------- /Packages/example-package/Tests/Editor/com.halodi.example-package.Editor.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05752629e4283cd6aa9e1350864cf61c 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c3d7314858f790399d376ab932e4950 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Runtime/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Reflection; 3 | 4 | [assembly: AssemblyTitle("com.halodi.example-package.Runtime.Tests")] 5 | [assembly: AssemblyProduct("com.halodi.example-package")] 6 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Runtime/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2bed70aaf2a63f0aaf5f8167d2d2347 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/example-package/Tests/Runtime/com.halodi.example-package.Runtime.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.example-package.Runtime.Tests", 3 | "references": [ 4 | "com.halodi.example-package.Runtime" 5 | ], 6 | "includePlatforms": [], 7 | "excludePlatforms": [], 8 | "optionalUnityReferences": [ 9 | "TestAssemblies" 10 | ] 11 | } -------------------------------------------------------------------------------- /Packages/example-package/Tests/Runtime/com.halodi.example-package.Runtime.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8882caf2baf8157dba8016fcab37345 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/example-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.example-package", 3 | "version": "0.1.0", 4 | "displayName": "Example Package", 5 | "description": "An example package", 6 | "license": "Apache-2.0", 7 | "publishConfig": { 8 | "registry": "https://npm.halodi.com" 9 | }, 10 | "samples": [], 11 | "author": { 12 | "name": "Halodi", 13 | "email": "jesper@halodi.com", 14 | "url": "www.halodi.com" 15 | } 16 | } -------------------------------------------------------------------------------- /Packages/example-package/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87f6f5abbefd02800bff11a754146179 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1x-technologies/halodi-unity-package-creator/8e0c665d3a07a31f2711dc2566de2afaf18d03dc/Packages/halodi-unity-package-creator/CHANGELOG.md -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5c7c63ed522b04cf9baeed764d30420 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Documentation~/halodi-unity-package-creator-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1x-technologies/halodi-unity-package-creator/8e0c665d3a07a31f2711dc2566de2afaf18d03dc/Packages/halodi-unity-package-creator/Documentation~/halodi-unity-package-creator-screenshot.png -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b9b1e2766f12053b9d321815761c24a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/Halodi.PackageCreator.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.halodi-unity-package-creator.Editor", 3 | "references": [ 4 | "Halodi.PackageRegistryManager.Editor", 5 | "Artees.SemanticVersioning" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": true, 12 | "overrideReferences": true, 13 | "precompiledReferences": [ 14 | "Newtonsoft.Json.dll" 15 | ], 16 | "autoReferenced": true, 17 | "defineConstraints": [], 18 | "versionDefines": [], 19 | "noEngineReferences": false 20 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/Halodi.PackageCreator.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0af02dd2ff1e97d93a88ebd4ed4e978f 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d83594131f8d8aa0af3e9d92530ef25 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47a44718b9e8e6cd1a692323d6888bf9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/AssetDatabaseUtilities.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace Halodi.PackageCreator 8 | { 9 | internal class AssetDatabaseUtilities 10 | { 11 | internal static string GetProjectRoot() 12 | { 13 | DirectoryInfo dataInfo = new DirectoryInfo(Application.dataPath); 14 | return dataInfo.Parent.ToString(); 15 | } 16 | 17 | internal static string GetRelativeToProjectRoot(string path) 18 | { 19 | return Path.Combine(GetProjectRoot(), path); 20 | } 21 | 22 | internal static string ReadTextFile(string parentPath, string name) 23 | { 24 | string asset = Path.Combine(parentPath, name); 25 | 26 | if (!File.Exists(asset)) 27 | { 28 | return null; 29 | } 30 | 31 | try 32 | { 33 | using (StreamReader reader = new StreamReader(asset)) 34 | { 35 | return reader.ReadToEnd(); 36 | } 37 | } 38 | catch (Exception e) 39 | { 40 | Debug.Log(e); 41 | return null; 42 | } 43 | } 44 | 45 | internal static void CreateJSONFile(object obj, string parentPath, string name) 46 | { 47 | string objStr = JsonUtility.ToJson(obj, true); 48 | CreateTextFile(objStr, parentPath, name); 49 | } 50 | 51 | internal static void UpdateJSONFile(object obj, string parentPath, string name) 52 | { 53 | CreateJSONFile(obj, parentPath, name); 54 | } 55 | 56 | internal static void CreateTextFile(string str, string parentPath, string name) 57 | { 58 | string asset = Path.Combine(parentPath, name); 59 | StreamWriter writer = new StreamWriter(asset, false); 60 | writer.Write(str); 61 | writer.Close(); 62 | } 63 | 64 | internal static void UpdateTextFile(string str, string parentPath, string name) 65 | { 66 | CreateTextFile(str, parentPath, name); 67 | } 68 | 69 | 70 | internal static string CreateFolder(string parent, string name) 71 | { 72 | 73 | string newFolder = Path.Combine(parent, name); 74 | Directory.CreateDirectory(newFolder); 75 | return newFolder; 76 | } 77 | 78 | internal static void UpdateAssetDatabase() 79 | { 80 | AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport); 81 | } 82 | 83 | internal class AssemblyDefinition 84 | { 85 | public string name; 86 | 87 | public List references = new List(); 88 | 89 | public List includePlatforms = new List(); 90 | 91 | public List excludePlatforms = new List(); 92 | 93 | public List optionalUnityReferences = new List(); 94 | } 95 | 96 | internal static AssemblyDefinition CreateAssemblyFolder(string parentFolder, string folderName, string packageName, bool testFolder, bool editor, List references) 97 | { 98 | string name = packageName + "." + folderName + (testFolder ? ".Tests" : ""); 99 | string folder = AssetDatabaseUtilities.CreateFolder(parentFolder, folderName); 100 | AssemblyDefinition def = new AssemblyDefinition(); 101 | def.name = name; 102 | 103 | if (editor) 104 | { 105 | def.includePlatforms.Add("Editor"); 106 | } 107 | 108 | 109 | if (references != null) 110 | { 111 | def.references.AddRange(references); 112 | } 113 | 114 | if (testFolder) 115 | { 116 | def.optionalUnityReferences.Add("TestAssemblies"); 117 | } 118 | 119 | 120 | AssetDatabaseUtilities.CreateJSONFile(def, folder, def.name + Paths.AssemblyDefinitionExtension); 121 | 122 | string AssemblyDefinition = @" 123 | using System.Reflection; 124 | 125 | [assembly: AssemblyTitle(""" + def.name + @""")] 126 | [assembly: AssemblyProduct(""" + packageName + @""")] 127 | "; 128 | 129 | AssetDatabaseUtilities.CreateTextFile(AssemblyDefinition, folder, "AssemblyInfo.cs"); 130 | 131 | 132 | return def; 133 | } 134 | 135 | public static void CopyDirectory(string sourceDirName, string destDirName, bool copySubDirs) 136 | { 137 | // Get the subdirectories for the specified directory. 138 | DirectoryInfo dir = new DirectoryInfo(sourceDirName); 139 | 140 | if (!dir.Exists) 141 | { 142 | throw new DirectoryNotFoundException( 143 | "Source directory does not exist or could not be found: " 144 | + sourceDirName); 145 | } 146 | 147 | DirectoryInfo[] dirs = dir.GetDirectories(); 148 | // If the destination directory doesn't exist, create it. 149 | if (!Directory.Exists(destDirName)) 150 | { 151 | Directory.CreateDirectory(destDirName); 152 | } 153 | 154 | // Get the files in the directory and copy them to the new location. 155 | FileInfo[] files = dir.GetFiles(); 156 | foreach (FileInfo file in files) 157 | { 158 | string temppath = Path.Combine(destDirName, file.Name); 159 | file.CopyTo(temppath, false); 160 | } 161 | 162 | // If copying subdirectories, copy them and their contents to new location. 163 | if (copySubDirs) 164 | { 165 | foreach (DirectoryInfo subdir in dirs) 166 | { 167 | string temppath = Path.Combine(destDirName, subdir.Name); 168 | CopyDirectory(subdir.FullName, temppath, copySubDirs); 169 | } 170 | } 171 | } 172 | 173 | internal static bool IsValidFolder(string path) 174 | { 175 | return Directory.Exists(path); 176 | } 177 | } 178 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/AssetDatabaseUtilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50634db16aa1fc9c0ab790c0f64c2378 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/CreateGitKeep.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace Halodi.PackageCreator 9 | { 10 | 11 | [InitializeOnLoad] 12 | internal class CreateGitKeep 13 | { 14 | static CreateGitKeep() 15 | { 16 | Create(Application.dataPath); 17 | } 18 | 19 | 20 | internal static void Create(string path) 21 | { 22 | string gitkeep = Path.Combine(path, ".gitkeep"); 23 | if(!File.Exists(gitkeep)) 24 | { 25 | File.AppendAllText(gitkeep, "This file forces git to check-in the required Assets/ directory, even when it is empty. Do not remove."); 26 | File.SetAttributes(gitkeep, FileAttributes.Hidden); 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/CreateGitKeep.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2910453a4ab5ebd47b103c333395fb8f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/EmbedPackageView.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace Halodi.PackageCreator 8 | { 9 | public class EmbedPackageView : EditorWindow 10 | { 11 | private PackageManifest manifest; 12 | 13 | [MenuItem("Assets/Embed Package", false)] 14 | private static void EmbedPackageMenu() 15 | { 16 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, false); 17 | if (manifest != null) 18 | { 19 | EmbedPackage(manifest); 20 | } 21 | 22 | } 23 | 24 | [MenuItem("Assets/Embed Package", true)] 25 | private static bool EmbedPackageMenuValidation() 26 | { 27 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, false); 28 | 29 | if(manifest == null) 30 | { 31 | return false; 32 | } 33 | 34 | // Do not allow embedding already embedded packages 35 | if (manifest.IsEmbedded) 36 | { 37 | return false; 38 | } 39 | 40 | // Check if a VCS URL is set 41 | if (string.IsNullOrEmpty(manifest.repository.type) || string.IsNullOrEmpty(manifest.repository.url)) 42 | { 43 | return false; 44 | } 45 | 46 | // Check if VSC URL is a git url 47 | if (manifest.repository.type != "git") 48 | { 49 | return false; 50 | } 51 | 52 | 53 | 54 | return true; 55 | } 56 | 57 | [MenuItem("Assets/Open package folder", false, 1)] 58 | private static void OpenPackage() 59 | { 60 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, false); 61 | if (manifest != null) 62 | { 63 | EditorUtility.RevealInFinder(Path.Combine(manifest.info.assetPath, Paths.PackageManifest)); 64 | } 65 | 66 | } 67 | 68 | [MenuItem("Assets/Open package folder", true, 1)] 69 | private static bool OpenPackageValidation() 70 | { 71 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, false); 72 | return manifest != null; 73 | } 74 | 75 | void OnGUI() 76 | { 77 | if (manifest != null) 78 | { 79 | EditorGUILayout.LabelField("Display name: " + manifest.displayName); 80 | 81 | manifest.repository.url = EditorGUILayout.TextField("Git repository: ", manifest.repository.url); 82 | 83 | if (GUILayout.Button("Embed")) 84 | { 85 | HalodiPackageCreatorController.EmbedPackageFromGit(manifest); 86 | Exit(); 87 | } 88 | 89 | if (GUILayout.Button("Cancel")) 90 | { 91 | Exit(); 92 | } 93 | 94 | } 95 | 96 | } 97 | private void Exit() 98 | { 99 | Close(); 100 | GUIUtility.ExitGUI(); 101 | } 102 | 103 | internal static void EmbedPackage(PackageManifest package) 104 | { 105 | if (package.IsEmbedded) 106 | { 107 | Debug.LogWarning("Cannot embed already embedded package"); 108 | } 109 | else 110 | { 111 | EmbedPackageView embedView = EditorWindow.GetWindow(true, "Embed package", true); 112 | embedView.manifest = package; 113 | } 114 | 115 | } 116 | } 117 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/EmbedPackageView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1dffd2c65b91e2f8b81d95dd91a90e2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/ExtendedPackagePropertiesUI.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Newtonsoft.Json.Linq; 3 | using UnityEditor; 4 | 5 | namespace Halodi.PackageCreator 6 | { 7 | internal class ExtendedPackagePropertiesUI 8 | { 9 | string[] licenseList = null; 10 | 11 | int licenseIndex = 0; 12 | 13 | RegistrySelector registrySelector = null; 14 | 15 | internal ExtendedPackagePropertiesUI() 16 | { 17 | licenseList = SPDXLicenseList.Load().ToStringArray(); 18 | registrySelector = new RegistrySelector(); 19 | } 20 | 21 | public void Draw(PackageManifest manifest) 22 | { 23 | 24 | manifest.author.name = EditorGUILayout.TextField("Author organization: ", manifest.author.name); 25 | manifest.author.email = EditorGUILayout.TextField("Author email: ", manifest.author.email); 26 | manifest.author.url = EditorGUILayout.TextField("Author website: ", manifest.author.url); 27 | 28 | string selectedLicense = licenseList[licenseIndex]; 29 | if(selectedLicense != manifest.license) 30 | { 31 | licenseIndex = Array.FindIndex(licenseList, x => x == manifest.license); 32 | } 33 | 34 | licenseIndex = EditorGUILayout.Popup("License: ", licenseIndex, licenseList); 35 | 36 | manifest.repository.url = EditorGUILayout.TextField("GIT repository: ", manifest.repository.url); 37 | 38 | EditorGUILayout.LabelField("Publication configuration"); 39 | manifest.publishConfig.registry = registrySelector.SelectRegistry("\t", manifest.publishConfig.registry); 40 | 41 | 42 | 43 | // Set fields in manifest 44 | manifest.license = licenseList[licenseIndex]; 45 | } 46 | 47 | 48 | internal void Store(PackageManifest manifest) 49 | { 50 | JObject manifestJSON = JObject.Parse(HalodiPackageCreatorController.GetPackageManifestObject(manifest).text); 51 | 52 | JObject author = new JObject( 53 | new JProperty("name", manifest.author.name), 54 | new JProperty("email", manifest.author.email), 55 | new JProperty("url", manifest.author.url)); 56 | 57 | manifestJSON["author"] = author; 58 | 59 | 60 | manifestJSON["license"] = manifest.license; 61 | 62 | JObject publicationConfig = new JObject( 63 | new JProperty("registry", manifest.publishConfig.registry) 64 | ); 65 | 66 | manifestJSON["publishConfig"] = publicationConfig; 67 | 68 | 69 | if(string.IsNullOrWhiteSpace(manifest.repository.url)) 70 | { 71 | manifest.repository.type = ""; 72 | } 73 | else 74 | { 75 | manifest.repository.type = "git"; 76 | } 77 | 78 | JObject repo = new JObject( 79 | new JProperty("type", manifest.repository.type), 80 | new JProperty("url", manifest.repository.url) 81 | ); 82 | manifestJSON["repository"] = repo; 83 | 84 | 85 | 86 | AssetDatabaseUtilities.CreateTextFile(manifestJSON.ToString(), HalodiPackageCreatorController.GetPackageDirectory(manifest), Paths.PackageManifest); 87 | AssetDatabaseUtilities.UpdateAssetDatabase(); 88 | 89 | 90 | } 91 | } 92 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/ExtendedPackagePropertiesUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bde9d19efe985ac2696e7c29672fe64a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiAddSampleView.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace Halodi.PackageCreator 6 | { 7 | internal class HalodiAddSampleView : EditorWindow 8 | { 9 | PackageManifest.Sample sample = null; 10 | PackageManifest manifest = null; 11 | 12 | void OnEnable() 13 | { 14 | sample = new PackageManifest.Sample(); 15 | } 16 | 17 | void OnDisable() 18 | { 19 | manifest = null; 20 | } 21 | 22 | void OnGUI() 23 | { 24 | if(manifest != null) 25 | { 26 | EditorGUILayout.LabelField("New sample for " + manifest.displayName); 27 | sample.displayName = EditorGUILayout.TextField("Display name: ", sample.displayName); 28 | sample.description = EditorGUILayout.TextField("Description: ", sample.description); 29 | sample.path = EditorGUILayout.TextField("Path: ", sample.path); 30 | 31 | if (GUILayout.Button("Create")) 32 | { 33 | OnClickCreate(); 34 | } 35 | 36 | if (GUILayout.Button("Cancel")) 37 | { 38 | Close(); 39 | GUIUtility.ExitGUI(); 40 | } 41 | } 42 | 43 | } 44 | 45 | private void OnClickCreate() 46 | { 47 | if(!HalodiNewPackageController.ValidateFolderName(sample.path)) 48 | { 49 | EditorUtility.DisplayDialog("Invalid sample path", "Please specify a valid sample paths. Valid sample paths start with a letter, and only contains letters, numbers, underscores and hyphens.", "Close"); 50 | return; 51 | } 52 | 53 | if(sample.displayName.Length == 0) 54 | { 55 | EditorUtility.DisplayDialog("Invalid display name", "Please specify a display name.", "Close"); 56 | return; 57 | } 58 | 59 | sample.path = Paths.PackageSamplesFolder + "/" + sample.path; // No paths.combine, written to file in specific format with slash 60 | 61 | HalodiPackageCreatorController.AddSample(manifest, sample); 62 | 63 | Close(); 64 | GUIUtility.ExitGUI(); 65 | } 66 | 67 | public static void AddSample(PackageManifest package) 68 | { 69 | HalodiAddSampleView addSampleView = EditorWindow.GetWindow(true, "Add sample", true); 70 | addSampleView.manifest = package; 71 | } 72 | } 73 | 74 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiAddSampleView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecb3f7adfcf46a5f4a917922ff556118 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiEditPackageView.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace Halodi.PackageCreator 8 | { 9 | internal class HalodiEditPackageView : EditorWindow 10 | { 11 | [MenuItem("Assets/Edit Package")] 12 | private static void EditPackageMenu() 13 | { 14 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, true); 15 | if (manifest != null) 16 | { 17 | EditPackage(manifest); 18 | } 19 | 20 | } 21 | 22 | [MenuItem("Assets/Edit Package", true)] 23 | private static bool EditPackageMenuValidation() 24 | { 25 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, true); 26 | return manifest != null; 27 | } 28 | 29 | 30 | 31 | private ExtendedPackagePropertiesUI extendedUI; 32 | private PackageManifest manifest; 33 | 34 | void OnEnable() 35 | { 36 | extendedUI = new ExtendedPackagePropertiesUI(); 37 | 38 | } 39 | 40 | void OnDisable() 41 | { 42 | } 43 | 44 | 45 | 46 | void OnGUI() 47 | { 48 | if (manifest != null) 49 | { 50 | EditorGUILayout.LabelField("Display name: " + manifest.displayName); 51 | 52 | extendedUI.Draw(manifest); 53 | 54 | if (GUILayout.Button("Show in Inspector")) 55 | { 56 | OnClickInspector(); 57 | } 58 | 59 | if (GUILayout.Button("Apply")) 60 | { 61 | OnClickUpdate(); 62 | } 63 | 64 | if (GUILayout.Button("Cancel")) 65 | { 66 | Exit(); 67 | } 68 | 69 | } 70 | 71 | } 72 | 73 | private void OnClickInspector() 74 | { 75 | Selection.activeObject = manifest.asset; 76 | Exit(); 77 | } 78 | 79 | private void Exit() 80 | { 81 | Close(); 82 | GUIUtility.ExitGUI(); 83 | } 84 | 85 | private void OnClickUpdate() 86 | { 87 | extendedUI.Store(manifest); 88 | OnClickInspector(); 89 | } 90 | 91 | internal static void EditPackage(PackageManifest package) 92 | { 93 | HalodiEditPackageView editView = EditorWindow.GetWindow(true, "Edit package", true); 94 | editView.manifest = package; 95 | 96 | } 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiEditPackageView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70d383ece7cc56614b6a2d3313ab13ec 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiNewPackageController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Text.RegularExpressions; 6 | using UnityEditor; 7 | using UnityEngine; 8 | using static Halodi.PackageCreator.AssetDatabaseUtilities; 9 | using System.Text; 10 | using Artees.UnitySemVer; 11 | 12 | namespace Halodi.PackageCreator 13 | { 14 | 15 | 16 | internal class HalodiNewPackageController 17 | { 18 | 19 | private static string CreateReadme(PackageManifest manifest) 20 | { 21 | StringBuilder builder = new StringBuilder(); 22 | builder.Append("# "); builder.AppendLine(manifest.displayName); 23 | 24 | builder.AppendLine(); 25 | 26 | builder.AppendLine(manifest.description); 27 | 28 | return builder.ToString(); 29 | } 30 | 31 | private static string CreateChangelog(PackageManifest manifest) 32 | { 33 | StringBuilder builder = new StringBuilder(); 34 | builder.AppendLine("# ChangeLog"); 35 | builder.AppendLine(); 36 | builder.AppendLine(); 37 | 38 | 39 | builder.Append("## "); builder.Append(manifest.version); builder.Append(" - "); builder.AppendLine(DateTime.Now.ToString("yyyy-MM-dd")); 40 | builder.Append("- Package created"); 41 | 42 | return builder.ToString(); 43 | } 44 | 45 | private static string CreateLicense(PackageManifest manifest) 46 | { 47 | StringBuilder builder = new StringBuilder(); 48 | builder.AppendLine("# License"); 49 | builder.AppendLine(); 50 | builder.Append("Copyright (C) "); builder.AppendLine(DateTime.Now.ToString("yyyy")); 51 | builder.AppendLine(); 52 | builder.Append(manifest.displayName); builder.AppendLine(" can not be copied and/or distributed without the express permission of the author(s)."); 53 | return builder.ToString(); 54 | } 55 | 56 | internal static void CreatePackage(PackageManifest manifest) 57 | { 58 | manifest.OnBeforeSerialize(); 59 | 60 | try 61 | { 62 | AssetDatabase.StartAssetEditing(); 63 | string PackageFolderName = manifest.package_name; 64 | string packageFolder = AssetDatabaseUtilities.CreateFolder(AssetDatabaseUtilities.GetRelativeToProjectRoot(Paths.PackagesFolder), PackageFolderName); 65 | 66 | 67 | AssemblyDefinition runtime = AssetDatabaseUtilities.CreateAssemblyFolder(packageFolder, Paths.RuntimeFolder, manifest.name, false, false, null); 68 | AssemblyDefinition editor = AssetDatabaseUtilities.CreateAssemblyFolder(packageFolder, Paths.EditorFolder, manifest.name, false, true, new List{ runtime.name }); 69 | 70 | string testFolder = AssetDatabaseUtilities.CreateFolder(packageFolder, Paths.TestFolder); 71 | 72 | 73 | AssemblyDefinition runtimeTests = AssetDatabaseUtilities.CreateAssemblyFolder(testFolder, Paths.RuntimeFolder, manifest.name, true, false, new List { runtime.name }); 74 | AssetDatabaseUtilities.CreateAssemblyFolder(testFolder, Paths.EditorFolder, manifest.name, true, true, new List { runtime.name, editor.name }); 75 | 76 | 77 | AssetDatabaseUtilities.CreateJSONFile(manifest, packageFolder, Paths.PackageManifest); 78 | AssetDatabaseUtilities.CreateTextFile(CreateReadme(manifest), packageFolder, Paths.Readme); 79 | AssetDatabaseUtilities.CreateTextFile(CreateLicense(manifest), packageFolder, Paths.License); 80 | AssetDatabaseUtilities.CreateTextFile(CreateChangelog(manifest), packageFolder, Paths.Changelog); 81 | 82 | } 83 | finally 84 | { 85 | AssetDatabase.StopAssetEditing(); 86 | AssetDatabaseUtilities.UpdateAssetDatabase(); 87 | } 88 | 89 | 90 | } 91 | 92 | internal static bool ValidateVersion(string version) 93 | { 94 | SemVer currentVersion = SemVer.Parse(version); 95 | SemVerValidationResult valid = currentVersion.Validate(); 96 | 97 | if(valid.IsValid) 98 | { 99 | return valid.Corrected.ToString() == version; 100 | } 101 | else 102 | { 103 | return false; 104 | } 105 | } 106 | 107 | internal static bool ValidateName(string name) 108 | { 109 | if(name.Trim().Length == 0) 110 | { 111 | return false; 112 | } 113 | 114 | return Regex.IsMatch(name, @"^[a-z][a-z0-9_\-]*$"); 115 | } 116 | 117 | internal static bool ValidateFolderName(string name) 118 | { 119 | if(name.Trim().Length == 0) 120 | { 121 | return false; 122 | } 123 | 124 | return Regex.IsMatch(name, @"^[a-zA-Z][a-zA-Z0-9_\-\ ]*$"); 125 | } 126 | 127 | 128 | internal static bool ValidateNameSpace(string name) 129 | { 130 | return Regex.IsMatch(name, @"^[a-z][a-z0-9_\-\.]*[a-z0-9]$"); 131 | } 132 | 133 | internal static bool PackageExists(string name) 134 | { 135 | return AssetDatabaseUtilities.IsValidFolder(Path.Combine(Paths.PackagesFolder, name)); 136 | } 137 | 138 | } 139 | 140 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiNewPackageController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38a66383288df857eaf07f302c130de2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiNewPackageView.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace Halodi.PackageCreator 6 | { 7 | internal class HalodiNewPackageView : EditorWindow 8 | { 9 | private ExtendedPackagePropertiesUI extendedUI; 10 | PackageManifest manifest = null; 11 | 12 | void OnEnable() 13 | { 14 | 15 | extendedUI = new ExtendedPackagePropertiesUI(); 16 | manifest = new PackageManifest(); 17 | } 18 | 19 | void OnDisable() 20 | { 21 | } 22 | 23 | void OnGUI() 24 | { 25 | if(manifest != null) 26 | { 27 | EditorGUILayout.LabelField("Package Configuration"); 28 | manifest.name_space = EditorGUILayout.TextField("Namespace: ", manifest.name_space); 29 | manifest.package_name = EditorGUILayout.TextField("Name: ", manifest.package_name); 30 | manifest.version = EditorGUILayout.TextField("Version: ", manifest.version); 31 | manifest.displayName = EditorGUILayout.TextField("Display name: ", manifest.displayName); 32 | 33 | EditorGUILayout.LabelField("Description"); 34 | manifest.description = EditorGUILayout.TextArea(manifest.description, GUILayout.Height(EditorGUIUtility.singleLineHeight * 5)); 35 | 36 | extendedUI.Draw(manifest); 37 | 38 | if (GUILayout.Button("Create")) 39 | { 40 | OnClickCreate(); 41 | } 42 | 43 | if (GUILayout.Button("Cancel")) 44 | { 45 | Close(); 46 | GUIUtility.ExitGUI(); 47 | } 48 | } 49 | } 50 | 51 | void OnClickCreate() 52 | { 53 | manifest.name_space = manifest.name_space.Trim(); 54 | manifest.package_name = manifest.package_name.Trim(); 55 | 56 | if (!HalodiNewPackageController.ValidateName(manifest.package_name)) 57 | { 58 | EditorUtility.DisplayDialog("Invalid package name", "Please specify a valid name for the package. Valid names start with a letter, and only contains letters, numbers, underscores and hyphens.", "Close"); 59 | return; 60 | } 61 | else if(!HalodiNewPackageController.ValidateNameSpace(manifest.name_space) ) 62 | { 63 | EditorUtility.DisplayDialog("Invalid namespace", "Please specify a valid namespace for the package. Valid namespaces start and end with a letter, and only contains letters, numbers, underscores, hyphens and dots as separation characters.", "Close"); 64 | return; 65 | 66 | } 67 | else if (!HalodiNewPackageController.ValidateVersion(manifest.version)) 68 | { 69 | EditorUtility.DisplayDialog("Invalid version", "Version needs to be in the format MAJOR.MINOR.PATCH, with only numeric values allowed.", "Close"); 70 | return; 71 | } 72 | else if (manifest.displayName.Trim().Length == 0) 73 | { 74 | EditorUtility.DisplayDialog("No display name set", "No display name for " + manifest.package_name + " set. Please provide a display name", "Close"); 75 | return; 76 | } 77 | else if(HalodiNewPackageController.PackageExists(manifest.package_name)) 78 | { 79 | EditorUtility.DisplayDialog("Package already exists", "A package named " + manifest.package_name + " already exists. Please choose another name.", "Close"); 80 | return; 81 | } 82 | else 83 | { 84 | 85 | EditorUtility.DisplayProgressBar("Creating package", "Creating new package " + manifest.displayName, 0.5f); 86 | 87 | 88 | try 89 | { 90 | HalodiNewPackageController.CreatePackage(manifest); 91 | } 92 | catch(System.Exception e) 93 | { 94 | Debug.LogError(e); 95 | } 96 | EditorUtility.ClearProgressBar(); 97 | 98 | UnityEngine.Object instance = HalodiPackageCreatorController.GetPackageManifestObject(manifest); 99 | Selection.activeObject = instance; 100 | 101 | Close(); 102 | GUIUtility.ExitGUI(); 103 | } 104 | } 105 | 106 | 107 | internal static void ShowWindow() 108 | { 109 | EditorWindow.GetWindow(true, "Create new package", true); 110 | } 111 | 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiNewPackageView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9507f0dcbbd1ba83bda28721bf9d523 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiPackageCreatorController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using Newtonsoft.Json.Linq; 5 | using UnityEditor; 6 | using UnityEditor.PackageManager.Requests; 7 | using UnityEngine; 8 | 9 | namespace Halodi.PackageCreator 10 | { 11 | internal class HalodiPackageCreatorController 12 | { 13 | 14 | public delegate void PackagesLoaded(List manifest); 15 | 16 | internal static void LoadPackages(PackagesLoaded callback, UnityEditor.PackageManager.PackageSource? source = null) 17 | { 18 | ListRequest request = UnityEditor.PackageManager.Client.List(true, false); 19 | LoadPackagesUpdate(request, callback, source); 20 | 21 | } 22 | 23 | private static void LoadPackagesUpdate(ListRequest request, PackagesLoaded callback, UnityEditor.PackageManager.PackageSource? source) 24 | { 25 | if (request.IsCompleted) 26 | { 27 | List packages = new List(); 28 | foreach (var package in request.Result) 29 | { 30 | try 31 | { 32 | if (source.HasValue) 33 | { 34 | if (package.source != source.Value) 35 | { 36 | continue; 37 | } 38 | } 39 | 40 | PackageManifest manifest = new PackageManifest(package); 41 | packages.Add(manifest); 42 | } 43 | catch 44 | { 45 | Debug.LogWarning("Cannot load manifest for package " + package.name); 46 | 47 | } 48 | } 49 | 50 | callback(packages); 51 | } 52 | else 53 | { 54 | EditorApplication.delayCall += () => LoadPackagesUpdate(request, callback, source); 55 | } 56 | } 57 | 58 | 59 | 60 | internal static void EmbedPackageFromGit(PackageManifest manifest) 61 | { 62 | string targetDirectory = Path.Combine(AssetDatabaseUtilities.GetRelativeToProjectRoot(Paths.PackagesFolder), manifest.package_name); 63 | 64 | if(File.Exists(targetDirectory)) 65 | { 66 | Debug.LogWarning("Package directory " + targetDirectory + " already exists"); 67 | return; 68 | } 69 | 70 | string gitCommand = "clone \"" + manifest.repository.url + "\"" + " " + "\"" + targetDirectory + "\""; 71 | try 72 | { 73 | System.Diagnostics.Process process = new System.Diagnostics.Process(); 74 | process.StartInfo.UseShellExecute = false; 75 | process.StartInfo.FileName = "git"; 76 | process.StartInfo.Arguments = gitCommand; 77 | process.StartInfo.RedirectStandardOutput = true; 78 | process.StartInfo.RedirectStandardError = true; 79 | 80 | process.OutputDataReceived += StdOut; 81 | process.ErrorDataReceived += StdErr; 82 | 83 | 84 | process.Start(); 85 | process.BeginOutputReadLine(); 86 | process.BeginErrorReadLine(); 87 | 88 | EditorApplication.delayCall += () => EmbedPackageProgress(process, manifest); 89 | } 90 | catch (Exception e) 91 | { 92 | Debug.Log("Cannot find git executable: " + e.Message); 93 | } 94 | } 95 | 96 | private static void EmbedPackageProgress(System.Diagnostics.Process process, PackageManifest manifest) 97 | { 98 | if(process.HasExited) 99 | { 100 | EditorUtility.ClearProgressBar(); 101 | Debug.Log("Git clone finished with exit code " + process.ExitCode); 102 | process.Dispose(); 103 | } 104 | else 105 | { 106 | EditorUtility.DisplayProgressBar("Cloning " + manifest.name, "Cloning " + manifest.name, 0.5f); 107 | EditorApplication.delayCall += () => EmbedPackageProgress(process, manifest); 108 | } 109 | } 110 | 111 | private static void StdErr(object sender, System.Diagnostics.DataReceivedEventArgs e) 112 | { 113 | if(!string.IsNullOrEmpty(e.Data)) 114 | { 115 | Debug.LogWarning(sender + " " + e.Data); 116 | } 117 | } 118 | 119 | private static void StdOut(object sender, System.Diagnostics.DataReceivedEventArgs e) 120 | { 121 | if(!string.IsNullOrEmpty(e.Data)) 122 | { 123 | Debug.Log(sender + " " + e.Data); 124 | } 125 | } 126 | 127 | 128 | /// 129 | /// Get the package manifest for this object, or null if not in a package 130 | /// 131 | /// 132 | /// 133 | internal static PackageManifest GetPackageManifest(UnityEngine.Object obj, bool onlyEmbedded) 134 | { 135 | if(obj == null) 136 | { 137 | return null; 138 | } 139 | 140 | string selectedPath = AssetDatabase.GetAssetPath(obj); 141 | if(String.IsNullOrEmpty(selectedPath)) 142 | { 143 | return null; 144 | } 145 | var info = UnityEditor.PackageManager.PackageInfo.FindForAssetPath(selectedPath); 146 | 147 | if (info == null) 148 | { 149 | return null; 150 | } 151 | 152 | if (onlyEmbedded) 153 | { 154 | if (info.source != UnityEditor.PackageManager.PackageSource.Embedded) 155 | { 156 | return null; 157 | } 158 | } 159 | 160 | try 161 | { 162 | return new PackageManifest(info); 163 | } 164 | catch 165 | { 166 | Debug.LogWarning("Cannot load manifest for " + info.name); 167 | return null; 168 | } 169 | 170 | 171 | } 172 | 173 | internal static TextAsset GetPackageManifestObject(PackageManifest manifest) 174 | { 175 | return manifest.asset; 176 | } 177 | 178 | internal static string GetPackageDirectory(PackageManifest manifest) 179 | { 180 | return manifest.filesystem_location; 181 | } 182 | 183 | private static string GetAssetDirectory(PackageManifest manifest) 184 | { 185 | string assetFolder = Application.dataPath; 186 | string packageFolderName = new DirectoryInfo(manifest.filesystem_location).Name; 187 | 188 | return Path.Combine(assetFolder, packageFolderName); 189 | } 190 | 191 | internal static string GetAssetsSampleDirectory(PackageManifest manifest) 192 | { 193 | return Path.Combine(GetAssetDirectory(manifest), Paths.AssetsSamplesFolder); 194 | } 195 | 196 | 197 | 198 | internal static void AddSample(PackageManifest manifest, PackageManifest.Sample sample) 199 | { 200 | 201 | string assetDirectory = GetAssetDirectory(manifest); 202 | string samplesDirectory = GetAssetsSampleDirectory(manifest); 203 | 204 | if (!sample.path.StartsWith(Paths.PackageSamplesFolder + "/")) 205 | { 206 | throw new System.Exception("Invalid sample directory"); 207 | } 208 | 209 | 210 | Directory.CreateDirectory(samplesDirectory); 211 | 212 | string sampleFolderName = sample.path.Substring(Paths.PackageSamplesFolder.Length + 1); 213 | string sampleFolder = Path.Combine(samplesDirectory, sampleFolderName); 214 | 215 | Directory.CreateDirectory(sampleFolder); 216 | CreateGitKeep.Create(sampleFolder); 217 | 218 | 219 | 220 | JObject manifestJSON = JObject.Parse(GetPackageManifestObject(manifest).text); 221 | 222 | var samplesJSON = (JArray)manifestJSON["samples"]; 223 | 224 | 225 | JObject next = new JObject( 226 | new JProperty("displayName", sample.displayName), 227 | new JProperty("description", sample.description), 228 | new JProperty("path", sample.path)); 229 | 230 | samplesJSON.Add(next); 231 | 232 | 233 | AssetDatabaseUtilities.CreateTextFile(manifestJSON.ToString(), GetPackageDirectory(manifest), Paths.PackageManifest); 234 | AssetDatabaseUtilities.UpdateAssetDatabase(); 235 | } 236 | 237 | 238 | } 239 | } 240 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiPackageCreatorController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dd649bd1c28a41db9cbec56aaebc8ba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiPackageCreatorView.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace Halodi.PackageCreator 7 | { 8 | internal class HalodiPackageCreatorView : EditorWindow 9 | { 10 | List packages = new List(); 11 | Vector2 scrollPos; 12 | 13 | private bool useGroupVersion; 14 | private string groupVersion; 15 | 16 | [MenuItem("Packages/Manage packages in project", false, 0)] 17 | internal static void EditPackageConfiguration() 18 | { 19 | HalodiPackageCreatorView.ShowWindow(); 20 | } 21 | 22 | void OnEnable() 23 | { 24 | HalodiPackageCreatorController.LoadPackages((p) => packages = p, UnityEditor.PackageManager.PackageSource.Embedded); 25 | minSize = new Vector2(640, 320); 26 | 27 | useGroupVersion = PackageGroupConfiguration.IsUseGroupVersion(); 28 | if(useGroupVersion) 29 | { 30 | groupVersion = PackageGroupConfiguration.GetGroupVersion(); 31 | } 32 | else 33 | { 34 | groupVersion = "0.0.0"; 35 | } 36 | } 37 | 38 | void OnDisable() 39 | { 40 | } 41 | 42 | void OnGUI() 43 | { 44 | EditorGUILayout.LabelField("Packages in this project", EditorStyles.whiteLargeLabel); 45 | 46 | EditorGUILayout.Space(); 47 | 48 | EditorGUI.BeginChangeCheck(); 49 | useGroupVersion = EditorGUILayout.ToggleLeft("Use common version for all packages in this project", useGroupVersion); 50 | 51 | if(EditorGUI.EndChangeCheck()) 52 | { 53 | if(!useGroupVersion) 54 | { 55 | PackageGroupConfiguration.UnsetGroupVersion(); 56 | } 57 | } 58 | 59 | 60 | if(useGroupVersion) 61 | { 62 | EditorGUILayout.BeginHorizontal(); 63 | groupVersion = EditorGUILayout.TextField("Group version: ", groupVersion); 64 | if(GUILayout.Button("Apply")) 65 | { 66 | ApplyGroupVersion(); 67 | } 68 | EditorGUILayout.EndHorizontal(); 69 | } 70 | 71 | 72 | EditorGUILayout.Space(); 73 | 74 | scrollPos = EditorGUILayout.BeginScrollView(scrollPos); 75 | 76 | 77 | foreach (PackageManifest package in packages) 78 | { 79 | GUIStyle boxStyle = new GUIStyle(); 80 | boxStyle.padding = new RectOffset(10, 10, 0, 0); 81 | 82 | EditorGUILayout.BeginHorizontal(boxStyle); 83 | EditorGUILayout.LabelField(package.displayName); 84 | if(GUILayout.Button("Edit")) 85 | { 86 | EditPackage(package); 87 | } 88 | if(GUILayout.Button("Add sample")) 89 | { 90 | AddSample(package); 91 | } 92 | if(GUILayout.Button("Pack")) 93 | { 94 | Pack(package); 95 | } 96 | 97 | EditorGUILayout.EndHorizontal(); 98 | } 99 | 100 | EditorGUILayout.EndScrollView(); 101 | 102 | EditorGUILayout.BeginHorizontal(); 103 | if( GUILayout.Button("Publish")) 104 | { 105 | PublishPackages(); 106 | } 107 | 108 | if (GUILayout.Button("New package")) 109 | { 110 | NewPackage(); 111 | } 112 | 113 | if (GUILayout.Button("Close")) 114 | { 115 | CloseWindow(); 116 | } 117 | EditorGUILayout.EndHorizontal(); 118 | } 119 | 120 | private void ApplyGroupVersion() 121 | { 122 | 123 | if(PackageGroupConfiguration.IsValidVersion(groupVersion)) 124 | { 125 | PackageGroupConfiguration.SetGroupVersion(groupVersion); 126 | } 127 | else 128 | { 129 | EditorUtility.DisplayDialog("Invalid version", "Version is not a semantic version (major.minor.patch).", "OK"); 130 | if(PackageGroupConfiguration.IsUseGroupVersion()) 131 | { 132 | groupVersion = PackageGroupConfiguration.GetGroupVersion(); 133 | } 134 | else 135 | { 136 | groupVersion = "0.0.0"; 137 | } 138 | } 139 | } 140 | 141 | 142 | private void PublishPackages() 143 | { 144 | PublicationView.PublishPackages(); 145 | CloseWindow(); 146 | } 147 | 148 | private void SelectPackage(PackageManifest package) 149 | { 150 | UnityEngine.Object instance = HalodiPackageCreatorController.GetPackageManifestObject(package); 151 | Selection.activeObject = instance; 152 | CloseWindow(); 153 | } 154 | 155 | 156 | private void EditPackage(PackageManifest package) 157 | { 158 | HalodiEditPackageView.EditPackage(package); 159 | SelectPackage(package); 160 | } 161 | 162 | 163 | private void AddSample(PackageManifest package) 164 | { 165 | 166 | HalodiAddSampleView.AddSample(package); 167 | CloseWindow(); 168 | } 169 | 170 | private void Pack(PackageManifest package) 171 | { 172 | PublicationController.Pack(package); 173 | } 174 | 175 | private void CloseWindow() 176 | { 177 | Close(); 178 | GUIUtility.ExitGUI(); 179 | } 180 | 181 | private void NewPackage() 182 | { 183 | HalodiNewPackageView.ShowWindow(); 184 | CloseWindow(); 185 | } 186 | 187 | internal static void ShowWindow() 188 | { 189 | EditorWindow.GetWindow(true, "Halodi package creator", true); 190 | } 191 | 192 | } 193 | } 194 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/HalodiPackageCreatorView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df4ae03d7d867d652b829e64be7be588 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PackageGroupConfiguration.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.IO; 3 | using System.Text.RegularExpressions; 4 | using UnityEngine; 5 | 6 | namespace Halodi.PackageCreator 7 | { 8 | 9 | [System.Serializable] 10 | internal class PackageGroupConfigurationDescription 11 | { 12 | public bool useGroupVersion; 13 | public string groupVersion; 14 | } 15 | 16 | internal class PackageGroupConfiguration 17 | { 18 | 19 | private const string CommonConfig = "package-group.json"; 20 | 21 | 22 | internal static bool IsValidVersion(string version) 23 | { 24 | return HalodiNewPackageController.ValidateVersion(version); 25 | } 26 | 27 | private static string GetGroupConfigFile() 28 | { 29 | return Path.Combine(AssetDatabaseUtilities.GetRelativeToProjectRoot(Paths.PackagesFolder), CommonConfig); 30 | } 31 | 32 | private static bool HasPackageGroupConfig() 33 | { 34 | return File.Exists(GetGroupConfigFile()); 35 | } 36 | 37 | internal static bool IsUseGroupVersion() 38 | { 39 | if (HasPackageGroupConfig()) 40 | { 41 | return JsonUtility.FromJson(File.ReadAllText(GetGroupConfigFile())).useGroupVersion; 42 | } 43 | else 44 | { 45 | return false; 46 | } 47 | } 48 | 49 | internal static string GetGroupVersion() 50 | { 51 | if (HasPackageGroupConfig()) 52 | { 53 | return JsonUtility.FromJson(File.ReadAllText(GetGroupConfigFile())).groupVersion; 54 | } 55 | 56 | throw new System.IO.IOException("Cannot find " + CommonConfig); 57 | } 58 | 59 | internal static void SetGroupVersion(string version) 60 | { 61 | if(!IsValidVersion(version)) 62 | { 63 | throw new System.Exception("Invalid semantic version (major.minor.patch) format"); 64 | } 65 | 66 | PackageGroupConfigurationDescription desc = new PackageGroupConfigurationDescription(); 67 | desc.groupVersion = version; 68 | desc.useGroupVersion = true; 69 | 70 | File.WriteAllText(GetGroupConfigFile(), JsonUtility.ToJson(desc)); 71 | 72 | VersionMaintainer.UpdateVersionInformation(true); 73 | } 74 | 75 | internal static void UnsetGroupVersion() 76 | { 77 | 78 | if(HasPackageGroupConfig()) 79 | { 80 | PackageGroupConfigurationDescription desc = new PackageGroupConfigurationDescription(); 81 | desc.groupVersion = GetGroupVersion(); 82 | desc.useGroupVersion = false; 83 | File.WriteAllText(GetGroupConfigFile(), JsonUtility.ToJson(desc)); 84 | } 85 | 86 | 87 | } 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PackageGroupConfiguration.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51a8bf19cb116e56d9f858fb97aa77a0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PackageManifest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace Halodi.PackageCreator 8 | { 9 | 10 | 11 | [System.Serializable] 12 | internal class PackageManifest 13 | { 14 | 15 | public PackageManifest() 16 | { 17 | 18 | } 19 | 20 | public PackageManifest(UnityEditor.PackageManager.PackageInfo info) 21 | { 22 | this.info = info; 23 | var location = Path.Combine(info.assetPath, Paths.PackageManifest); 24 | asset = AssetDatabase.LoadAssetAtPath(location); 25 | 26 | if(asset == null) 27 | { 28 | throw new System.Exception("Cannot load asset at path " + location); 29 | } 30 | 31 | JsonUtility.FromJsonOverwrite(asset.text, this); 32 | OnAfterDeserialize(); 33 | filesystem_location = info.resolvedPath; 34 | } 35 | 36 | [System.Serializable] 37 | public class PublishConfig 38 | { 39 | public string registry = ""; 40 | } 41 | 42 | [System.Serializable] 43 | public class Sample 44 | { 45 | public string displayName = ""; 46 | public string description = ""; 47 | public string path = ""; 48 | } 49 | 50 | [System.Serializable] 51 | public class Author 52 | { 53 | public string name = ""; 54 | public string email = ""; 55 | public string url = ""; 56 | } 57 | 58 | [System.Serializable] 59 | public class Repository 60 | { 61 | public string type = ""; 62 | public string url = ""; 63 | } 64 | 65 | [NonSerialized] 66 | public UnityEditor.PackageManager.PackageInfo info; 67 | 68 | [NonSerialized] 69 | public TextAsset asset; 70 | 71 | public bool IsEmbedded => info.source == UnityEditor.PackageManager.PackageSource.Embedded; 72 | 73 | [NonSerialized] 74 | public string filesystem_location; 75 | 76 | [NonSerialized] 77 | public string name_space = "com.halodi"; 78 | 79 | [NonSerialized] 80 | public string package_name = ""; 81 | 82 | public string name; 83 | public string version = "0.0.1"; 84 | 85 | public string displayName = ""; 86 | 87 | public string description = ""; 88 | 89 | public string license = "proprietary"; 90 | 91 | public PublishConfig publishConfig = new PublishConfig(); 92 | 93 | public List samples = null; 94 | 95 | public Author author = new Author(); 96 | 97 | public Repository repository = new Repository(); 98 | 99 | 100 | public bool hideInEditor = false; 101 | 102 | public void OnBeforeSerialize() 103 | { 104 | name = name_space + "." + package_name; 105 | 106 | if(publishConfig != null) 107 | { 108 | if(string.IsNullOrEmpty(publishConfig.registry)) 109 | { 110 | publishConfig = null; 111 | } 112 | 113 | } 114 | } 115 | 116 | public void OnAfterDeserialize() 117 | { 118 | package_name = name.Substring(name.LastIndexOf(".") + 1); 119 | name_space = name.Substring(0, name.LastIndexOf(".")); 120 | } 121 | } 122 | 123 | 124 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PackageManifest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0db4bf8e0de6193e682c240a75632f11 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/Paths.cs: -------------------------------------------------------------------------------- 1 | namespace Halodi.PackageCreator 2 | { 3 | 4 | internal class Paths 5 | { 6 | public static string PackageManifest = "package.json"; 7 | 8 | public static string ProjectManifest = "manifest.json"; 9 | 10 | public static string Readme = "README.md"; 11 | 12 | public static string Changelog = "CHANGELOG.md"; 13 | public static string License = "LICENSE.md"; 14 | 15 | public static string PackagesFolder = "Packages"; 16 | 17 | public static string RuntimeFolder = "Runtime"; 18 | public static string EditorFolder = "Editor"; 19 | 20 | public static string PackageSamplesFolder = "Samples~"; 21 | 22 | public static string AssetsSamplesFolder = "Samples"; 23 | 24 | public static string AssemblyDefinitionExtension = ".asmdef"; 25 | 26 | public static string TestFolder = "Tests"; 27 | 28 | public static string TestPackageNamePostfix = ".Tests"; 29 | } 30 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/Paths.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27a556320275aeb49aafa0df15b2acd7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PublicationController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using Halodi.PackageRegistry.Core; 4 | using Halodi.PackageRegistry.NPM; 5 | using UnityEditor; 6 | 7 | 8 | namespace Halodi.PackageCreator 9 | { 10 | internal class PublicationController 11 | { 12 | 13 | 14 | 15 | internal static void CopySamples(PackageManifest manifest) 16 | { 17 | string AssetSampleDirectory = HalodiPackageCreatorController.GetAssetsSampleDirectory(manifest); 18 | 19 | if (Directory.Exists(AssetSampleDirectory)) 20 | { 21 | EmptySamplesDirectory(manifest); 22 | string SamplesDirectory = Path.Combine(HalodiPackageCreatorController.GetPackageDirectory(manifest), Paths.PackageSamplesFolder); 23 | AssetDatabaseUtilities.CopyDirectory(HalodiPackageCreatorController.GetAssetsSampleDirectory(manifest), SamplesDirectory, true); 24 | } 25 | 26 | } 27 | 28 | 29 | internal static void EmptySamplesDirectory(PackageManifest manifest) 30 | { 31 | DirectoryInfo SamplesDirectory = new DirectoryInfo(Path.Combine(HalodiPackageCreatorController.GetPackageDirectory(manifest), Paths.PackageSamplesFolder)); 32 | if (SamplesDirectory.Exists) 33 | { 34 | SamplesDirectory.Delete(true); 35 | } 36 | 37 | 38 | 39 | } 40 | 41 | 42 | 43 | internal static void Publish(PackageManifest manifest, string registry) 44 | { 45 | try 46 | { 47 | CopySamples(manifest); 48 | 49 | manifest.OnAfterDeserialize(); 50 | string PackageFolder = Path.Combine(AssetDatabaseUtilities.GetRelativeToProjectRoot(Paths.PackagesFolder), manifest.package_name); 51 | 52 | NPMPublish.Publish(PackageFolder, registry); 53 | } 54 | finally 55 | { 56 | EmptySamplesDirectory(manifest); 57 | } 58 | } 59 | 60 | 61 | internal static void Pack(PackageManifest manifest) 62 | { 63 | try 64 | { 65 | // Make sure the version information is updated before publishing 66 | VersionMaintainer.UpdateVersionInformation(true); 67 | 68 | CopySamples(manifest); 69 | manifest.OnAfterDeserialize(); 70 | string packageFolder = Path.Combine(AssetDatabaseUtilities.GetRelativeToProjectRoot(Paths.PackagesFolder), manifest.package_name); 71 | 72 | 73 | string folder = FileUtil.GetUniqueTempPathInProject(); 74 | 75 | 76 | try 77 | { 78 | string tarballPath = PackageTarball.Create(packageFolder, folder); 79 | EditorUtility.RevealInFinder(tarballPath); 80 | 81 | } 82 | catch (Exception e) 83 | { 84 | EditorUtility.DisplayDialog("Failure", e.Message, "OK"); 85 | } 86 | 87 | 88 | 89 | 90 | } 91 | finally 92 | { 93 | EmptySamplesDirectory(manifest); 94 | } 95 | } 96 | 97 | } 98 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PublicationController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe53d6d625a239e01a426258499794a8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PublicationView.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEngine; 4 | using System.Collections.Generic; 5 | using System; 6 | 7 | namespace Halodi.PackageCreator 8 | { 9 | internal class PublicationPackageView 10 | { 11 | internal bool publish; 12 | internal PackageManifest package; 13 | internal RegistrySelector RegistrySelector; 14 | internal string registry; 15 | 16 | 17 | public PublicationPackageView(PackageManifest package) 18 | { 19 | this.publish = false; 20 | this.package = package; 21 | this.RegistrySelector = new RegistrySelector(); 22 | 23 | if (package.publishConfig != null && !string.IsNullOrEmpty(package.publishConfig.registry)) 24 | { 25 | this.registry = package.publishConfig.registry; 26 | } 27 | } 28 | } 29 | 30 | 31 | internal class PublicationView : EditorWindow 32 | { 33 | 34 | private List PackagesToPublish = null; 35 | 36 | private bool publishAll; 37 | 38 | private Vector2 scrollPos; 39 | 40 | private UnityEditor.PackageManager.PackageInfo initialSelection = null; 41 | 42 | 43 | 44 | [MenuItem("Packages/Publish packages in project", false, 1)] 45 | internal static void PublishPackageMenuItem() 46 | { 47 | PublicationView.PublishPackages(); 48 | } 49 | 50 | [MenuItem("Assets/Publish Package")] 51 | private static void PublishPackageMenu() 52 | { 53 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, true); 54 | if (manifest != null) 55 | { 56 | PublicationView.PublishPackages(manifest.info); 57 | } 58 | 59 | } 60 | 61 | [MenuItem("Assets/Publish Package", true)] 62 | private static bool PublishPackageMenuValidation() 63 | { 64 | PackageManifest manifest = HalodiPackageCreatorController.GetPackageManifest(Selection.activeObject, true); 65 | if(manifest != null) 66 | { 67 | return manifest.info.source == UnityEditor.PackageManager.PackageSource.Embedded; 68 | } 69 | else 70 | { 71 | return false; 72 | } 73 | } 74 | 75 | 76 | 77 | void OnEnable() 78 | { 79 | HalodiPackageCreatorController.LoadPackages(SetPackages, UnityEditor.PackageManager.PackageSource.Embedded); 80 | } 81 | 82 | void OnDisable() 83 | { 84 | PackagesToPublish = null; 85 | publishAll = false; 86 | } 87 | 88 | 89 | private void SetPackages(List packages) 90 | { 91 | PackagesToPublish = new List(); 92 | foreach (var package in packages) 93 | { 94 | PackagesToPublish.Add(new PublicationPackageView(package)); 95 | } 96 | } 97 | 98 | private void PackageGUI(PublicationPackageView packageView) 99 | { 100 | EditorGUI.BeginChangeCheck(); 101 | 102 | if(initialSelection != null && initialSelection.packageId == packageView.package.info.packageId) 103 | { 104 | packageView.publish = true; 105 | initialSelection = null; 106 | } 107 | 108 | packageView.publish = EditorGUILayout.BeginToggleGroup(packageView.package.displayName, packageView.publish); 109 | if (EditorGUI.EndChangeCheck()) 110 | { 111 | if (!packageView.publish) 112 | { 113 | publishAll = false; 114 | } 115 | } 116 | 117 | packageView.registry = packageView.RegistrySelector.SelectRegistry("\t", packageView.registry); 118 | EditorGUILayout.EndToggleGroup(); 119 | } 120 | 121 | void OnGUI() 122 | { 123 | if (PackagesToPublish != null) 124 | { 125 | EditorGUILayout.LabelField("Publishing packages", EditorStyles.whiteLargeLabel); 126 | 127 | EditorGUILayout.Separator(); 128 | 129 | EditorGUI.BeginChangeCheck(); 130 | publishAll = EditorGUILayout.ToggleLeft("Publish all packages", publishAll); 131 | if (EditorGUI.EndChangeCheck()) 132 | { 133 | foreach (PublicationPackageView packageView in PackagesToPublish) 134 | { 135 | packageView.publish = publishAll; 136 | } 137 | } 138 | 139 | 140 | EditorGUILayout.Separator(); 141 | 142 | 143 | 144 | scrollPos = EditorGUILayout.BeginScrollView(scrollPos); 145 | foreach (PublicationPackageView packageView in PackagesToPublish) 146 | { 147 | PackageGUI(packageView); 148 | } 149 | EditorGUILayout.EndScrollView(); 150 | 151 | 152 | 153 | 154 | EditorGUILayout.Separator(); 155 | 156 | if (GUILayout.Button("Publish")) 157 | { 158 | Publish(); 159 | Close(); 160 | GUIUtility.ExitGUI(); 161 | 162 | } 163 | 164 | if (GUILayout.Button("Cancel")) 165 | { 166 | Close(); 167 | GUIUtility.ExitGUI(); 168 | } 169 | } 170 | } 171 | 172 | 173 | void Publish() 174 | { 175 | if (PackagesToPublish != null) 176 | { 177 | // Make sure the version information is updated before publishing 178 | VersionMaintainer.UpdateVersionInformation(true); 179 | 180 | int packagesToPublish = 0; 181 | foreach (var packageView in PackagesToPublish) 182 | { 183 | if (packageView.publish) 184 | { 185 | packagesToPublish++; 186 | } 187 | } 188 | 189 | if (packagesToPublish == 0) 190 | { 191 | EditorUtility.DisplayDialog("Error", "No packages to publish selected.", "OK"); 192 | return; 193 | } 194 | 195 | 196 | 197 | EditorUtility.DisplayProgressBar("Publishing package", "Publishing packages", 0f); 198 | 199 | string result = ""; 200 | int currentPackage = 0; 201 | bool failures = false; 202 | try 203 | { 204 | foreach (var packageView in PackagesToPublish) 205 | { 206 | if (packageView.publish) 207 | { 208 | EditorUtility.DisplayProgressBar("Publishing package", "Publishing packages " + packageView.package.displayName + " to " + packageView.registry, (float)currentPackage / (float)packagesToPublish); 209 | 210 | if (string.IsNullOrEmpty(packageView.registry)) 211 | { 212 | failures = true; 213 | result += "[Error] No registry set for " + packageView.package.displayName + Environment.NewLine; 214 | } 215 | else 216 | { 217 | try 218 | { 219 | PublicationController.Publish(packageView.package, packageView.registry); 220 | result += "[Success] Publishing " + packageView.package.displayName + " succeeded." + Environment.NewLine; 221 | } 222 | catch (System.Exception e) 223 | { 224 | failures = true; 225 | result += "[Error] Publishing " + packageView.package.displayName + " failed with error:" + Environment.NewLine + "\t" + e.Message + Environment.NewLine; 226 | } 227 | } 228 | 229 | currentPackage++; 230 | } 231 | } 232 | } 233 | finally 234 | { 235 | EditorUtility.ClearProgressBar(); 236 | } 237 | string message; 238 | if (failures) 239 | { 240 | message = "Published with errors." + Environment.NewLine + result; 241 | } 242 | else 243 | { 244 | message = "Published all packages. " + Environment.NewLine + result; 245 | } 246 | EditorUtility.DisplayDialog("Publishing finished", message, "OK"); 247 | 248 | 249 | } 250 | 251 | 252 | 253 | } 254 | 255 | 256 | 257 | public static void PublishPackages(UnityEditor.PackageManager.PackageInfo info = null) 258 | { 259 | PublicationView view = EditorWindow.GetWindow(true, "Package Publishing", true); 260 | view.initialSelection = info; 261 | } 262 | 263 | } 264 | 265 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/PublicationView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 058557479a25f3d65963e47ce8d12fbe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/RegistrySelector.cs: -------------------------------------------------------------------------------- 1 | using System.Text.RegularExpressions; 2 | using Halodi.PackageRegistry.Core; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace Halodi.PackageCreator 7 | { 8 | 9 | internal class RegistrySelector 10 | { 11 | private const string slashReplace = "\u200A\u2215\u200A"; 12 | 13 | private string[] registries; 14 | 15 | private int selectedRegistry; 16 | 17 | public RegistrySelector() 18 | { 19 | string[] unescapedRegistries = new CredentialManager().Registries; 20 | this.registries = new string[unescapedRegistries.Length]; 21 | 22 | for(int i = 0; i < unescapedRegistries.Length; i++) 23 | { 24 | this.registries[i] = unescapedRegistries[i].Replace("/", slashReplace); 25 | } 26 | } 27 | 28 | internal string SelectRegistry(string prefix, string currentValue) 29 | { 30 | string newValue = EditorGUILayout.TextField(prefix + "registry: ", currentValue); 31 | 32 | EditorGUILayout.BeginHorizontal(); 33 | selectedRegistry = EditorGUILayout.Popup("\t", selectedRegistry, registries); 34 | if(GUILayout.Button("Select")) 35 | { 36 | newValue = registries[selectedRegistry].Replace(slashReplace, "/"); 37 | } 38 | EditorGUILayout.EndHorizontal(); 39 | 40 | return newValue; 41 | 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/RegistrySelector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2ce57d18ff02c5bcbe7cf628c18dcd6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/SPDXLicenseList.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Halodi.PackageCreator 4 | { 5 | [System.Serializable] 6 | public class SPDXLicense 7 | { 8 | public string licenseId; 9 | } 10 | 11 | [System.Serializable] 12 | public class SPDXLicenseList 13 | { 14 | 15 | 16 | public SPDXLicense[] licenses; 17 | 18 | 19 | public static SPDXLicenseList Load() 20 | { 21 | var spdxJson = Resources.Load("halodi-unity-package-creator/spdx-license-list"); 22 | 23 | if(spdxJson == null) 24 | { 25 | SPDXLicenseList empty = new SPDXLicenseList(); 26 | SPDXLicense proprietary = new SPDXLicense(); 27 | proprietary.licenseId = "proprietary"; 28 | empty.licenses = new SPDXLicense[] { proprietary }; 29 | 30 | return empty; 31 | } 32 | else 33 | { 34 | return JsonUtility.FromJson(spdxJson.text); 35 | } 36 | } 37 | 38 | 39 | 40 | public string[] ToStringArray() 41 | { 42 | string[] stringArray = new string[licenses.Length]; 43 | for(int i = 0; i < stringArray.Length; i++) 44 | { 45 | stringArray[i] = licenses[i].licenseId; 46 | } 47 | 48 | return stringArray; 49 | } 50 | 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/SPDXLicenseList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccf147535fa0dcb5e8f56f3334111327 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/UpgradeScripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9206539f03234bdd8bc68153b90abeb0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/UpgradeScripts/MoveFromAssetsToPackagesFolder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | namespace Halodi.PackageCreator 9 | { 10 | 11 | [InitializeOnLoad] 12 | internal class MoveFromAssetsToPackagesFolder 13 | { 14 | [Serializable] 15 | internal class HalodiPackage 16 | { 17 | public string PackageFolder = null; 18 | } 19 | 20 | static MoveFromAssetsToPackagesFolder() 21 | { 22 | string packageText = AssetDatabaseUtilities.ReadTextFile(Application.dataPath, "HalodiPackage.json"); 23 | if(packageText != null) 24 | { 25 | HalodiPackage packageDescription = JsonUtility.FromJson(packageText); 26 | 27 | string dir = Path.Combine(Application.dataPath, packageDescription.PackageFolder); 28 | string manifest = Path.Combine(dir, Paths.PackageManifest); 29 | 30 | if(File.Exists(manifest)) 31 | { 32 | Debug.Log("Found package in Assets/" + packageDescription.PackageFolder + ". Moving to Packages/."); 33 | 34 | string target = Path.Combine(AssetDatabaseUtilities.GetProjectRoot(), Paths.PackagesFolder); 35 | if(!Directory.Exists(target)) 36 | { 37 | Directory.CreateDirectory(target); 38 | } 39 | 40 | string targetPackageFolder = Path.Combine(target, packageDescription.PackageFolder); 41 | if(Directory.Exists(targetPackageFolder)) 42 | { 43 | Debug.LogError("Found package " + packageDescription.PackageFolder + " in Assets/, but cannot move to Packages/ because a package with the same directory name already exists."); 44 | return; 45 | } 46 | 47 | Directory.Move(dir, targetPackageFolder); 48 | 49 | } 50 | File.Delete(Path.Combine(Application.dataPath, "HalodiPackage.json")); 51 | 52 | AssetDatabaseUtilities.UpdateAssetDatabase(); 53 | } 54 | } 55 | 56 | } 57 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/UpgradeScripts/MoveFromAssetsToPackagesFolder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3609313c7c452f549f182c817cbcef9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/VersionMaintainer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Threading; 5 | using Artees.UnitySemVer; 6 | using Newtonsoft.Json.Linq; 7 | using UnityEditor; 8 | using UnityEditor.PackageManager; 9 | using UnityEditor.PackageManager.Requests; 10 | using UnityEngine; 11 | 12 | namespace Halodi.PackageCreator 13 | { 14 | 15 | internal class VersionMaintainer : AssetPostprocessor 16 | { 17 | private delegate void ListAction(PackageCollection collection, bool blocking); 18 | 19 | static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) 20 | { 21 | UpdateVersionInformation(false); 22 | } 23 | 24 | internal static void UpdateVersionInformation(bool blocking) 25 | { 26 | if (PackageGroupConfiguration.IsUseGroupVersion()) 27 | { 28 | ListRequest(null, UpdateGroupVersion, blocking); 29 | } 30 | else 31 | { 32 | ListRequest(null, UpdateDependencies, blocking); 33 | } 34 | 35 | } 36 | 37 | 38 | private static void ListRequest(ListRequest listRequest, ListAction action, bool blocking) 39 | { 40 | if (listRequest == null) 41 | { 42 | listRequest = UnityEditor.PackageManager.Client.List(true, true); 43 | } 44 | 45 | if (listRequest.IsCompleted) 46 | { 47 | if (listRequest.Status == StatusCode.Success) 48 | { 49 | action(listRequest.Result, false); 50 | } 51 | } 52 | else 53 | { 54 | if (blocking) 55 | { 56 | while (!listRequest.IsCompleted) 57 | { 58 | Thread.Sleep(10); 59 | } 60 | ListRequest(listRequest, action, true); 61 | } 62 | else 63 | { 64 | EditorApplication.delayCall += () => ListRequest(listRequest, action, false); 65 | } 66 | } 67 | 68 | } 69 | 70 | 71 | private static void UpdateGroupVersion(PackageCollection collection, bool blocking) 72 | { 73 | AssetDatabase.StartAssetEditing(); 74 | 75 | try 76 | { 77 | if (PackageGroupConfiguration.IsUseGroupVersion()) 78 | { 79 | string newVersion = PackageGroupConfiguration.GetGroupVersion(); 80 | foreach (var package in collection) 81 | { 82 | if (package.source == PackageSource.Embedded) 83 | { 84 | UpdatePackageVersion(package, newVersion); 85 | } 86 | } 87 | } 88 | } 89 | finally 90 | { 91 | AssetDatabase.StopAssetEditing(); 92 | } 93 | 94 | ListRequest(null, UpdateDependencies, blocking); 95 | } 96 | 97 | 98 | private static void UpdateDependencies(PackageCollection collection, bool blocking) 99 | { 100 | AssetDatabase.StartAssetEditing(); 101 | try 102 | { 103 | foreach (var package in collection) 104 | { 105 | if (package.source == PackageSource.Embedded) 106 | { 107 | UpdateDependencyVersions(package, collection); 108 | UpdateManifest(package); 109 | } 110 | } 111 | } 112 | finally 113 | { 114 | AssetDatabase.StopAssetEditing(); 115 | } 116 | } 117 | 118 | private static void UpdateManifest(UnityEditor.PackageManager.PackageInfo package) 119 | { 120 | JObject manifestJSON = JObject.Parse(AssetDatabaseUtilities.ReadTextFile(Paths.PackagesFolder, Paths.ProjectManifest)); 121 | 122 | var dependencies = (JObject)manifestJSON["dependencies"]; 123 | 124 | bool changed = false; 125 | string changes = ""; 126 | if(dependencies.ContainsKey(package.name)) 127 | { 128 | string version = dependencies[package.name].ToObject(); 129 | 130 | if(SemVer.Parse(version).ToString() == version) 131 | { 132 | if(package.version != version) 133 | { 134 | changes += "\t" + package.name + "@" + version + "=>" + package.version; 135 | 136 | dependencies[package.name] = package.version; 137 | changed = true; 138 | } 139 | } 140 | } 141 | else 142 | { 143 | changes += "+\t" + package.name + "@" + package.version; 144 | 145 | JProperty property = new JProperty(package.name, package.version); 146 | dependencies.Add(property); 147 | 148 | changed = true; 149 | } 150 | if(changed) 151 | { 152 | AssetDatabaseUtilities.CreateTextFile(manifestJSON.ToString(), Paths.PackagesFolder, Paths.ProjectManifest); 153 | Debug.Log("Updated project dependencies" + Environment.NewLine + changes); 154 | } 155 | 156 | } 157 | 158 | private static UnityEditor.PackageManager.PackageInfo GetPackage(string name, PackageCollection collection) 159 | { 160 | foreach (var package in collection) 161 | { 162 | if (package.name.Equals(name)) 163 | { 164 | return package; 165 | } 166 | } 167 | return null; 168 | } 169 | 170 | private static void UpdatePackageVersion(UnityEditor.PackageManager.PackageInfo package, string version) 171 | { 172 | if (package.version != version) 173 | { 174 | 175 | string manifest = Path.Combine(package.resolvedPath, "package.json"); 176 | if (File.Exists(manifest)) 177 | { 178 | JObject jManifest = JObject.Parse(File.ReadAllText(manifest)); 179 | jManifest["version"] = version; 180 | 181 | File.WriteAllText(manifest, jManifest.ToString()); 182 | 183 | Debug.Log("Updated group version for " + package.displayName); 184 | } 185 | } 186 | 187 | } 188 | 189 | private static void UpdateDependencyVersions(UnityEditor.PackageManager.PackageInfo package, PackageCollection collection) 190 | { 191 | string manifest = Path.Combine(package.resolvedPath, "package.json"); 192 | if (File.Exists(manifest)) 193 | { 194 | JObject jManifest = JObject.Parse(File.ReadAllText(manifest)); 195 | 196 | bool changed = false; 197 | string changes = ""; 198 | if (jManifest["dependencies"] != null) 199 | { 200 | JObject deps = (JObject)jManifest["dependencies"]; 201 | foreach (KeyValuePair dep in deps) 202 | { 203 | 204 | var PackageInfo = GetPackage(dep.Key, collection); 205 | 206 | if (PackageInfo != null) 207 | { 208 | if (PackageInfo.version != dep.Value.ToString()) 209 | { 210 | changes += "\t" + PackageInfo.name + "@" + dep.Value.ToString() + " => " + PackageInfo.version + Environment.NewLine; 211 | 212 | ((JValue)dep.Value).Value = PackageInfo.version; 213 | changed = true; 214 | } 215 | } 216 | } 217 | } 218 | 219 | if (changed) 220 | { 221 | Debug.Log("Updated dependency versions for " + package.displayName + Environment.NewLine + changes); 222 | File.WriteAllText(manifest, jManifest.ToString()); 223 | } 224 | } 225 | 226 | } 227 | } 228 | 229 | } 230 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Editor/halodi/PackageCreator/VersionMaintainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc98a72e6d44b561c80db0a467acb6dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/LICENSE.md: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebbc74599c4640f0996be82483ddc733 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/README.md: -------------------------------------------------------------------------------- 1 | # Halodi Unity Package Creator 2 | 3 | Tools for creating, editing and publishing Unity packages. 4 | 5 | ![Screenshot of main functionality](Documentation~/halodi-unity-package-creator-screenshot.png) 6 | 7 | 8 | Functionality 9 | 10 | - Create packages inside the Packages/ folder, providing a basic file layout including asmdef files following the recommendation from Unity. 11 | - Adding samples to the package in the Assets/[package-name] folder. These samples will be copied to the package on publishing. 12 | - Publishing packages to a NPM registry (login credentials are set using "Halodi Unity Package Registry Manager") 13 | - Create tarballs (pack) from a package. 14 | - Automatically update package dependencies in the package.json when updating depenencies in the project. 15 | - Enforce a common version for all packages in the Packages/ folder. 16 | 17 | ## License 18 | 19 | Apache 2.0 20 | 21 | ## Installation 22 | 23 | First, add "Halodi Unity Package Registry Manager" to your project. In Unity, go to Window -> Package manager, and "Add package from git URL" (Press + in the top left corner) 24 | 25 | ``` 26 | https://github.com/Halodi/halodi-unity-package-registry-manager.git 27 | ``` 28 | 29 | A new menu "Packages" will show up. Then add the "Halodi Unity Package Creator" to your project. 30 | 31 | 32 | Go to "Packages -> Manage scoped registries" and add registry with the following settings 33 | 34 | ``` 35 | Name: Halodi OSS 36 | Url: https://artifacts.halodi.com/repository/upm-open-source-group/ 37 | Scope: com.halodi 38 | Always auth: false 39 | Token: [Leave empty] 40 | ``` 41 | 42 | 43 | Then go to Packages -> Add Packages (Bulk) and enter 44 | 45 | ``` 46 | com.halodi.halodi-unity-package-creator 47 | ``` 48 | 49 | Press Add packages to add "Halodi Unity Package Creator" to your project. 50 | 51 | ## Usage 52 | 53 | This package adds a new menu item under "Packages -> Manage packages in project" from where all functionality is available. 54 | 55 | 56 | ## Author 57 | 58 | [Jesper](mailto:jesper@halodi.com) 59 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dcf2d1655cc185e8a91046f10ae3f2f 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 263a95b3d8b1d106c9abfb7a43acb49d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Resources/halodi-unity-package-creator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aca8267abe061d0f8afcb3e67cf9419a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Resources/halodi-unity-package-creator/spdx-license-list.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cf2471796ee2a60aa2d3ad7565f6008 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a4e62a8eb56b63a79f1b08fb443b0ef 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dc74fd810825b5a386d5272f8006674 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Tests/Editor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyTitle("com.halodi.halodi-unity-package-creator.Tests.Editor")] 4 | [assembly: AssemblyProduct("com.halodi.com.halodi.halodi-unity-package-creator")] -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Tests/Editor/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57eb076de520438a0bccb582a86c2a7c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Tests/Editor/com.halodi.halodi-unity-package-creator.Editor.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.halodi-unity-package-creator.Editor.Tests", 3 | "references": [ 4 | "com.halodi.halodi-unity-package-creator.Editor", 5 | "UnityEngine.TestRunner", 6 | "UnityEditor.TestRunner" 7 | ], 8 | "includePlatforms": [ 9 | "Editor" 10 | ], 11 | "excludePlatforms": [], 12 | "allowUnsafeCode": false, 13 | "overrideReferences": true, 14 | "precompiledReferences": [ 15 | "nunit.framework.dll" 16 | ], 17 | "autoReferenced": false, 18 | "defineConstraints": [ 19 | "UNITY_INCLUDE_TESTS" 20 | ], 21 | "versionDefines": [], 22 | "noEngineReferences": false 23 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/Tests/Editor/com.halodi.halodi-unity-package-creator.Editor.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5c45f8ae4c08c3419985372e3909988 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.halodi.halodi-unity-package-creator", 3 | "version": "1.0.0", 4 | "displayName": "Halodi Unity Package Creator", 5 | "description": "Tools for creating, editing and publishing Unity packages", 6 | "unity": "2019.3", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/Halodi/halodi-unity-package-creator.git" 10 | }, 11 | "license": "Apache-2.0", 12 | "author": { 13 | "name": "Halodi", 14 | "email": "jesper@halodi.com", 15 | "url": "http://www.halodi.com" 16 | }, 17 | "keywords": [], 18 | "dependencies": { 19 | "com.halodi.halodi-unity-package-registry-manager": "1.0.0" 20 | }, 21 | "publishConfig": { 22 | "registry": "https://artifacts.halodi.com/repository/upm-open-source-production/" 23 | }, 24 | "type": "tool", 25 | "hideInEditor": false 26 | } -------------------------------------------------------------------------------- /Packages/halodi-unity-package-creator/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41204d458a57905c4b94e715df128c8e 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "scopedRegistries": [ 3 | { 4 | "name": "Halodi Nexus Open Source", 5 | "url": "https://artifacts.halodi.com/repository/upm-open-source-group/", 6 | "scopes": [ 7 | "com.halodi" 8 | ] 9 | } 10 | ], 11 | "dependencies": { 12 | "com.halodi.example-package": "0.1.0", 13 | "com.halodi.halodi-unity-package-creator": "1.0.0", 14 | "com.halodi.halodi-unity-package-registry-manager": "https://github.com/Halodi/halodi-unity-package-registry-manager.git", 15 | "com.unity.collab-proxy": "1.3.9", 16 | "com.unity.ext.nunit": "1.0.6", 17 | "com.unity.ide.rider": "2.0.7", 18 | "com.unity.ide.visualstudio": "2.0.7", 19 | "com.unity.ide.vscode": "1.2.3", 20 | "com.unity.nuget.newtonsoft-json": "2.0.0", 21 | "com.unity.test-framework": "1.1.24", 22 | "com.unity.textmeshpro": "3.0.1", 23 | "com.unity.timeline": "1.4.6", 24 | "com.unity.ugui": "1.0.0", 25 | "com.unity.modules.ai": "1.0.0", 26 | "com.unity.modules.androidjni": "1.0.0", 27 | "com.unity.modules.animation": "1.0.0", 28 | "com.unity.modules.assetbundle": "1.0.0", 29 | "com.unity.modules.audio": "1.0.0", 30 | "com.unity.modules.cloth": "1.0.0", 31 | "com.unity.modules.director": "1.0.0", 32 | "com.unity.modules.imageconversion": "1.0.0", 33 | "com.unity.modules.imgui": "1.0.0", 34 | "com.unity.modules.jsonserialize": "1.0.0", 35 | "com.unity.modules.particlesystem": "1.0.0", 36 | "com.unity.modules.physics": "1.0.0", 37 | "com.unity.modules.physics2d": "1.0.0", 38 | "com.unity.modules.screencapture": "1.0.0", 39 | "com.unity.modules.terrain": "1.0.0", 40 | "com.unity.modules.terrainphysics": "1.0.0", 41 | "com.unity.modules.tilemap": "1.0.0", 42 | "com.unity.modules.ui": "1.0.0", 43 | "com.unity.modules.uielements": "1.0.0", 44 | "com.unity.modules.umbra": "1.0.0", 45 | "com.unity.modules.unityanalytics": "1.0.0", 46 | "com.unity.modules.unitywebrequest": "1.0.0", 47 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 48 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 49 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 50 | "com.unity.modules.unitywebrequestwww": "1.0.0", 51 | "com.unity.modules.vehicles": "1.0.0", 52 | "com.unity.modules.video": "1.0.0", 53 | "com.unity.modules.vr": "1.0.0", 54 | "com.unity.modules.wind": "1.0.0", 55 | "com.unity.modules.xr": "1.0.0" 56 | } 57 | } -------------------------------------------------------------------------------- /Packages/package-group.json: -------------------------------------------------------------------------------- 1 | {"useGroupVersion":false,"groupVersion":"0.2.0"} -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.halodi.example-package": { 4 | "version": "file:example-package", 5 | "depth": 0, 6 | "source": "embedded", 7 | "dependencies": {} 8 | }, 9 | "com.halodi.halodi-unity-package-creator": { 10 | "version": "file:halodi-unity-package-creator", 11 | "depth": 0, 12 | "source": "embedded", 13 | "dependencies": { 14 | "com.halodi.halodi-unity-package-registry-manager": "1.0.0" 15 | } 16 | }, 17 | "com.halodi.halodi-unity-package-registry-manager": { 18 | "version": "file:halodi-unity-package-registry-manager", 19 | "depth": 0, 20 | "source": "embedded", 21 | "dependencies": { 22 | "com.unity.nuget.newtonsoft-json": "2.0.0", 23 | "com.unity.sharp-zip-lib": "1.2.2-preview.1" 24 | } 25 | }, 26 | "com.unity.collab-proxy": { 27 | "version": "1.3.9", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.ext.nunit": { 34 | "version": "1.0.6", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": {}, 38 | "url": "https://packages.unity.com" 39 | }, 40 | "com.unity.ide.rider": { 41 | "version": "2.0.7", 42 | "depth": 0, 43 | "source": "registry", 44 | "dependencies": { 45 | "com.unity.test-framework": "1.1.1" 46 | }, 47 | "url": "https://packages.unity.com" 48 | }, 49 | "com.unity.ide.visualstudio": { 50 | "version": "2.0.7", 51 | "depth": 0, 52 | "source": "registry", 53 | "dependencies": { 54 | "com.unity.test-framework": "1.1.9" 55 | }, 56 | "url": "https://packages.unity.com" 57 | }, 58 | "com.unity.ide.vscode": { 59 | "version": "1.2.3", 60 | "depth": 0, 61 | "source": "registry", 62 | "dependencies": {}, 63 | "url": "https://packages.unity.com" 64 | }, 65 | "com.unity.nuget.newtonsoft-json": { 66 | "version": "2.0.0", 67 | "depth": 0, 68 | "source": "registry", 69 | "dependencies": {}, 70 | "url": "https://packages.unity.com" 71 | }, 72 | "com.unity.sharp-zip-lib": { 73 | "version": "1.2.2-preview.1", 74 | "depth": 1, 75 | "source": "registry", 76 | "dependencies": {}, 77 | "url": "https://packages.unity.com" 78 | }, 79 | "com.unity.test-framework": { 80 | "version": "1.1.24", 81 | "depth": 0, 82 | "source": "registry", 83 | "dependencies": { 84 | "com.unity.ext.nunit": "1.0.6", 85 | "com.unity.modules.imgui": "1.0.0", 86 | "com.unity.modules.jsonserialize": "1.0.0" 87 | }, 88 | "url": "https://packages.unity.com" 89 | }, 90 | "com.unity.textmeshpro": { 91 | "version": "3.0.1", 92 | "depth": 0, 93 | "source": "registry", 94 | "dependencies": { 95 | "com.unity.ugui": "1.0.0" 96 | }, 97 | "url": "https://packages.unity.com" 98 | }, 99 | "com.unity.timeline": { 100 | "version": "1.4.6", 101 | "depth": 0, 102 | "source": "registry", 103 | "dependencies": { 104 | "com.unity.modules.director": "1.0.0", 105 | "com.unity.modules.animation": "1.0.0", 106 | "com.unity.modules.audio": "1.0.0", 107 | "com.unity.modules.particlesystem": "1.0.0" 108 | }, 109 | "url": "https://packages.unity.com" 110 | }, 111 | "com.unity.ugui": { 112 | "version": "1.0.0", 113 | "depth": 0, 114 | "source": "builtin", 115 | "dependencies": { 116 | "com.unity.modules.ui": "1.0.0", 117 | "com.unity.modules.imgui": "1.0.0" 118 | } 119 | }, 120 | "com.unity.modules.ai": { 121 | "version": "1.0.0", 122 | "depth": 0, 123 | "source": "builtin", 124 | "dependencies": {} 125 | }, 126 | "com.unity.modules.androidjni": { 127 | "version": "1.0.0", 128 | "depth": 0, 129 | "source": "builtin", 130 | "dependencies": {} 131 | }, 132 | "com.unity.modules.animation": { 133 | "version": "1.0.0", 134 | "depth": 0, 135 | "source": "builtin", 136 | "dependencies": {} 137 | }, 138 | "com.unity.modules.assetbundle": { 139 | "version": "1.0.0", 140 | "depth": 0, 141 | "source": "builtin", 142 | "dependencies": {} 143 | }, 144 | "com.unity.modules.audio": { 145 | "version": "1.0.0", 146 | "depth": 0, 147 | "source": "builtin", 148 | "dependencies": {} 149 | }, 150 | "com.unity.modules.cloth": { 151 | "version": "1.0.0", 152 | "depth": 0, 153 | "source": "builtin", 154 | "dependencies": { 155 | "com.unity.modules.physics": "1.0.0" 156 | } 157 | }, 158 | "com.unity.modules.director": { 159 | "version": "1.0.0", 160 | "depth": 0, 161 | "source": "builtin", 162 | "dependencies": { 163 | "com.unity.modules.audio": "1.0.0", 164 | "com.unity.modules.animation": "1.0.0" 165 | } 166 | }, 167 | "com.unity.modules.imageconversion": { 168 | "version": "1.0.0", 169 | "depth": 0, 170 | "source": "builtin", 171 | "dependencies": {} 172 | }, 173 | "com.unity.modules.imgui": { 174 | "version": "1.0.0", 175 | "depth": 0, 176 | "source": "builtin", 177 | "dependencies": {} 178 | }, 179 | "com.unity.modules.jsonserialize": { 180 | "version": "1.0.0", 181 | "depth": 0, 182 | "source": "builtin", 183 | "dependencies": {} 184 | }, 185 | "com.unity.modules.particlesystem": { 186 | "version": "1.0.0", 187 | "depth": 0, 188 | "source": "builtin", 189 | "dependencies": {} 190 | }, 191 | "com.unity.modules.physics": { 192 | "version": "1.0.0", 193 | "depth": 0, 194 | "source": "builtin", 195 | "dependencies": {} 196 | }, 197 | "com.unity.modules.physics2d": { 198 | "version": "1.0.0", 199 | "depth": 0, 200 | "source": "builtin", 201 | "dependencies": {} 202 | }, 203 | "com.unity.modules.screencapture": { 204 | "version": "1.0.0", 205 | "depth": 0, 206 | "source": "builtin", 207 | "dependencies": { 208 | "com.unity.modules.imageconversion": "1.0.0" 209 | } 210 | }, 211 | "com.unity.modules.subsystems": { 212 | "version": "1.0.0", 213 | "depth": 1, 214 | "source": "builtin", 215 | "dependencies": { 216 | "com.unity.modules.jsonserialize": "1.0.0" 217 | } 218 | }, 219 | "com.unity.modules.terrain": { 220 | "version": "1.0.0", 221 | "depth": 0, 222 | "source": "builtin", 223 | "dependencies": {} 224 | }, 225 | "com.unity.modules.terrainphysics": { 226 | "version": "1.0.0", 227 | "depth": 0, 228 | "source": "builtin", 229 | "dependencies": { 230 | "com.unity.modules.physics": "1.0.0", 231 | "com.unity.modules.terrain": "1.0.0" 232 | } 233 | }, 234 | "com.unity.modules.tilemap": { 235 | "version": "1.0.0", 236 | "depth": 0, 237 | "source": "builtin", 238 | "dependencies": { 239 | "com.unity.modules.physics2d": "1.0.0" 240 | } 241 | }, 242 | "com.unity.modules.ui": { 243 | "version": "1.0.0", 244 | "depth": 0, 245 | "source": "builtin", 246 | "dependencies": {} 247 | }, 248 | "com.unity.modules.uielements": { 249 | "version": "1.0.0", 250 | "depth": 0, 251 | "source": "builtin", 252 | "dependencies": { 253 | "com.unity.modules.ui": "1.0.0", 254 | "com.unity.modules.imgui": "1.0.0", 255 | "com.unity.modules.jsonserialize": "1.0.0", 256 | "com.unity.modules.uielementsnative": "1.0.0" 257 | } 258 | }, 259 | "com.unity.modules.uielementsnative": { 260 | "version": "1.0.0", 261 | "depth": 1, 262 | "source": "builtin", 263 | "dependencies": { 264 | "com.unity.modules.ui": "1.0.0", 265 | "com.unity.modules.imgui": "1.0.0", 266 | "com.unity.modules.jsonserialize": "1.0.0" 267 | } 268 | }, 269 | "com.unity.modules.umbra": { 270 | "version": "1.0.0", 271 | "depth": 0, 272 | "source": "builtin", 273 | "dependencies": {} 274 | }, 275 | "com.unity.modules.unityanalytics": { 276 | "version": "1.0.0", 277 | "depth": 0, 278 | "source": "builtin", 279 | "dependencies": { 280 | "com.unity.modules.unitywebrequest": "1.0.0", 281 | "com.unity.modules.jsonserialize": "1.0.0" 282 | } 283 | }, 284 | "com.unity.modules.unitywebrequest": { 285 | "version": "1.0.0", 286 | "depth": 0, 287 | "source": "builtin", 288 | "dependencies": {} 289 | }, 290 | "com.unity.modules.unitywebrequestassetbundle": { 291 | "version": "1.0.0", 292 | "depth": 0, 293 | "source": "builtin", 294 | "dependencies": { 295 | "com.unity.modules.assetbundle": "1.0.0", 296 | "com.unity.modules.unitywebrequest": "1.0.0" 297 | } 298 | }, 299 | "com.unity.modules.unitywebrequestaudio": { 300 | "version": "1.0.0", 301 | "depth": 0, 302 | "source": "builtin", 303 | "dependencies": { 304 | "com.unity.modules.unitywebrequest": "1.0.0", 305 | "com.unity.modules.audio": "1.0.0" 306 | } 307 | }, 308 | "com.unity.modules.unitywebrequesttexture": { 309 | "version": "1.0.0", 310 | "depth": 0, 311 | "source": "builtin", 312 | "dependencies": { 313 | "com.unity.modules.unitywebrequest": "1.0.0", 314 | "com.unity.modules.imageconversion": "1.0.0" 315 | } 316 | }, 317 | "com.unity.modules.unitywebrequestwww": { 318 | "version": "1.0.0", 319 | "depth": 0, 320 | "source": "builtin", 321 | "dependencies": { 322 | "com.unity.modules.unitywebrequest": "1.0.0", 323 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 324 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 325 | "com.unity.modules.audio": "1.0.0", 326 | "com.unity.modules.assetbundle": "1.0.0", 327 | "com.unity.modules.imageconversion": "1.0.0" 328 | } 329 | }, 330 | "com.unity.modules.vehicles": { 331 | "version": "1.0.0", 332 | "depth": 0, 333 | "source": "builtin", 334 | "dependencies": { 335 | "com.unity.modules.physics": "1.0.0" 336 | } 337 | }, 338 | "com.unity.modules.video": { 339 | "version": "1.0.0", 340 | "depth": 0, 341 | "source": "builtin", 342 | "dependencies": { 343 | "com.unity.modules.audio": "1.0.0", 344 | "com.unity.modules.ui": "1.0.0", 345 | "com.unity.modules.unitywebrequest": "1.0.0" 346 | } 347 | }, 348 | "com.unity.modules.vr": { 349 | "version": "1.0.0", 350 | "depth": 0, 351 | "source": "builtin", 352 | "dependencies": { 353 | "com.unity.modules.jsonserialize": "1.0.0", 354 | "com.unity.modules.physics": "1.0.0", 355 | "com.unity.modules.xr": "1.0.0" 356 | } 357 | }, 358 | "com.unity.modules.wind": { 359 | "version": "1.0.0", 360 | "depth": 0, 361 | "source": "builtin", 362 | "dependencies": {} 363 | }, 364 | "com.unity.modules.xr": { 365 | "version": "1.0.0", 366 | "depth": 0, 367 | "source": "builtin", 368 | "dependencies": { 369 | "com.unity.modules.physics": "1.0.0", 370 | "com.unity.modules.jsonserialize": "1.0.0", 371 | "com.unity.modules.subsystems": "1.0.0" 372 | } 373 | } 374 | } 375 | } 376 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /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: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /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: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;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: 1 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: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /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_EnablePreviewPackages: 1 16 | m_EnablePackageDependencies: 1 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 1 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | - m_Id: scoped:Halodi Nexus Open Source 28 | m_Name: Halodi Nexus Open Source 29 | m_Url: https://artifacts.halodi.com/repository/upm-open-source-group 30 | m_Scopes: 31 | - com.halodi 32 | m_IsDefault: 0 33 | m_Capabilities: 0 34 | m_UserSelectedRegistryName: 35 | m_UserAddingNewScopedRegistry: 0 36 | m_RegistryInfoDraft: 37 | m_ErrorMessage: 38 | m_Original: 39 | m_Id: scoped:Halodi Nexus Open Source 40 | m_Name: Halodi Nexus Open Source 41 | m_Url: https://artifacts.halodi.com/repository/upm-open-source-group 42 | m_Scopes: 43 | - com.halodi 44 | m_IsDefault: 0 45 | m_Capabilities: 0 46 | m_Modified: 0 47 | m_Name: Halodi Nexus Open Source 48 | m_Url: https://artifacts.halodi.com/repository/upm-open-source-group 49 | m_Scopes: 50 | - com.halodi 51 | m_SelectedScopeIndex: 0 52 | -------------------------------------------------------------------------------- /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 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 18 7 | productGUID: e9f456a9f1830c01898c17bda484ccf0 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: halodi-unity-package-skeleton 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | displayResolutionDialog: 0 56 | iosUseCustomAppBackgroundBehavior: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 1 68 | androidUseSwappy: 0 69 | androidBlitType: 0 70 | defaultIsNativeResolution: 1 71 | macRetinaSupport: 1 72 | runInBackground: 1 73 | captureSingleScreen: 0 74 | muteOtherAudioSources: 0 75 | Prepare IOS For Recording: 0 76 | Force IOS Speakers When Recording: 0 77 | deferSystemGesturesMode: 0 78 | hideHomeButton: 0 79 | submitAnalytics: 1 80 | usePlayerLog: 1 81 | bakeCollisionMeshes: 0 82 | forceSingleInstance: 0 83 | useFlipModelSwapchain: 1 84 | resizableWindow: 0 85 | useMacAppStoreValidation: 0 86 | macAppStoreCategory: public.app-category.games 87 | gpuSkinning: 1 88 | graphicsJobs: 0 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | graphicsJobMode: 0 97 | fullscreenMode: 1 98 | xboxSpeechDB: 0 99 | xboxEnableHeadOrientation: 0 100 | xboxEnableGuest: 0 101 | xboxEnablePIXSampling: 0 102 | metalFramebufferOnly: 0 103 | xboxOneResolution: 0 104 | xboxOneSResolution: 0 105 | xboxOneXResolution: 3 106 | xboxOneMonoLoggingLevel: 0 107 | xboxOneLoggingLevel: 1 108 | xboxOneDisableEsram: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | vulkanEnableSetSRGBWrite: 0 117 | m_SupportedAspectRatios: 118 | 4:3: 1 119 | 5:4: 1 120 | 16:10: 1 121 | 16:9: 1 122 | Others: 1 123 | bundleVersion: 0.1 124 | preloadedAssets: [] 125 | metroInputSource: 0 126 | wsaTransparentSwapchain: 0 127 | m_HolographicPauseOnTrackingLoss: 1 128 | xboxOneDisableKinectGpuReservation: 1 129 | xboxOneEnable7thCore: 1 130 | vrSettings: 131 | cardboard: 132 | depthFormat: 0 133 | enableTransitionView: 0 134 | daydream: 135 | depthFormat: 0 136 | useSustainedPerformanceMode: 0 137 | enableVideoLayer: 0 138 | useProtectedVideoMemory: 0 139 | minimumSupportedHeadTracking: 0 140 | maximumSupportedHeadTracking: 1 141 | hololens: 142 | depthFormat: 1 143 | depthBufferSharingEnabled: 1 144 | lumin: 145 | depthFormat: 0 146 | frameTiming: 2 147 | enableGLCache: 0 148 | glCacheMaxBlobSize: 524288 149 | glCacheMaxFileSize: 8388608 150 | oculus: 151 | sharedDepthBuffer: 1 152 | dashSupport: 1 153 | lowOverheadMode: 0 154 | enable360StereoCapture: 0 155 | isWsaHolographicRemotingEnabled: 0 156 | protectGraphicsMemory: 0 157 | enableFrameTimingStats: 0 158 | useHDRDisplay: 0 159 | m_ColorGamuts: 00000000 160 | targetPixelDensity: 30 161 | resolutionScalingMode: 0 162 | androidSupportedAspectRatio: 1 163 | androidMaxAspectRatio: 2.1 164 | applicationIdentifier: {} 165 | buildNumber: {} 166 | AndroidBundleVersionCode: 1 167 | AndroidMinSdkVersion: 16 168 | AndroidTargetSdkVersion: 0 169 | AndroidPreferredInstallLocation: 1 170 | aotOptions: 171 | stripEngineCode: 1 172 | iPhoneStrippingLevel: 0 173 | iPhoneScriptCallOptimization: 0 174 | ForceInternetPermission: 0 175 | ForceSDCardPermission: 0 176 | CreateWallpaper: 0 177 | APKExpansionFiles: 0 178 | keepLoadedShadersAlive: 0 179 | StripUnusedMeshComponents: 1 180 | VertexChannelCompressionMask: 4054 181 | iPhoneSdkVersion: 988 182 | iOSTargetOSVersionString: 9.0 183 | tvOSSdkVersion: 0 184 | tvOSRequireExtendedGameController: 0 185 | tvOSTargetOSVersionString: 9.0 186 | uIPrerenderedIcon: 0 187 | uIRequiresPersistentWiFi: 0 188 | uIRequiresFullScreen: 1 189 | uIStatusBarHidden: 1 190 | uIExitOnSuspend: 0 191 | uIStatusBarStyle: 0 192 | iPhoneSplashScreen: {fileID: 0} 193 | iPhoneHighResSplashScreen: {fileID: 0} 194 | iPhoneTallHighResSplashScreen: {fileID: 0} 195 | iPhone47inSplashScreen: {fileID: 0} 196 | iPhone55inPortraitSplashScreen: {fileID: 0} 197 | iPhone55inLandscapeSplashScreen: {fileID: 0} 198 | iPhone58inPortraitSplashScreen: {fileID: 0} 199 | iPhone58inLandscapeSplashScreen: {fileID: 0} 200 | iPadPortraitSplashScreen: {fileID: 0} 201 | iPadHighResPortraitSplashScreen: {fileID: 0} 202 | iPadLandscapeSplashScreen: {fileID: 0} 203 | iPadHighResLandscapeSplashScreen: {fileID: 0} 204 | iPhone65inPortraitSplashScreen: {fileID: 0} 205 | iPhone65inLandscapeSplashScreen: {fileID: 0} 206 | iPhone61inPortraitSplashScreen: {fileID: 0} 207 | iPhone61inLandscapeSplashScreen: {fileID: 0} 208 | appleTVSplashScreen: {fileID: 0} 209 | appleTVSplashScreen2x: {fileID: 0} 210 | tvOSSmallIconLayers: [] 211 | tvOSSmallIconLayers2x: [] 212 | tvOSLargeIconLayers: [] 213 | tvOSLargeIconLayers2x: [] 214 | tvOSTopShelfImageLayers: [] 215 | tvOSTopShelfImageLayers2x: [] 216 | tvOSTopShelfImageWideLayers: [] 217 | tvOSTopShelfImageWideLayers2x: [] 218 | iOSLaunchScreenType: 0 219 | iOSLaunchScreenPortrait: {fileID: 0} 220 | iOSLaunchScreenLandscape: {fileID: 0} 221 | iOSLaunchScreenBackgroundColor: 222 | serializedVersion: 2 223 | rgba: 0 224 | iOSLaunchScreenFillPct: 100 225 | iOSLaunchScreenSize: 100 226 | iOSLaunchScreenCustomXibPath: 227 | iOSLaunchScreeniPadType: 0 228 | iOSLaunchScreeniPadImage: {fileID: 0} 229 | iOSLaunchScreeniPadBackgroundColor: 230 | serializedVersion: 2 231 | rgba: 0 232 | iOSLaunchScreeniPadFillPct: 100 233 | iOSLaunchScreeniPadSize: 100 234 | iOSLaunchScreeniPadCustomXibPath: 235 | iOSUseLaunchScreenStoryboard: 0 236 | iOSLaunchScreenCustomStoryboardPath: 237 | iOSDeviceRequirements: [] 238 | iOSURLSchemes: [] 239 | iOSBackgroundModes: 0 240 | iOSMetalForceHardShadows: 0 241 | metalEditorSupport: 1 242 | metalAPIValidation: 1 243 | iOSRenderExtraFrameOnPause: 0 244 | appleDeveloperTeamID: 245 | iOSManualSigningProvisioningProfileID: 246 | tvOSManualSigningProvisioningProfileID: 247 | iOSManualSigningProvisioningProfileType: 0 248 | tvOSManualSigningProvisioningProfileType: 0 249 | appleEnableAutomaticSigning: 0 250 | iOSRequireARKit: 0 251 | iOSAutomaticallyDetectAndAddCapabilities: 1 252 | appleEnableProMotion: 0 253 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 254 | templatePackageId: com.unity.template.3d@3.1.0 255 | templateDefaultScene: Assets/Scenes/SampleScene.unity 256 | AndroidTargetArchitectures: 1 257 | AndroidSplashScreenScale: 0 258 | androidSplashScreen: {fileID: 0} 259 | AndroidKeystoreName: '{inproject}: ' 260 | AndroidKeyaliasName: 261 | AndroidBuildApkPerCpuArchitecture: 0 262 | AndroidTVCompatibility: 0 263 | AndroidIsGame: 1 264 | AndroidEnableTango: 0 265 | androidEnableBanner: 1 266 | androidUseLowAccuracyLocation: 0 267 | androidUseCustomKeystore: 0 268 | m_AndroidBanners: 269 | - width: 320 270 | height: 180 271 | banner: {fileID: 0} 272 | androidGamepadSupportLevel: 0 273 | AndroidValidateAppBundleSize: 1 274 | AndroidAppBundleSizeToValidate: 150 275 | resolutionDialogBanner: {fileID: 0} 276 | m_BuildTargetIcons: [] 277 | m_BuildTargetPlatformIcons: [] 278 | m_BuildTargetBatching: 279 | - m_BuildTarget: Standalone 280 | m_StaticBatching: 1 281 | m_DynamicBatching: 0 282 | - m_BuildTarget: tvOS 283 | m_StaticBatching: 1 284 | m_DynamicBatching: 0 285 | - m_BuildTarget: Android 286 | m_StaticBatching: 1 287 | m_DynamicBatching: 0 288 | - m_BuildTarget: iPhone 289 | m_StaticBatching: 1 290 | m_DynamicBatching: 0 291 | - m_BuildTarget: WebGL 292 | m_StaticBatching: 0 293 | m_DynamicBatching: 0 294 | m_BuildTargetGraphicsAPIs: 295 | - m_BuildTarget: AndroidPlayer 296 | m_APIs: 150000000b000000 297 | m_Automatic: 0 298 | - m_BuildTarget: iOSSupport 299 | m_APIs: 10000000 300 | m_Automatic: 1 301 | - m_BuildTarget: AppleTVSupport 302 | m_APIs: 10000000 303 | m_Automatic: 0 304 | - m_BuildTarget: WebGLSupport 305 | m_APIs: 0b000000 306 | m_Automatic: 1 307 | m_BuildTargetVRSettings: 308 | - m_BuildTarget: Standalone 309 | m_Enabled: 0 310 | m_Devices: 311 | - Oculus 312 | - OpenVR 313 | openGLRequireES31: 0 314 | openGLRequireES31AEP: 0 315 | openGLRequireES32: 0 316 | vuforiaEnabled: 0 317 | m_TemplateCustomTags: {} 318 | mobileMTRendering: 319 | Android: 1 320 | iPhone: 1 321 | tvOS: 1 322 | m_BuildTargetGroupLightmapEncodingQuality: [] 323 | m_BuildTargetGroupLightmapSettings: [] 324 | playModeTestRunnerEnabled: 0 325 | runPlayModeTestAsEditModeTest: 0 326 | actionOnDotNetUnhandledException: 1 327 | enableInternalProfiler: 0 328 | logObjCUncaughtExceptions: 1 329 | enableCrashReportAPI: 0 330 | cameraUsageDescription: 331 | locationUsageDescription: 332 | microphoneUsageDescription: 333 | switchNetLibKey: 334 | switchSocketMemoryPoolSize: 6144 335 | switchSocketAllocatorPoolSize: 128 336 | switchSocketConcurrencyLimit: 14 337 | switchScreenResolutionBehavior: 2 338 | switchUseCPUProfiler: 0 339 | switchApplicationID: 0x01004b9000490000 340 | switchNSODependencies: 341 | switchTitleNames_0: 342 | switchTitleNames_1: 343 | switchTitleNames_2: 344 | switchTitleNames_3: 345 | switchTitleNames_4: 346 | switchTitleNames_5: 347 | switchTitleNames_6: 348 | switchTitleNames_7: 349 | switchTitleNames_8: 350 | switchTitleNames_9: 351 | switchTitleNames_10: 352 | switchTitleNames_11: 353 | switchTitleNames_12: 354 | switchTitleNames_13: 355 | switchTitleNames_14: 356 | switchPublisherNames_0: 357 | switchPublisherNames_1: 358 | switchPublisherNames_2: 359 | switchPublisherNames_3: 360 | switchPublisherNames_4: 361 | switchPublisherNames_5: 362 | switchPublisherNames_6: 363 | switchPublisherNames_7: 364 | switchPublisherNames_8: 365 | switchPublisherNames_9: 366 | switchPublisherNames_10: 367 | switchPublisherNames_11: 368 | switchPublisherNames_12: 369 | switchPublisherNames_13: 370 | switchPublisherNames_14: 371 | switchIcons_0: {fileID: 0} 372 | switchIcons_1: {fileID: 0} 373 | switchIcons_2: {fileID: 0} 374 | switchIcons_3: {fileID: 0} 375 | switchIcons_4: {fileID: 0} 376 | switchIcons_5: {fileID: 0} 377 | switchIcons_6: {fileID: 0} 378 | switchIcons_7: {fileID: 0} 379 | switchIcons_8: {fileID: 0} 380 | switchIcons_9: {fileID: 0} 381 | switchIcons_10: {fileID: 0} 382 | switchIcons_11: {fileID: 0} 383 | switchIcons_12: {fileID: 0} 384 | switchIcons_13: {fileID: 0} 385 | switchIcons_14: {fileID: 0} 386 | switchSmallIcons_0: {fileID: 0} 387 | switchSmallIcons_1: {fileID: 0} 388 | switchSmallIcons_2: {fileID: 0} 389 | switchSmallIcons_3: {fileID: 0} 390 | switchSmallIcons_4: {fileID: 0} 391 | switchSmallIcons_5: {fileID: 0} 392 | switchSmallIcons_6: {fileID: 0} 393 | switchSmallIcons_7: {fileID: 0} 394 | switchSmallIcons_8: {fileID: 0} 395 | switchSmallIcons_9: {fileID: 0} 396 | switchSmallIcons_10: {fileID: 0} 397 | switchSmallIcons_11: {fileID: 0} 398 | switchSmallIcons_12: {fileID: 0} 399 | switchSmallIcons_13: {fileID: 0} 400 | switchSmallIcons_14: {fileID: 0} 401 | switchManualHTML: 402 | switchAccessibleURLs: 403 | switchLegalInformation: 404 | switchMainThreadStackSize: 1048576 405 | switchPresenceGroupId: 406 | switchLogoHandling: 0 407 | switchReleaseVersion: 0 408 | switchDisplayVersion: 1.0.0 409 | switchStartupUserAccount: 0 410 | switchTouchScreenUsage: 0 411 | switchSupportedLanguagesMask: 0 412 | switchLogoType: 0 413 | switchApplicationErrorCodeCategory: 414 | switchUserAccountSaveDataSize: 0 415 | switchUserAccountSaveDataJournalSize: 0 416 | switchApplicationAttribute: 0 417 | switchCardSpecSize: -1 418 | switchCardSpecClock: -1 419 | switchRatingsMask: 0 420 | switchRatingsInt_0: 0 421 | switchRatingsInt_1: 0 422 | switchRatingsInt_2: 0 423 | switchRatingsInt_3: 0 424 | switchRatingsInt_4: 0 425 | switchRatingsInt_5: 0 426 | switchRatingsInt_6: 0 427 | switchRatingsInt_7: 0 428 | switchRatingsInt_8: 0 429 | switchRatingsInt_9: 0 430 | switchRatingsInt_10: 0 431 | switchRatingsInt_11: 0 432 | switchLocalCommunicationIds_0: 433 | switchLocalCommunicationIds_1: 434 | switchLocalCommunicationIds_2: 435 | switchLocalCommunicationIds_3: 436 | switchLocalCommunicationIds_4: 437 | switchLocalCommunicationIds_5: 438 | switchLocalCommunicationIds_6: 439 | switchLocalCommunicationIds_7: 440 | switchParentalControl: 0 441 | switchAllowsScreenshot: 1 442 | switchAllowsVideoCapturing: 1 443 | switchAllowsRuntimeAddOnContentInstall: 0 444 | switchDataLossConfirmation: 0 445 | switchUserAccountLockEnabled: 0 446 | switchSystemResourceMemory: 16777216 447 | switchSupportedNpadStyles: 3 448 | switchNativeFsCacheSize: 32 449 | switchIsHoldTypeHorizontal: 0 450 | switchSupportedNpadCount: 8 451 | switchSocketConfigEnabled: 0 452 | switchTcpInitialSendBufferSize: 32 453 | switchTcpInitialReceiveBufferSize: 64 454 | switchTcpAutoSendBufferSizeMax: 256 455 | switchTcpAutoReceiveBufferSizeMax: 256 456 | switchUdpSendBufferSize: 9 457 | switchUdpReceiveBufferSize: 42 458 | switchSocketBufferEfficiency: 4 459 | switchSocketInitializeEnabled: 1 460 | switchNetworkInterfaceManagerInitializeEnabled: 1 461 | switchPlayerConnectionEnabled: 1 462 | ps4NPAgeRating: 12 463 | ps4NPTitleSecret: 464 | ps4NPTrophyPackPath: 465 | ps4ParentalLevel: 11 466 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 467 | ps4Category: 0 468 | ps4MasterVersion: 01.00 469 | ps4AppVersion: 01.00 470 | ps4AppType: 0 471 | ps4ParamSfxPath: 472 | ps4VideoOutPixelFormat: 0 473 | ps4VideoOutInitialWidth: 1920 474 | ps4VideoOutBaseModeInitialWidth: 1920 475 | ps4VideoOutReprojectionRate: 60 476 | ps4PronunciationXMLPath: 477 | ps4PronunciationSIGPath: 478 | ps4BackgroundImagePath: 479 | ps4StartupImagePath: 480 | ps4StartupImagesFolder: 481 | ps4IconImagesFolder: 482 | ps4SaveDataImagePath: 483 | ps4SdkOverride: 484 | ps4BGMPath: 485 | ps4ShareFilePath: 486 | ps4ShareOverlayImagePath: 487 | ps4PrivacyGuardImagePath: 488 | ps4NPtitleDatPath: 489 | ps4RemotePlayKeyAssignment: -1 490 | ps4RemotePlayKeyMappingDir: 491 | ps4PlayTogetherPlayerCount: 0 492 | ps4EnterButtonAssignment: 1 493 | ps4ApplicationParam1: 0 494 | ps4ApplicationParam2: 0 495 | ps4ApplicationParam3: 0 496 | ps4ApplicationParam4: 0 497 | ps4DownloadDataSize: 0 498 | ps4GarlicHeapSize: 2048 499 | ps4ProGarlicHeapSize: 2560 500 | playerPrefsMaxSize: 32768 501 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 502 | ps4pnSessions: 1 503 | ps4pnPresence: 1 504 | ps4pnFriends: 1 505 | ps4pnGameCustomData: 1 506 | playerPrefsSupport: 0 507 | enableApplicationExit: 0 508 | resetTempFolder: 1 509 | restrictedAudioUsageRights: 0 510 | ps4UseResolutionFallback: 0 511 | ps4ReprojectionSupport: 0 512 | ps4UseAudio3dBackend: 0 513 | ps4SocialScreenEnabled: 0 514 | ps4ScriptOptimizationLevel: 0 515 | ps4Audio3dVirtualSpeakerCount: 14 516 | ps4attribCpuUsage: 0 517 | ps4PatchPkgPath: 518 | ps4PatchLatestPkgPath: 519 | ps4PatchChangeinfoPath: 520 | ps4PatchDayOne: 0 521 | ps4attribUserManagement: 0 522 | ps4attribMoveSupport: 0 523 | ps4attrib3DSupport: 0 524 | ps4attribShareSupport: 0 525 | ps4attribExclusiveVR: 0 526 | ps4disableAutoHideSplash: 0 527 | ps4videoRecordingFeaturesUsed: 0 528 | ps4contentSearchFeaturesUsed: 0 529 | ps4attribEyeToEyeDistanceSettingVR: 0 530 | ps4IncludedModules: [] 531 | monoEnv: 532 | splashScreenBackgroundSourceLandscape: {fileID: 0} 533 | splashScreenBackgroundSourcePortrait: {fileID: 0} 534 | blurSplashScreenBackground: 1 535 | spritePackerPolicy: 536 | webGLMemorySize: 16 537 | webGLExceptionSupport: 1 538 | webGLNameFilesAsHashes: 0 539 | webGLDataCaching: 1 540 | webGLDebugSymbols: 0 541 | webGLEmscriptenArgs: 542 | webGLModulesDirectory: 543 | webGLTemplate: APPLICATION:Default 544 | webGLAnalyzeBuildSize: 0 545 | webGLUseEmbeddedResources: 0 546 | webGLCompressionFormat: 1 547 | webGLLinkerTarget: 1 548 | webGLThreadsSupport: 0 549 | webGLWasmStreaming: 0 550 | scriptingDefineSymbols: {} 551 | platformArchitecture: {} 552 | scriptingBackend: {} 553 | il2cppCompilerConfiguration: {} 554 | managedStrippingLevel: {} 555 | incrementalIl2cppBuild: {} 556 | allowUnsafeCode: 0 557 | additionalIl2CppArgs: 558 | scriptingRuntimeVersion: 1 559 | gcIncremental: 0 560 | gcWBarrierValidation: 0 561 | apiCompatibilityLevelPerPlatform: {} 562 | m_RenderingPath: 1 563 | m_MobileRenderingPath: 1 564 | metroPackageName: Template_3D 565 | metroPackageVersion: 566 | metroCertificatePath: 567 | metroCertificatePassword: 568 | metroCertificateSubject: 569 | metroCertificateIssuer: 570 | metroCertificateNotAfter: 0000000000000000 571 | metroApplicationDescription: Template_3D 572 | wsaImages: {} 573 | metroTileShortName: 574 | metroTileShowName: 0 575 | metroMediumTileShowName: 0 576 | metroLargeTileShowName: 0 577 | metroWideTileShowName: 0 578 | metroSupportStreamingInstall: 0 579 | metroLastRequiredScene: 0 580 | metroDefaultTileSize: 1 581 | metroTileForegroundText: 2 582 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 583 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 584 | a: 1} 585 | metroSplashScreenUseBackgroundColor: 0 586 | platformCapabilities: {} 587 | metroTargetDeviceFamilies: {} 588 | metroFTAName: 589 | metroFTAFileTypes: [] 590 | metroProtocolName: 591 | XboxOneProductId: 592 | XboxOneUpdateKey: 593 | XboxOneSandboxId: 594 | XboxOneContentId: 595 | XboxOneTitleId: 596 | XboxOneSCId: 597 | XboxOneGameOsOverridePath: 598 | XboxOnePackagingOverridePath: 599 | XboxOneAppManifestOverridePath: 600 | XboxOneVersion: 1.0.0.0 601 | XboxOnePackageEncryption: 0 602 | XboxOnePackageUpdateGranularity: 2 603 | XboxOneDescription: 604 | XboxOneLanguage: 605 | - enus 606 | XboxOneCapability: [] 607 | XboxOneGameRating: {} 608 | XboxOneIsContentPackage: 0 609 | XboxOneEnableGPUVariability: 1 610 | XboxOneSockets: {} 611 | XboxOneSplashScreen: {fileID: 0} 612 | XboxOneAllowedProductIds: [] 613 | XboxOnePersistentLocalStorageSize: 0 614 | XboxOneXTitleMemory: 8 615 | xboxOneScriptCompiler: 1 616 | XboxOneOverrideIdentityName: 617 | vrEditorSettings: 618 | daydream: 619 | daydreamIconForeground: {fileID: 0} 620 | daydreamIconBackground: {fileID: 0} 621 | cloudServicesEnabled: 622 | UNet: 1 623 | luminIcon: 624 | m_Name: 625 | m_ModelFolderPath: 626 | m_PortalFolderPath: 627 | luminCert: 628 | m_CertPath: 629 | m_SignPackage: 1 630 | luminIsChannelApp: 0 631 | luminVersion: 632 | m_VersionCode: 1 633 | m_VersionName: 634 | facebookSdkVersion: 7.9.4 635 | facebookAppId: 636 | facebookCookies: 1 637 | facebookLogging: 1 638 | facebookStatus: 1 639 | facebookXfbml: 0 640 | facebookFrictionlessRequests: 1 641 | apiCompatibilityLevel: 6 642 | cloudProjectId: 643 | framebufferDepthMemorylessMode: 0 644 | projectName: 645 | organizationId: 646 | cloudEnabled: 0 647 | enableNativePlatformBackendsForNewInputSystem: 0 648 | disableOldInputManagerSupport: 0 649 | legacyClampBlendShapeWeights: 1 650 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.3.3f1 2 | m_EditorVersionWithRevision: 2020.3.3f1 (76626098c1c4) 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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Standalone: 5 227 | WebGL: 3 228 | Windows Store Apps: 5 229 | XboxOne: 5 230 | iPhone: 2 231 | tvOS: 2 232 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/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_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/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 | # Halodi Unity Package Creator 2 | 3 | See [halodi-unity-package-creator](Packages/halodi-unity-package-creator) for more information. 4 | 5 | -------------------------------------------------------------------------------- /UserSettings/EditorUserSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!162 &1 4 | EditorUserSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ConfigSettings: 8 | vcSharedLogLevel: 9 | value: 0d5e400f0650 10 | flags: 0 11 | m_VCAutomaticAdd: 1 12 | m_VCDebugCom: 0 13 | m_VCDebugCmd: 0 14 | m_VCDebugOut: 0 15 | m_SemanticMergeMode: 2 16 | m_VCShowFailedCheckout: 1 17 | m_VCOverwriteFailedCheckoutAssets: 1 18 | m_VCOverlayIcons: 1 19 | m_VCAllowAsyncUpdate: 0 20 | --------------------------------------------------------------------------------