├── .gitignore ├── .nuspec ├── .template.config ├── README.md ├── collect-guids └── template.json ├── CHANGELOG.md ├── CHANGELOG.md.meta ├── Documentation~ └── Template.md ├── Editor.meta ├── Editor ├── EditorExample.cs ├── EditorExample.cs.meta ├── Zigurous.Template.Editor.asmdef └── Zigurous.Template.Editor.asmdef.meta ├── HOWTO.md ├── HOWTO.md.meta ├── LICENSE.md ├── LICENSE.md.meta ├── README.md ├── README.md.meta ├── Runtime.meta ├── Runtime ├── RuntimeExample.cs ├── RuntimeExample.cs.meta ├── Zigurous.Template.asmdef └── Zigurous.Template.asmdef.meta ├── Samples~ ├── Sample 1.meta ├── Sample 1 │ ├── .sample.json │ ├── sample1.cs │ └── sample1.cs.meta ├── Sample 2.meta └── Sample 2 │ ├── .sample.json │ ├── pic.png │ └── pic.png.meta ├── Tests.meta ├── Tests ├── Editor.meta ├── Editor │ ├── EditorExampleTest.cs │ ├── EditorExampleTest.cs.meta │ ├── Zigurous.Template.Editor.Tests.asmdef │ └── Zigurous.Template.Editor.Tests.asmdef.meta ├── Runtime.meta └── Runtime │ ├── RuntimeExampleTest.cs │ ├── RuntimeExampleTest.cs.meta │ ├── Zigurous.Template.Tests.asmdef │ └── Zigurous.Template.Tests.asmdef.meta ├── _LICENSE.md ├── _LICENSE.md.meta ├── _README.md ├── _README.md.meta ├── package.json └── package.json.meta /.gitignore: -------------------------------------------------------------------------------- 1 | /Samples 2 | /Samples.meta 3 | -------------------------------------------------------------------------------- /.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SeawispHunter.Unity3D.Package.Template 5 | 0.1.1 6 | 7 | Creates a Unity 3D Package from a template 8 | 9 | Shane Celis of Seawisp Hunter, LLC 10 | MIT 11 | https://github.com/shanecelis/unity-package-template 12 | false 13 | Copyright (c) 2021 Seawisp Hunter, LLC 14 | unity3d game package 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /.template.config/README.md: -------------------------------------------------------------------------------- 1 | # Notes for template.json 2 | 3 | Piecing together how to use dotnet templates wasn't easy, so I'm collecting the links and resources I used here. You're welcome, Future Shane. 4 | 5 | ## Templating 6 | 7 | * [json comments](https://dev.to/napolux/how-to-add-comments-to-packagejson-5doi) 8 | 9 | Didn't use json comments but was tempted. 10 | 11 | * [cheat sheet](https://queil.net/blog/dotnet-templating-cheat-sheet/) 12 | 13 | * [big in the wild template](https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/template.json) 14 | 15 | * [dotnet templating wiki](https://github.com/dotnet/templating/wiki) 16 | 17 | * [template samples](https://github.com/dotnet/dotnet-template-samples) 18 | 19 | * [Reference for template.json](https://github.com/dotnet/templating/wiki/Reference-for-template.json) 20 | 21 | ## Unity Packaging 22 | 23 | * [GitDependencyResolverForUnity](https://github.com/mob-sakai/GitDependencyResolverForUnity) 24 | * [template-unity-package](https://github.com/OmiyaGames/template-unity-package) 25 | * [UnityPackageExample](https://github.com/IsaiahKelly/UnityPackageExample) 26 | * [3d-group's unity-package-template](https://github.com/3d-group/unity-package-template) 27 | * [Creating Custom Packages](https://neogeek.dev/creating-custom-packages-for-unity-2018.3/) 28 | * [Working with Custom Packages](https://nagachiang.github.io/tutorial-working-with-custom-package-in-unity-2019-2/#) 29 | * [Unity Packages documentation](https://docs.unity3d.com/Manual/PackagesList.html) 30 | -------------------------------------------------------------------------------- /.template.config/collect-guids: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Collect the GUIDs for inclusion in the template.json file. 3 | 4 | # echo >&2 "Warning: Remove the last comma on the GUIDs." 5 | # Nevermind. Perl will handle it. 6 | 7 | echo ' "guids": [' 8 | grep -hr ^guid * | sort | awk '{printf " \"%s\",\n", $2}' | perl -pe 'BEGIN { $/=""; } { s/,([^,]*)$/$1/gs; }' 9 | echo ' ],' 10 | -------------------------------------------------------------------------------- /.template.config/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/template", 3 | "author": "Shane Celis", 4 | "classifications": [ "Unity3D", "Package" ], 5 | "name": "Unity Package", 6 | "generatorVersions": "[1.0.0.0-*)", 7 | "precedence": "100", 8 | "identity": "seawisphunter.unitypackage", 9 | "groupIdentity": "seawisphunter", 10 | "shortName": "unitypackage", 11 | "tags": { 12 | "language": "C#", 13 | "type":"project" 14 | }, 15 | "sourceName": "unity-package-template", 16 | "preferNameDirectory":true, 17 | "symbols": { 18 | "name": { 19 | "type": "parameter", 20 | "defaultValue": "My Package", 21 | "replaces": "{Template}" 22 | }, 23 | "company": { 24 | "type": "parameter", 25 | "defaultValue": "Acme", 26 | "replaces": "{Zigurous}", 27 | "isRequired": true 28 | }, 29 | "nameNoSpaces": { 30 | "type": "derived", 31 | "valueSource": "name", 32 | "valueTransform": "ValueWithoutSpaces", 33 | "fileRename": "Template", 34 | "replaces": "Template" 35 | }, 36 | "companyNoSpaces": { 37 | "type": "derived", 38 | "valueSource": "company", 39 | "valueTransform": "ValueWithoutSpaces", 40 | "fileRename": "Zigurous", 41 | "replaces": "Zigurous" 42 | }, 43 | "nameLower": { 44 | "type": "generated", 45 | "generator": "casing", 46 | "parameters": { 47 | "source":"nameNoSpaces", 48 | "toLower": true 49 | } 50 | }, 51 | "companyLower": { 52 | "type": "generated", 53 | "generator": "casing", 54 | "parameters": { 55 | "source": "companyNoSpaces", 56 | "toLower": true 57 | } 58 | }, 59 | "fullPackageName": { 60 | "type": "generated", 61 | "generator": "join", 62 | "replaces": "com.zigurous.template", 63 | "parameters": { 64 | "separator": ".", 65 | "symbols": [ 66 | { 67 | "type": "const", 68 | "value": "com" 69 | }, 70 | { 71 | "type": "ref", 72 | "value": "companyLower" 73 | }, 74 | { 75 | "type": "ref", 76 | "value": "nameLower" 77 | } 78 | ] 79 | } 80 | }, 81 | "companyDomain": { 82 | "type": "generated", 83 | "generator": "join", 84 | "replaces": "zigurous.com", 85 | "parameters": { 86 | "separator": ".", 87 | "symbols": [ 88 | { 89 | "type": "ref", 90 | "value": "companyLower" 91 | }, 92 | { 93 | "type": "const", 94 | "value": "com" 95 | } 96 | ] 97 | } 98 | }, 99 | "author": { 100 | "type": "parameter", 101 | "defaultValue": "John Smith", 102 | "replaces": "John Smith" 103 | }, 104 | "unity": { 105 | "type": "parameter", 106 | "defaultValue": "2018.3", 107 | "replaces":"2019.4" 108 | }, 109 | "HostIdentifier": { 110 | "type": "bind", 111 | "binding": "HostIdentifier" 112 | }, 113 | "packageType": { 114 | "type": "parameter", 115 | "datatype": "choice", 116 | "defaultValue": "library", 117 | "choices": [ 118 | { "choice": "tests" }, 119 | { "choice": "sample" }, 120 | { "choice": "template" }, 121 | { "choice": "module" }, 122 | { "choice": "library" }, 123 | { "choice": "tool" } 124 | ], 125 | "replaces": "{packageType}" 126 | } 127 | }, 128 | "forms": { 129 | "ValueAfterLastDot": { 130 | "identifier": "replace", 131 | "pattern": "^.*\\.(?=[^\\.]+$)", // regex to match everything up to and including the final "." 132 | "replacement": "" // replace it with empty string 133 | }, 134 | "ValueWithoutSpaces": { 135 | "identifier": "replace", 136 | "pattern": " ", 137 | "replacement": "" 138 | }, 139 | "global": [ "identity" ] 140 | }, 141 | "guids": [ 142 | "0acea71f743abe647a4a0f888d3f45d8", 143 | "11163bd9f181f4b489c96e3d91a4d07f", 144 | "17744dc8841f01845950176f54e87817", 145 | "21eb14267a7c044e2a1d03eee079723b", 146 | "2a5282dadda3849ce8fe230c7459da0e", 147 | "2dcb02c4ba1b25141b7cb25e25135974", 148 | "358c6405db1a142cfb090a38f6badce2", 149 | "358c6405db1a142cfb090a38f6badce2", 150 | "5aac7f2d34b5d48c4bed80c4dba49fe1", 151 | "5d75577661a1b491f87a47819c54fe10", 152 | "5d75577661a1b491f87a47819c54fe10", 153 | "5eee9bd6b2cfa41d69101259afd29d25", 154 | "5eee9bd6b2cfa41d69101259afd29d25", 155 | "6079180de55514dde9c6f5e7023e689f", 156 | "6079180de55514dde9c6f5e7023e689f", 157 | "7454f8eae072343b5896e7ef2eed2079", 158 | "96cc9e30d405f79469af0fc01a07e76b", 159 | "a14955afcaedcdc4593859f360004f31", 160 | "abe1f18a4d378414baf7bf212b7106d5", 161 | "af466a11a6d0e46ee8772fccf2f1b3f2", 162 | "b99b5721514f6b34ba687038e889c707", 163 | "da7f2eeb1876b664eabfd0d97f61d041", 164 | "e993d0025bd900f4587d33da9e67a8a1", 165 | "ea0d92845a2794485a8309d77b4e9742", 166 | "f478f5ce49f7e466f8e40adb1c9f711a", 167 | "f4a8fd3c0fe1b42d59af3292d7e1411e", 168 | "f981e48cd0cbde246b1f5fe65ebb00fd", 169 | "fe09d9e5121f61d46ba3a40d11da447b" 170 | ], 171 | "sources": [ 172 | { 173 | "modifiers": [ 174 | { 175 | "exclude": [ ".git/**", 176 | ".#**", 177 | "README.md", "README.md.meta", 178 | "LICENSE.md", "LICENSE.md.meta", 179 | "HOWTO.md", "HOWTO.md.meta", 180 | "Samples/**", "Samples.meta", 181 | "*.nupkg", "*.nupkg.meta", 182 | ".nuspec", ".nuspec.meta" 183 | ], 184 | "rename": { "_README.md": "README.md", 185 | "_README.md.meta": "README.md.meta", 186 | "_LICENSE.md": "LICENSE.md", 187 | "_LICENSE.md.meta": "LICENSE.md.meta" } 188 | } 189 | ] 190 | } 191 | ], 192 | "primaryOutputs": [ 193 | { 194 | "path": "package.json" 195 | }, 196 | { 197 | "path": "README.md" 198 | } 199 | ], 200 | "postActions": [ 201 | { 202 | "id": "open-file", 203 | "condition": "(HostIdentifier != \"dotnetcli\")", 204 | "description": "Opens package.json and README.md in the editor.", 205 | "manualInstructions": [ { 206 | "text": "Edit 'package.json' and 'README.md'." 207 | }], 208 | "actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", 209 | "args": { 210 | "files": "0", 211 | }, 212 | "continueOnError": true 213 | }, 214 | { 215 | "condition": "(HostIdentifier == \"dotnetcli\")", 216 | "manualInstructions": [ { 217 | "text": "Edit 'package.json' and 'README.md'." 218 | }], 219 | "actionId": "AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C", 220 | "continueOnError": true 221 | } 222 | ] 223 | 224 | } 225 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Template Changelog 2 | 3 | TODO: Keep a changelog[1]. 4 | 5 | [1]: https://keepachangelog.com/en/1.0.0/ 6 | -------------------------------------------------------------------------------- /CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a14955afcaedcdc4593859f360004f31 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Documentation~/Template.md: -------------------------------------------------------------------------------- 1 | # Template Documentation 2 | 3 | TODO: Add documentation. 4 | -------------------------------------------------------------------------------- /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe09d9e5121f61d46ba3a40d11da447b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/EditorExample.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Zigurous.Template { 6 | 7 | public class EditorExample : MonoBehaviour 8 | { 9 | // Start is called before the first frame update 10 | void Start() 11 | { 12 | 13 | } 14 | 15 | // Update is called once per frame 16 | void Update() 17 | { 18 | 19 | } 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Editor/EditorExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f478f5ce49f7e466f8e40adb1c9f711a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Zigurous.Template.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Zigurous.Template.Editor", 3 | "references": [ 4 | "Zigurous.Template" 5 | ], 6 | "optionalUnityReferences": [], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [] 16 | } -------------------------------------------------------------------------------- /Editor/Zigurous.Template.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17744dc8841f01845950176f54e87817 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /HOWTO.md: -------------------------------------------------------------------------------- 1 | # HOWTO 2 | 3 | Remind myself how to do the maintenance of this package. 4 | 5 | ## How to package nupkg? 6 | 7 | $ nupkg pack .nuspec 8 | 9 | ## How to inspect package? 10 | 11 | $ unzip -l SeawispHunter.Unity3D.Package.Template.\*.nupkg 12 | 13 | ## How to upload package? 14 | 15 | $ dotnet nuget push SeawispHunter.Unity3D.Package.Template.0.1.1.nupkg --source https://api.nuget.org/v3/index.jso 16 | 17 | ## How to generate the file tree? 18 | 19 | $ tree -I '*.meta' | pbcopy 20 | 21 | ## How to update GUIDs? 22 | 23 | $ bash .template.config/collect-guids 24 | -------------------------------------------------------------------------------- /HOWTO.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 925ec58312f324fd7a727a29f2025bde 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright 2021 Seawisp Hunter, LLC 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af466a11a6d0e46ee8772fccf2f1b3f2 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity Package Template 2 | 3 | This is a Unity Package Template made according to Unity's [layout convention](https://docs.unity3d.com/Manual/cus-layout.html). It works as a dotnet template. 4 | 5 | ## Installation 6 | 7 | Install the template from NuGet or from a cloned repository. 8 | 9 | ### Install from NuGet 10 | 11 | Install the template from [NuGet](https://www.nuget.org/packages/SeawispHunter.Unity3D.Package.Template/). 12 | 13 | $ dotnet new --install SeawispHunter.Unity3D.Package.Template 14 | 15 | ### Install from repository 16 | 17 | Install the template from git repo. 18 | 19 | $ git clone https://github.com/shanecelis/unity-package-template 20 | $ dotnet new --install unity-package-template 21 | 22 | 23 | ## Usage 24 | 25 | Create a directory. Choose the name carefully; its name is your package's name. 26 | 27 | $ mkdir MyPackage 28 | $ cd MyPackage 29 | $ dotnet new unitypackage --company "My Company" 30 | 31 | This creates the following files (meta files excluded for clarity): 32 | 33 | 34 | MyPackage 35 | ├── CHANGELOG.md 36 | ├── Documentation~ 37 | │   └── MyPackage.md 38 | ├── Editor 39 | │   ├── EditorExample.cs 40 | │   └── MyCompany.MyPackage.Editor.asmdef 41 | ├── LICENSE.md 42 | ├── README.md 43 | ├── Runtime 44 | │   ├── MyCompany.MyPackage.asmdef 45 | │   └── RuntimeExample.cs 46 | ├── Samples~ 47 | │   ├── Sample 1 48 | │   │   └── Sample1.cs 49 | │   └── Sample 2 50 | │   └── pic.png 51 | ├── Tests 52 | │   ├── Editor 53 | │   │   ├── EditorExampleTest.cs 54 | │   │   └── MyCompany.MyPackage.Editor.Tests.asmdef 55 | │   └── Runtime 56 | │   ├── MyCompany.MyPackage.Tests.asmdef 57 | │   └── RuntimeExampleTest.cs 58 | └── package.json 59 | 60 | The generated package name is "com.mycompany.mypackage" but edit that to your liking. Many values are only located within the `package.json` file, like the package description. It's expected that you will edit it after generation. 61 | 62 | $ $EDITOR package.json 63 | 64 | ## Using the Package 65 | 66 | See Unity's documentation for ways that you can [share your package](https://docs.unity3d.com/Manual/cus-share.html) or the template's [README](_README.md). 67 | 68 | ## Technical Notes 69 | 70 | ### GUIDs 71 | 72 | New GUIDs are generated on each invocation so there will be no meta file conflicts with separate packages. However, if you're adding a new file to this template, remember to add its GUID to the `.template.config/template.json` file. If you're adding a lot of files, use the `.template.config/collect-guids` bash script to help. 73 | 74 | ## Tips 75 | 76 | The `Samples~` directory can be difficult to work when developing your package since Unity will not import it because it has the tilde suffix. One tip for Unix users is to make a symbolic link when you're developing your samples like this: 77 | 78 | $ ln -s Samples\~ Samples 79 | 80 | You may want to add `Samples` and `Samples.meta` to your `.gitignore` file. 81 | 82 | ## Acknowledgements 83 | 84 | Thank you to [Adam Graham](https://twitter.com/Zigurous) of [Zigurous](https://zigurous.com) for creating [unity-package-template](https://github.com/zigurous/unity-package-template), of which this is a fork. 85 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e993d0025bd900f4587d33da9e67a8a1 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11163bd9f181f4b489c96e3d91a4d07f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/RuntimeExample.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Zigurous.Template { 6 | 7 | public class RuntimeExample : MonoBehaviour 8 | { 9 | // Start is called before the first frame update 10 | void Start() 11 | { 12 | 13 | } 14 | 15 | // Update is called once per frame 16 | void Update() 17 | { 18 | 19 | } 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Runtime/RuntimeExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea0d92845a2794485a8309d77b4e9742 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Zigurous.Template.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Zigurous.Template", 3 | "references": [], 4 | "includePlatforms": [], 5 | "excludePlatforms": [], 6 | "allowUnsafeCode": false, 7 | "overrideReferences": false, 8 | "precompiledReferences": [], 9 | "autoReferenced": true, 10 | "defineConstraints": [], 11 | "versionDefines": [], 12 | "noEngineReferences": false 13 | } 14 | -------------------------------------------------------------------------------- /Runtime/Zigurous.Template.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dcb02c4ba1b25141b7cb25e25135974 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/Sample 1.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d75577661a1b491f87a47819c54fe10 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/Sample 1/.sample.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Sample 1", 3 | "description": "This is sample 1" 4 | } -------------------------------------------------------------------------------- /Samples~/Sample 1/sample1.cs: -------------------------------------------------------------------------------- 1 | class Sample1 { 2 | } 3 | -------------------------------------------------------------------------------- /Samples~/Sample 1/sample1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5eee9bd6b2cfa41d69101259afd29d25 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/Sample 2.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6079180de55514dde9c6f5e7023e689f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/Sample 2/.sample.json: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Sample 1", 3 | "description": "This is sample 1" 4 | } -------------------------------------------------------------------------------- /Samples~/Sample 2/pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shanecelis/unity-package-template/d5995f979d4192309242a450931c857f965415a9/Samples~/Sample 2/pic.png -------------------------------------------------------------------------------- /Samples~/Sample 2/pic.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 358c6405db1a142cfb090a38f6badce2 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abe1f18a4d378414baf7bf212b7106d5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96cc9e30d405f79469af0fc01a07e76b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Editor/EditorExampleTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using NUnit.Framework; 4 | using UnityEngine; 5 | using UnityEngine.TestTools; 6 | 7 | namespace Zigurous.Template.Tests 8 | { 9 | public class EditorExampleTest 10 | { 11 | // A Test behaves as an ordinary method 12 | [Test] 13 | public void NewTestScriptSimplePasses() 14 | { 15 | // Use the Assert class to test conditions 16 | } 17 | 18 | // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use 19 | // `yield return null;` to skip a frame. 20 | [UnityTest] 21 | public IEnumerator NewTestScriptWithEnumeratorPasses() 22 | { 23 | // Use the Assert class to test conditions. 24 | // Use yield to skip a frame. 25 | yield return null; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Tests/Editor/EditorExampleTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5aac7f2d34b5d48c4bed80c4dba49fe1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Editor/Zigurous.Template.Editor.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Zigurous.Template.Editor.Tests", 3 | "references": [ 4 | "Zigurous.Template", 5 | "Zigurous.Template.Editor" 6 | ], 7 | "optionalUnityReferences": [ 8 | "TestAssemblies" 9 | ], 10 | "includePlatforms": [ 11 | "Editor" 12 | ], 13 | "excludePlatforms": [], 14 | "allowUnsafeCode": false, 15 | "overrideReferences": false, 16 | "precompiledReferences": [], 17 | "autoReferenced": true, 18 | "defineConstraints": [] 19 | } -------------------------------------------------------------------------------- /Tests/Editor/Zigurous.Template.Editor.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f981e48cd0cbde246b1f5fe65ebb00fd 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b99b5721514f6b34ba687038e889c707 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Runtime/RuntimeExampleTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using NUnit.Framework; 4 | using UnityEngine; 5 | using UnityEngine.TestTools; 6 | 7 | namespace Zigurous.Template.Tests 8 | { 9 | public class RuntimeExampleTest 10 | { 11 | // A Test behaves as an ordinary method 12 | [Test] 13 | public void NewTestScriptSimplePasses() 14 | { 15 | // Use the Assert class to test conditions 16 | } 17 | 18 | // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use 19 | // `yield return null;` to skip a frame. 20 | [UnityTest] 21 | public IEnumerator NewTestScriptWithEnumeratorPasses() 22 | { 23 | // Use the Assert class to test conditions. 24 | // Use yield to skip a frame. 25 | yield return null; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Tests/Runtime/RuntimeExampleTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4a8fd3c0fe1b42d59af3292d7e1411e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/Zigurous.Template.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Zigurous.Template.Tests", 3 | "references": [ 4 | "Zigurous.Template" 5 | ], 6 | "optionalUnityReferences": [ 7 | "TestAssemblies" 8 | ], 9 | "includePlatforms": [], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [] 16 | } -------------------------------------------------------------------------------- /Tests/Runtime/Zigurous.Template.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da7f2eeb1876b664eabfd0d97f61d041 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /_LICENSE.md: -------------------------------------------------------------------------------- 1 | # Template License 2 | 3 | TODO: Choose a license. 4 | -------------------------------------------------------------------------------- /_LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21eb14267a7c044e2a1d03eee079723b 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /_README.md: -------------------------------------------------------------------------------- 1 | # Template README 2 | 3 | Lorem ipsum description. 4 | 5 | ## Installation 6 | 7 | ### Requirements 8 | 9 | * Unity 2019.4 or later 10 | 11 | ``` 12 | $ git clone https://github.com/Zigurous/Template.git 13 | ``` 14 | 15 | ### Usage 16 | 17 | Find the `manifest.json` file in the `Packages` directory in your project and edit it as follows: 18 | ``` 19 | { 20 | "dependencies": { 21 | "com.zigurous.template": "https://github.com/Zigurous/Template.git", 22 | ... 23 | }, 24 | } 25 | ``` 26 | To select a particular version of the package, add the suffix `#{git-tag}`. 27 | 28 | * e.g. `"com.zigurous.template": "https://github.com/Zigurous/Template.git#1.2.0"` 29 | 30 | 31 | ## Acknowledgements 32 | 33 | This package was originally generated from [Shane Celis](https://twitter.com/shanecelis)'s [unity-package-template](https://github.com/shanecelis/unity-package-template). 34 | -------------------------------------------------------------------------------- /_README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7454f8eae072343b5896e7ef2eed2079 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.zigurous.template", 3 | "version": "0.1.1-preview", 4 | "displayName": "{Zigurous} {Template}", 5 | "description": "Lorem ipsum description.", 6 | "unity": "2019.4", 7 | "type": "{packageType}", 8 | "author": { 9 | "name": "John Smith", 10 | "email": "support@zigurous.com", 11 | "url": "https://zigurous.com" 12 | }, 13 | "dependencies": { }, 14 | "license": "Undeclared", 15 | "keywords": [ 16 | "unity" 17 | ], 18 | "samples": [ 19 | { 20 | "displayName": "Sample 1", 21 | "path": "Samples~/Sample 1" 22 | }, 23 | { 24 | "displayName": "Sample 2", 25 | "path": "Samples~/Sample 2" 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0acea71f743abe647a4a0f888d3f45d8 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | --------------------------------------------------------------------------------