├── .gitignore ├── Assets ├── Plugins.meta └── Plugins │ ├── UnityPackageExample.meta │ └── UnityPackageExample │ ├── Namespace.UnityPackageExample.asmdef │ ├── Namespace.UnityPackageExample.asmdef.meta │ ├── Scripts.meta │ ├── Scripts │ ├── Message.cs │ └── Message.cs.meta │ ├── package.json │ └── package.json.meta ├── LICENSE ├── Makefile └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | [Ll]ogs/ 7 | 8 | # Never ignore Asset meta data 9 | ![Aa]ssets/**/*.meta 10 | 11 | # Uncomment this line if you wish to ignore the asset store tools plugin 12 | # [Aa]ssets/AssetStoreTools* 13 | 14 | # Visual Studio cache directory 15 | .vs/ 16 | 17 | # Gradle cache directory 18 | .gradle/ 19 | 20 | # Autogenerated VS/MD/Consulo solution and project files 21 | ExportedObj/ 22 | .consulo/ 23 | *.csproj 24 | *.unityproj 25 | *.sln 26 | *.suo 27 | *.tmp 28 | *.user 29 | *.userprefs 30 | *.pidb 31 | *.booproj 32 | *.svd 33 | *.pdb 34 | *.mdb 35 | *.opendb 36 | *.VC.db 37 | 38 | # Unity3D generated meta files 39 | *.pidb.meta 40 | *.pdb.meta 41 | *.mdb.meta 42 | 43 | # Unity3D generated file on crash reports 44 | sysinfo.txt 45 | 46 | # Builds 47 | *.apk 48 | *.unitypackage 49 | 50 | # Crashlytics generated file 51 | crashlytics-build.properties 52 | 53 | # Custom 54 | 55 | Packages/ 56 | ProjectSettings/ 57 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ba38fa30f1e241f29adf5064f29c859 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 817c4ec690164451e8601e5316f3600f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/Namespace.UnityPackageExample.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Namespace.UnityPackageExample", 3 | "references": [], 4 | "optionalUnityReferences": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": false, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [] 12 | } -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/Namespace.UnityPackageExample.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79a7faa1c5cfb45eda24319fef9286a4 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaca4b926883d46d194a63a6e474e9d0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/Scripts/Message.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Namespace.UnityPackageExample 4 | { 5 | 6 | public static class Message 7 | { 8 | 9 | public static void HelloWorld() 10 | { 11 | 12 | Debug.Log("Hello, World"); 13 | 14 | } 15 | 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/Scripts/Message.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dc0ccf5a184c4869bf7e63ca1beb6aa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.namespace.unitypackageexample", 3 | "displayName": "Unity Package Example", 4 | "version": "1.0.0", 5 | "unity": "2018.3", 6 | "description": "Example package for use with the Unity 2018.3 package manager." 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Plugins/UnityPackageExample/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dc1a68c7391e4e70bb43a6e908d1043 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 Scott Doxey 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | deploy: 2 | git subtree push --prefix Assets/Plugins/UnityPackageExample origin upm 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity Package Example 2 | 3 | ## Installation 4 | 5 | 6 | 7 | ```json 8 | { 9 | "dependencies": { 10 | "com.namespace.unitypackageexample": "https://github.com/neogeek/unity-package-example.git#upm" 11 | } 12 | } 13 | ``` 14 | --------------------------------------------------------------------------------