├── Assets ├── example_scene.unity.meta ├── example_icon.png ├── example_image.png ├── example_splash.png ├── example_scene.unity ├── example_script.cs.meta ├── example_script.cs ├── example_icon.png.meta ├── example_splash.png.meta └── example_image.png.meta ├── ProjectSettings ├── TagManager.asset ├── AudioManager.asset ├── InputManager.asset ├── NavMeshLayers.asset ├── TimeManager.asset ├── DynamicsManager.asset ├── EditorSettings.asset ├── NetworkManager.asset ├── ProjectSettings.asset ├── QualitySettings.asset └── EditorBuildSettings.asset ├── .gitignore ├── README.md └── LICENSE.md /Assets/example_scene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e271bd921f0b8453099bf5abb64a4d12 3 | -------------------------------------------------------------------------------- /Assets/example_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/Assets/example_icon.png -------------------------------------------------------------------------------- /Assets/example_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/Assets/example_image.png -------------------------------------------------------------------------------- /Assets/example_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/Assets/example_splash.png -------------------------------------------------------------------------------- /Assets/example_scene.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/Assets/example_scene.unity -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/cicd-unity-project-exampleunity/master/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /Assets/example_script.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ab14ca4da074474f8d163bc9fa00399 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore misc OS files... 2 | .DS_Store 3 | .DS_Store? 4 | ._* 5 | .Spotlight-V100 6 | .Trashes 7 | ehthumbs.db 8 | Thumbs.db 9 | 10 | # Ignore Unity artifacts 11 | Library 12 | Temp 13 | *.csproj 14 | *.pidb 15 | *.sln 16 | *.userprefs 17 | 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | exampleunity 2 | ============ 3 | 4 | An example app created using the Unity game engine: http://unity3d.com/ 5 | 6 | Builds as-is for iOS, Android and the web. http://tsugi.co/ 7 | 8 | Feel free to build from this repo, or use this as a starting point for Unity projects of your own. 9 | 10 | The Tsugi name and logo © copyright Tsugi, 2013. 11 | -------------------------------------------------------------------------------- /Assets/example_script.cs: -------------------------------------------------------------------------------- 1 | // single_script.cs 2 | // Example code for small Unity project using C# 3 | 4 | using UnityEngine; 5 | using System.Collections; 6 | 7 | public class example_script : MonoBehaviour { 8 | 9 | public Texture aTexture; 10 | 11 | void OnGUI() { 12 | #if UNITY_EDITOR 13 | if (!aTexture) { 14 | Debug.LogError("Assign a Texture in the inspector."); 15 | return; 16 | } 17 | #endif 18 | // Draws a single image in a square the size of the screen 19 | int width = Screen.width; 20 | int height = Screen.height; 21 | int left = 0; 22 | int top = 0; 23 | 24 | if (width > height) 25 | width = height; 26 | else 27 | height = width; 28 | 29 | left = Screen.width/2 - width/2; 30 | top = Screen.height/2 - height/2; 31 | 32 | GUI.DrawTexture(new Rect(left, top, width, height), aTexture); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Assets/example_icon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1283479de3734522bff34cbbfba5295 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | textureFormat: -1 23 | maxTextureSize: 1024 24 | textureSettings: 25 | filterMode: -1 26 | aniso: -1 27 | mipBias: -1 28 | wrapMode: -1 29 | nPOTScale: 1 30 | lightmap: 0 31 | compressionQuality: 50 32 | textureType: -1 33 | buildTargetSettings: 34 | - buildTarget: iPhone 35 | maxTextureSize: 1024 36 | textureFormat: -3 37 | compressionQuality: 50 38 | - buildTarget: Android 39 | maxTextureSize: 1024 40 | textureFormat: -3 41 | compressionQuality: 50 42 | -------------------------------------------------------------------------------- /Assets/example_splash.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5dbcd4335a3440f693b0ce98a5d254e 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | textureFormat: -1 23 | maxTextureSize: 1024 24 | textureSettings: 25 | filterMode: -1 26 | aniso: -1 27 | mipBias: -1 28 | wrapMode: -1 29 | nPOTScale: 1 30 | lightmap: 0 31 | compressionQuality: 50 32 | textureType: -1 33 | buildTargetSettings: 34 | - buildTarget: iPhone 35 | maxTextureSize: 1024 36 | textureFormat: -3 37 | compressionQuality: 50 38 | - buildTarget: Android 39 | maxTextureSize: 1024 40 | textureFormat: -3 41 | compressionQuality: 50 42 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Tsugi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /Assets/example_image.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e338cc020b4c4bd7a580f7cd168a9c1 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | textureFormat: -1 23 | maxTextureSize: 1024 24 | textureSettings: 25 | filterMode: 1 26 | aniso: 1 27 | mipBias: -1 28 | wrapMode: 1 29 | nPOTScale: 0 30 | lightmap: 0 31 | compressionQuality: 50 32 | textureType: 2 33 | buildTargetSettings: 34 | - buildTarget: Web 35 | maxTextureSize: 1024 36 | textureFormat: -3 37 | compressionQuality: 50 38 | - buildTarget: Standalone 39 | maxTextureSize: 1024 40 | textureFormat: -3 41 | compressionQuality: 50 42 | - buildTarget: iPhone 43 | maxTextureSize: 1024 44 | textureFormat: -3 45 | compressionQuality: 50 46 | - buildTarget: Android 47 | maxTextureSize: 1024 48 | textureFormat: -3 49 | compressionQuality: 50 50 | --------------------------------------------------------------------------------