├── .gitattributes ├── Assets ├── Scripts │ ├── ILocalization.cs │ ├── ISerializer.cs.meta │ ├── JsonSerializer.cs.meta │ ├── ExampleConsumer.cs.meta │ ├── ExampleInstaller.cs.meta │ ├── ICustomStartHandler.cs.meta │ ├── LifeCyclePrinter.cs.meta │ ├── MockLocalization.cs.meta │ ├── ISerializer.cs │ ├── JsonSerializer.cs │ ├── MockLocalization.cs │ ├── ICustomStartHandler.cs │ ├── ILocalization.cs.meta │ ├── ExampleConsumer.cs │ ├── LifeCyclePrinter.cs │ └── ExampleInstaller.cs ├── TinyContainer │ ├── Runtime │ │ ├── EventFunction.cs.meta │ │ ├── IUpdateHandler.cs.meta │ │ ├── IFixedUpdateHandler.cs.meta │ │ ├── ILateUpdateHandler.cs.meta │ │ ├── ObjectExtensions.cs.meta │ │ ├── TypeNotFoundException.cs.meta │ │ ├── IUpdateHandler.cs │ │ ├── ILateUpdateHandler.cs │ │ ├── IFixedUpdateHandler.cs │ │ ├── Jnk.TinyContainer.asmdef.meta │ │ ├── EventFunction.cs │ │ ├── ObjectExtensions.cs │ │ ├── TinyContainer.cs.meta │ │ ├── TinyContainerGlobal.cs.meta │ │ ├── TinyContainerScene.cs.meta │ │ ├── TinyContainerBootstrapperBase.cs.meta │ │ ├── TinyContainerObjectInstaller.cs.meta │ │ ├── Jnk.TinyContainer.asmdef │ │ ├── TinyContainerGlobal.cs │ │ ├── TinyContainerBootstrapperBase.cs │ │ ├── TinyContainerScene.cs │ │ ├── TinyContainerObjectInstaller.cs │ │ ├── TypeNotFoundException.cs │ │ └── TinyContainer.cs │ ├── Editor │ │ ├── TinyContainerSceneEditor.cs.meta │ │ ├── TinyContainerObjectBootstrapperEditor.cs.meta │ │ ├── Resources │ │ │ ├── TinyContainer Icon.png │ │ │ └── TinyContainer Icon.png.meta │ │ ├── Resources.meta │ │ ├── Jnk.TinyContainer.Editor.asmdef.meta │ │ ├── TinyContainerEditor.cs.meta │ │ ├── TinyContainerRootEditor.cs.meta │ │ ├── Jnk.TinyContainer.Editor.asmdef │ │ ├── TinyContainerSceneEditor.cs │ │ ├── TinyContainerRootEditor.cs │ │ ├── TinyContainerObjectBootstrapperEditor.cs │ │ └── TinyContainerEditor.cs │ ├── package.json.meta │ ├── Editor.meta │ ├── Runtime.meta │ └── package.json ├── Scenes.meta ├── Scenes │ ├── SampleScene.unity.meta │ └── SampleScene.unity ├── Scripts.meta └── TinyContainer.meta ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── PresetManager.asset ├── EditorBuildSettings.asset ├── XRSettings.asset ├── VersionControlSettings.asset ├── TimeManager.asset ├── VFXManager.asset ├── AudioManager.asset ├── TagManager.asset ├── UnityConnectSettings.asset ├── PackageManagerSettings.asset ├── DynamicsManager.asset ├── MemorySettings.asset ├── EditorSettings.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── QualitySettings.asset └── ProjectSettings.asset ├── LICENSE ├── .gitignore ├── Packages ├── manifest.json └── packages-lock.json └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Assets/Scripts/ILocalization.cs: -------------------------------------------------------------------------------- 1 | namespace Examples 2 | { 3 | public interface ILocalization { } 4 | } 5 | -------------------------------------------------------------------------------- /Assets/Scripts/ISerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 971539eb1ee245d1a27b18db0841a86b 3 | timeCreated: 1618168244 -------------------------------------------------------------------------------- /Assets/Scripts/JsonSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 753ea826cf6146eab34f599a31e50201 3 | timeCreated: 1618168259 -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.31f1 2 | m_EditorVersionWithRevision: 2022.3.31f1 (4ede2d13e8b4) 3 | -------------------------------------------------------------------------------- /Assets/Scripts/ExampleConsumer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee290d891e0541a2933daccc913b6f67 3 | timeCreated: 1618154075 -------------------------------------------------------------------------------- /Assets/Scripts/ExampleInstaller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ff7df9a661d4fe09cafa875a247b4c4 3 | timeCreated: 1618153883 -------------------------------------------------------------------------------- /Assets/Scripts/ICustomStartHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c21064eddc7b46cd83c5a6faffbfc6a7 3 | timeCreated: 1635591483 -------------------------------------------------------------------------------- /Assets/Scripts/LifeCyclePrinter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b4508c7884c435aa31d2cacc80746d2 3 | timeCreated: 1635452076 -------------------------------------------------------------------------------- /Assets/Scripts/MockLocalization.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 668d52a1acec41f89f07fe69015bb8b8 3 | timeCreated: 1618153847 -------------------------------------------------------------------------------- /Assets/Scripts/ISerializer.cs: -------------------------------------------------------------------------------- 1 | namespace Examples 2 | { 3 | public interface ISerializer 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/JsonSerializer.cs: -------------------------------------------------------------------------------- 1 | namespace Examples 2 | { 3 | public class JsonSerializer : ISerializer 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/MockLocalization.cs: -------------------------------------------------------------------------------- 1 | namespace Examples 2 | { 3 | public class MockLocalization : ILocalization 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/EventFunction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39ff3f990d7042cc998a276452e4ce74 3 | timeCreated: 1662233700 -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/IUpdateHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2104dfb29e524ab29a5b87967b45d70c 3 | timeCreated: 1635451147 -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/IFixedUpdateHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfa5f5fb599d4466902a9abd15e2f851 3 | timeCreated: 1635451169 -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/ILateUpdateHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19f64c61e58d4d3da62922f9465cc76c 3 | timeCreated: 1662233179 -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/ObjectExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83d456698be5480199dcacbef24aa55d 3 | timeCreated: 1616927793 -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerSceneEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 485faa22a4964d80b6b0f7827f8ba51f 3 | timeCreated: 1624048252 -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TypeNotFoundException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55d7eaa6d2d04b0ca32a268634c75176 3 | timeCreated: 1644861394 -------------------------------------------------------------------------------- /Assets/Scripts/ICustomStartHandler.cs: -------------------------------------------------------------------------------- 1 | namespace Examples 2 | { 3 | public interface ICustomStartHandler 4 | { 5 | public void Start(); 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerObjectBootstrapperEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee8ef4e099664ce494cb8119acce720a 3 | timeCreated: 1617386334 -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/Resources/TinyContainer Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JanikHelbig/TinyContainer/HEAD/Assets/TinyContainer/Editor/Resources/TinyContainer Icon.png -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/IUpdateHandler.cs: -------------------------------------------------------------------------------- 1 | namespace Jnk.TinyContainer 2 | { 3 | public interface IUpdateHandler 4 | { 5 | public void Update(); 6 | } 7 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/ILateUpdateHandler.cs: -------------------------------------------------------------------------------- 1 | namespace Jnk.TinyContainer 2 | { 3 | public interface ILateUpdateHandler 4 | { 5 | public void LateUpdate(); 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/IFixedUpdateHandler.cs: -------------------------------------------------------------------------------- 1 | namespace Jnk.TinyContainer 2 | { 3 | public interface IFixedUpdateHandler 4 | { 5 | public void FixedUpdate(); 6 | } 7 | } -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86e0c457d7b755345aa4a38542036919 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5451275ef341b024ab7267947684de34 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TinyContainer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8aae72daef8da946939a1d1511f641c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TinyContainer/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f4d35bead333b04987c25cda350f60f 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8a3de8630c36ab4ebd4210ab51f2dd1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55d1c80ee9af8f24f8798e27c97fc09f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 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 | } -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5efc7c7bb90e78468d0350ad42dcd2a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/Jnk.TinyContainer.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 683eb415c59a66c40b09d8cf1710d72f 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/Jnk.TinyContainer.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5bad68910f4e204586291caaa6dea88 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/EventFunction.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Jnk.TinyContainer 4 | { 5 | [Flags] 6 | public enum EventFunction 7 | { 8 | None = 0, 9 | FixedUpdate = 1, 10 | Update = 2, 11 | LateUpdate = 4 12 | } 13 | } -------------------------------------------------------------------------------- /Assets/Scripts/ILocalization.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 703b8299dddedf2488afa5ac87772fb4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/ObjectExtensions.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Jnk.TinyContainer 4 | { 5 | internal static class ObjectExtensions 6 | { 7 | public static T IsNull(this T obj) where T : Object 8 | { 9 | return obj == null ? null : obj; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e63defe44f1146f28519048519c8343d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5ed81bbd3924b2ca5377d650e989a33 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerGlobal.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bffb7a086a44666b60556ad9e0a63ba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerScene.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5c627564c6543f0b5069bf34caa0b92 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerRootEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 783cc67ea0ac60945a27f7130e47026e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.jnk.tinycontainer", 3 | "version": "1.5.0", 4 | "displayName": "TinyContainer", 5 | "description": "A simple service locator implementation for Unity.", 6 | "unity": "2020.3", 7 | "author": { 8 | "name": "Janik Helbig", 9 | "email": "helbigjanik@gmail.com", 10 | "url": "https://github.com/JanikHelbig" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerBootstrapperBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c11833b172b41bc86c863cfe0b2d896 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerObjectInstaller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d52c47d5439f4b0eac685468803973d6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {fileID: 2800000, guid: 64e11cea40aa7ab4ea3491d78510520c, type: 3} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/Jnk.TinyContainer.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Jnk.TinyContainer", 3 | "rootNamespace": "Jnk.TinyContainer", 4 | "references": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": false, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [], 12 | "versionDefines": [], 13 | "noEngineReferences": false 14 | } -------------------------------------------------------------------------------- /Assets/Scripts/ExampleConsumer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Jnk.TinyContainer; 3 | 4 | namespace Examples 5 | { 6 | public class ExampleConsumer : MonoBehaviour 7 | { 8 | private ILocalization _localization; 9 | private ISerializer _serializer; 10 | 11 | private void Start() 12 | { 13 | TinyContainer.For(this) 14 | .Get(out _localization) 15 | .Get(out _serializer); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Scripts/LifeCyclePrinter.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Jnk.TinyContainer; 3 | 4 | namespace Examples 5 | { 6 | public class LifeCyclePrinter : IUpdateHandler, IFixedUpdateHandler, ICustomStartHandler 7 | { 8 | public void Update() 9 | { 10 | Debug.Log("Update"); 11 | } 12 | 13 | public void FixedUpdate() 14 | { 15 | Debug.Log("FixedUpdate"); 16 | } 17 | 18 | public void Start() 19 | { 20 | Debug.Log("Start"); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerGlobal.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Jnk.TinyContainer 4 | { 5 | [AddComponentMenu("TinyContainer/TinyContainer Global")] 6 | public class TinyContainerGlobal : TinyContainerBootstrapperBase 7 | { 8 | [SerializeField] 9 | private bool dontDestroyOnLoad; 10 | 11 | protected override void Bootstrap() 12 | { 13 | Container.ConfigureAsGlobal(dontDestroyOnLoad); 14 | } 15 | 16 | public void BootstrapOnDemand() => Bootstrap(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/Jnk.TinyContainer.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Jnk.TinyContainer.Editor", 3 | "rootNamespace": "Jnk.TinyContainer.Editor", 4 | "references": [ 5 | "GUID:683eb415c59a66c40b09d8cf1710d72f" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerBootstrapperBase.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Jnk.TinyContainer 4 | { 5 | [DisallowMultipleComponent] 6 | [RequireComponent(typeof(TinyContainer))] 7 | public abstract class TinyContainerBootstrapperBase : MonoBehaviour 8 | { 9 | private TinyContainer _container; 10 | internal TinyContainer Container => _container.IsNull() ?? (_container = GetComponent()); 11 | 12 | private void Awake() => Bootstrap(); 13 | 14 | protected abstract void Bootstrap(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerScene.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Jnk.TinyContainer 4 | { 5 | [AddComponentMenu("TinyContainer/TinyContainer Scene")] 6 | public class TinyContainerScene : TinyContainerBootstrapperBase 7 | { 8 | private bool _hasBeenBootstrapped; 9 | 10 | protected override void Bootstrap() 11 | { 12 | if (_hasBeenBootstrapped == false) 13 | Container.ConfigureForScene(); 14 | 15 | _hasBeenBootstrapped = true; 16 | } 17 | 18 | public void BootstrapOnDemand() => Bootstrap(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainerObjectInstaller.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace Jnk.TinyContainer 5 | { 6 | [AddComponentMenu("TinyContainer/TinyContainer Object Installer")] 7 | public class TinyContainerObjectInstaller : MonoBehaviour 8 | { 9 | [SerializeField] 10 | private List objects; 11 | 12 | protected void Awake() 13 | { 14 | TinyContainer container = TinyContainer.For(this); 15 | 16 | foreach (Object obj in objects) 17 | container.Register(obj.GetType(), obj); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TypeNotFoundException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.Serialization; 3 | 4 | namespace Jnk.TinyContainer 5 | { 6 | [Serializable] 7 | public class TypeNotFoundException : Exception 8 | { 9 | public TypeNotFoundException() 10 | { 11 | } 12 | 13 | public TypeNotFoundException(string message) : base(message) 14 | { 15 | } 16 | 17 | public TypeNotFoundException(string message, Exception inner) : base(message, inner) 18 | { 19 | } 20 | 21 | protected TypeNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) 22 | { 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Assets/Scripts/ExampleInstaller.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEngine; 4 | using Jnk.TinyContainer; 5 | 6 | namespace Examples 7 | { 8 | public class ExampleInstaller : MonoBehaviour 9 | { 10 | private void Awake() 11 | { 12 | TinyContainer.Global 13 | .Register(new LifeCyclePrinter()) 14 | .Register(new MockLocalization()); 15 | 16 | TinyContainer.ForSceneOf(this) 17 | .Register(new JsonSerializer()); 18 | } 19 | 20 | private void Start() 21 | { 22 | bool found = TinyContainer.Global.TryGet(out ISerializer serializer); 23 | 24 | if (found == false) 25 | Debug.Log($"Could not find serializer."); 26 | 27 | foreach (var startHandler in TinyContainer.Global.RegisteredInstances.OfType()) 28 | startHandler.Start(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Janik 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /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: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 0 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_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerSceneEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using System.Linq; 3 | using UnityEngine; 4 | 5 | namespace Jnk.TinyContainer.Editor 6 | { 7 | [CustomEditor(typeof(TinyContainerScene))] 8 | public class TinyContainerSceneEditor : UnityEditor.Editor 9 | { 10 | public override void OnInspectorGUI() 11 | { 12 | var sceneContainer = (TinyContainerScene) target; 13 | 14 | var isOnlyOneInScene = true; 15 | 16 | foreach (GameObject gameObject in sceneContainer.gameObject.scene.GetRootGameObjects()) 17 | { 18 | if (gameObject.TryGetComponent(out TinyContainerScene container) && container != sceneContainer) 19 | isOnlyOneInScene = false; 20 | } 21 | 22 | if (isOnlyOneInScene) 23 | { 24 | EditorGUILayout.HelpBox("This container will be configured for this scene.", MessageType.None); 25 | } 26 | else 27 | { 28 | EditorGUILayout.HelpBox($"More than one {nameof(TinyContainerScene)} found in the scene.\nMake sure only one TinyContainer in the scene has a {nameof(TinyContainerScene)} component.", MessageType.Warning); 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /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/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerRootEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | 4 | namespace Jnk.TinyContainer.Editor 5 | { 6 | [CustomEditor(typeof(TinyContainerGlobal))] 7 | public class TinyContainerRootEditor : UnityEditor.Editor 8 | { 9 | private SerializedProperty _dontDestroyOnLoadProp; 10 | 11 | private void OnEnable() 12 | { 13 | _dontDestroyOnLoadProp = serializedObject.FindProperty("dontDestroyOnLoad"); 14 | } 15 | 16 | public override void OnInspectorGUI() 17 | { 18 | serializedObject.UpdateIfRequiredOrScript(); 19 | 20 | bool isOnlyOneInScene = FindObjectsOfType().Length <= 1; 21 | if (isOnlyOneInScene) 22 | { 23 | EditorGUILayout.HelpBox("This container will be the Root of the container hierarchy.", MessageType.None); 24 | } 25 | else 26 | { 27 | EditorGUILayout.HelpBox($"More than one {nameof(TinyContainerGlobal)} found in the scene.\nMake sure only one TinyContainer has a {nameof(TinyContainerGlobal)} component.", MessageType.Warning); 28 | } 29 | 30 | EditorGUILayout.PropertyField(_dontDestroyOnLoadProp); 31 | 32 | 33 | serializedObject.ApplyModifiedProperties(); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /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: 11 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 0 9 | m_DefaultBehaviorMode: 0 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 0 13 | m_SpritePackerPaddingPower: 1 14 | m_EtcTextureCompressorBehavior: 1 15 | m_EtcTextureFastCompressor: 1 16 | m_EtcTextureNormalCompressor: 2 17 | m_EtcTextureBestCompressor: 4 18 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 19 | m_ProjectGenerationRootNamespace: 20 | m_EnableTextureStreamingInEditMode: 1 21 | m_EnableTextureStreamingInPlayMode: 1 22 | m_AsyncShaderCompilation: 1 23 | m_CachingShaderPreprocessor: 1 24 | m_PrefabModeAllowAutoSave: 1 25 | m_EnterPlayModeOptionsEnabled: 1 26 | m_EnterPlayModeOptions: 3 27 | m_GameObjectNamingDigits: 1 28 | m_GameObjectNamingScheme: 0 29 | m_AssetNamingUsesSpace: 1 30 | m_UseLegacyProbeSampleCount: 0 31 | m_SerializeInlineMappingsOnOneLine: 1 32 | m_DisableCookiesInLightmapper: 0 33 | m_AssetPipelineMode: 1 34 | m_CacheServerMode: 0 35 | m_CacheServerEndpoint: 36 | m_CacheServerNamespacePrefix: default 37 | m_CacheServerEnableDownload: 1 38 | m_CacheServerEnableUpload: 1 39 | m_CacheServerEnableAuth: 0 40 | m_CacheServerEnableTls: 0 41 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | 13 | # MemoryCaptures can get excessive in size. 14 | # They also could contain extremely sensitive data 15 | /[Mm]emoryCaptures/ 16 | 17 | # Asset meta data should only be ignored when the corresponding asset is also ignored 18 | !/[Aa]ssets/**/*.meta 19 | 20 | # Uncomment this line if you wish to ignore the asset store tools plugin 21 | # /[Aa]ssets/AssetStoreTools* 22 | 23 | # Autogenerated Jetbrains Rider plugin 24 | /[Aa]ssets/Plugins/Editor/JetBrains* 25 | 26 | # Visual Studio cache directory 27 | .vs/ 28 | 29 | # JetBrains Rider cache directory 30 | .idea/ 31 | 32 | # Gradle cache directory 33 | .gradle/ 34 | 35 | # Autogenerated VS/MD/Consulo solution and project files 36 | ExportedObj/ 37 | .consulo/ 38 | *.csproj 39 | *.unityproj 40 | *.sln 41 | *.suo 42 | *.tmp 43 | *.user 44 | *.userprefs 45 | *.pidb 46 | *.booproj 47 | *.svd 48 | *.pdb 49 | *.mdb 50 | *.opendb 51 | *.VC.db 52 | 53 | # Unity3D generated meta files 54 | *.pidb.meta 55 | *.pdb.meta 56 | *.mdb.meta 57 | 58 | # Unity3D generated file on crash reports 59 | sysinfo.txt 60 | 61 | # Builds 62 | *.apk 63 | *.aab 64 | *.unitypackage 65 | 66 | # Crashlytics generated file 67 | crashlytics-build.properties 68 | 69 | # Packed Addressables 70 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 71 | 72 | # Temporary auto-generated Android Assets 73 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 74 | /[Aa]ssets/[Ss]treamingAssets/aa/* -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "2.3.1", 4 | "com.unity.ide.rider": "3.0.28", 5 | "com.unity.ide.visualstudio": "2.0.22", 6 | "com.unity.ide.vscode": "1.2.5", 7 | "com.unity.test-framework": "1.1.33", 8 | "com.unity.textmeshpro": "3.0.6", 9 | "com.unity.timeline": "1.7.6", 10 | "com.unity.ugui": "1.0.0", 11 | "com.unity.modules.ai": "1.0.0", 12 | "com.unity.modules.androidjni": "1.0.0", 13 | "com.unity.modules.animation": "1.0.0", 14 | "com.unity.modules.assetbundle": "1.0.0", 15 | "com.unity.modules.audio": "1.0.0", 16 | "com.unity.modules.cloth": "1.0.0", 17 | "com.unity.modules.director": "1.0.0", 18 | "com.unity.modules.imageconversion": "1.0.0", 19 | "com.unity.modules.imgui": "1.0.0", 20 | "com.unity.modules.jsonserialize": "1.0.0", 21 | "com.unity.modules.particlesystem": "1.0.0", 22 | "com.unity.modules.physics": "1.0.0", 23 | "com.unity.modules.physics2d": "1.0.0", 24 | "com.unity.modules.screencapture": "1.0.0", 25 | "com.unity.modules.terrain": "1.0.0", 26 | "com.unity.modules.terrainphysics": "1.0.0", 27 | "com.unity.modules.tilemap": "1.0.0", 28 | "com.unity.modules.ui": "1.0.0", 29 | "com.unity.modules.uielements": "1.0.0", 30 | "com.unity.modules.umbra": "1.0.0", 31 | "com.unity.modules.unityanalytics": "1.0.0", 32 | "com.unity.modules.unitywebrequest": "1.0.0", 33 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 34 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 35 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 36 | "com.unity.modules.unitywebrequestwww": "1.0.0", 37 | "com.unity.modules.vehicles": "1.0.0", 38 | "com.unity.modules.video": "1.0.0", 39 | "com.unity.modules.vr": "1.0.0", 40 | "com.unity.modules.wind": "1.0.0", 41 | "com.unity.modules.xr": "1.0.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerObjectBootstrapperEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Reflection; 5 | using System.Text; 6 | using UnityEditor; 7 | using UnityEngine; 8 | using Object = UnityEngine.Object; 9 | 10 | namespace Jnk.TinyContainer.Editor 11 | { 12 | [CanEditMultipleObjects] 13 | [CustomEditor(typeof(TinyContainerObjectInstaller))] 14 | public class TinyContainerObjectBootstrapperEditor : UnityEditor.Editor 15 | { 16 | private SerializedProperty _objectsProp; 17 | private readonly StringBuilder _stringBuilder = new StringBuilder(); 18 | 19 | private void OnEnable() 20 | { 21 | _objectsProp = serializedObject.FindProperty("objects"); 22 | } 23 | 24 | public override void OnInspectorGUI() 25 | { 26 | serializedObject.UpdateIfRequiredOrScript(); 27 | 28 | EditorGUILayout.PropertyField(_objectsProp); 29 | 30 | var objects = typeof(TinyContainerObjectInstaller) 31 | .GetField("objects", BindingFlags.NonPublic | BindingFlags.Instance) 32 | .GetValue(target as TinyContainerObjectInstaller) as List; 33 | 34 | if (objects?.Count > 0) 35 | { 36 | List suspiciousTypes = objects 37 | .Where(x => x is GameObject || x is Material || x is Transform) 38 | .ToList(); 39 | 40 | if (suspiciousTypes.Count == 0) 41 | return; 42 | 43 | _stringBuilder.Clear(); 44 | _stringBuilder.Append("Are you sure you want the following types to be registered with these objects?"); 45 | 46 | foreach (Object type in suspiciousTypes) 47 | _stringBuilder.AppendLine().Append("• ").Append(type.GetType().FullName).Append(" (").Append(type.name).Append(")"); 48 | 49 | EditorGUILayout.HelpBox(_stringBuilder.ToString(), MessageType.Warning); 50 | } 51 | 52 | if (GUI.changed) 53 | serializedObject.ApplyModifiedProperties(); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/TinyContainerEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Reflection; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace Jnk.TinyContainer.Editor 8 | { 9 | [CustomEditor(typeof(TinyContainer))] 10 | public class TinyContainerEditor : UnityEditor.Editor 11 | { 12 | private SerializedProperty _enabledEventFunctionsProp; 13 | private SerializedProperty _disposeOnDestroyProp; 14 | 15 | private void OnEnable() 16 | { 17 | _enabledEventFunctionsProp = serializedObject.FindProperty("enabledEventFunctions"); 18 | _disposeOnDestroyProp = serializedObject.FindProperty("disposeOnDestroy"); 19 | } 20 | 21 | public override void OnInspectorGUI() 22 | { 23 | var container = target as TinyContainer; 24 | 25 | serializedObject.UpdateIfRequiredOrScript(); 26 | 27 | EditorGUILayout.PropertyField(_enabledEventFunctionsProp); 28 | EditorGUILayout.PropertyField(_disposeOnDestroyProp, new GUIContent("Dispose IDisposables On Destroy")); 29 | 30 | var instances = typeof(TinyContainer) 31 | .GetField("_instances", BindingFlags.NonPublic | BindingFlags.Instance) 32 | ?.GetValue(container) as Dictionary; 33 | 34 | if (instances?.Count > 0) 35 | { 36 | EditorGUILayout.Space(); 37 | EditorGUILayout.LabelField("Registered Instances", EditorStyles.boldLabel); 38 | 39 | foreach (KeyValuePair pair in instances) 40 | EditorGUILayout.LabelField(pair.Key.FullName); 41 | } 42 | 43 | var factories = typeof(TinyContainer) 44 | .GetField("_factories", BindingFlags.NonPublic | BindingFlags.Instance) 45 | ?.GetValue(container) as Dictionary>; 46 | 47 | if (factories?.Count > 0) 48 | { 49 | EditorGUILayout.Space(); 50 | EditorGUILayout.LabelField("Registered Factories", EditorStyles.boldLabel); 51 | 52 | foreach (KeyValuePair> pair in factories) 53 | EditorGUILayout.LabelField(pair.Key.FullName); 54 | } 55 | 56 | serializedObject.ApplyModifiedProperties(); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {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 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![openupm](https://img.shields.io/npm/v/com.jnk.tinycontainer?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.jnk.tinycontainer/) 2 | 3 | # TinyContainer 4 | A simple service locator implementation for Unity. 5 | 6 | ## Disclaimer 7 | This package is primarily for use in my personal projects and I almost certainly will be making breaking changes if I'm unhappy with the syntax / API. 8 | 9 | ## Installation 10 | You can install this package via the Unity Package Manager "Add package from git URL" option by using this URL: 11 | `https://github.com/JanikHelbig/TinyContainer.git?path=Assets/TinyContainer` or add `"com.jnk.tinycontainer" : "https://github.com/JanikHelbig/TinyContainer.git?path=Assets/TinyContainer"` to `Packages/manifest.json`. 12 | 13 | Use the `#*.*.*` postfix to use a specific release of the package, e.g. `https://github.com/JanikHelbig/TinyContainer.git?path=Assets/TinyContainer#1.1.0`. 14 | 15 | ## Usage 16 | ### Accessing a TinyContainer 17 | `TinyContainer` instances are components which can be added to GameObjects and can be nested in the Unity hierarchy. 18 | Use `TinyContainer.For(this)` in your MonoBehaviours to access the nearest `TinyContainer` upwards in the hierarchy. 19 | 20 | There is a singleton-like instance called the `Global` which all requests will fall back to. 21 | You can setup your `Global` manually by putting a GameObject with a `TinyContainer` and `TinyContainerGlobal` component at the scene root. Otherwise it's created automatically when `TinyContainer.Global` is first accessed. 22 | 23 | Additionally you can create a `TinyContainer` which belongs to a specific scene. If you add a `TinyContainerScene` component to a container, your MonoBehaviours can access it by using `TinyContainer.ForSceneOf(this)`, provided they belong to the same scene. When trying to find the closest container or trying to resolve a type, the request will try to locate a scene container before falling back to Global. 24 | 25 | ### Registering Instances 26 | You have two options when registering your types with a container. 27 | ```cs 28 | private void Awake() 29 | { 30 | TinyContainer.Global 31 | // Register a instance directly. 32 | .Register(new MockLocalizer()) 33 | // Register a factory method which will be executed 34 | // every time the type is requested. 35 | .RegisterPerRequest(_ => new JsonSerializer()); 36 | } 37 | ``` 38 | The explicit generic type argument is optional and can be used to register instances by interface or base class. 39 | 40 | ### Resolving Types 41 | The requested type can be inferred from the `out` parameter. I recommended registering instances in `Awake()` and to resolve types in `Start()` to make sure everything is registered before it is being requested. 42 | ```cs 43 | private ILocalizer _localizer; 44 | private ISerializer _serializer; 45 | 46 | private void Start() 47 | { 48 | TinyContainer.For(this) 49 | .Get(out _localizer) 50 | .Get(out _serializer); 51 | } 52 | ``` 53 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Editor/Resources/TinyContainer Icon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64e11cea40aa7ab4ea3491d78510520c 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 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 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: -1 36 | aniso: 1 37 | mipBias: -100 38 | wrapU: 1 39 | wrapV: 1 40 | wrapW: -1 41 | nPOTScale: 0 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 0 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 1 54 | spriteTessellationDetail: -1 55 | textureType: 2 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | - serializedVersion: 3 79 | buildTarget: Standalone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 1 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | forceMaximumCompressionQuality_BC6H_BC7: 0 90 | - serializedVersion: 3 91 | buildTarget: Android 92 | maxTextureSize: 2048 93 | resizeAlgorithm: 0 94 | textureFormat: -1 95 | textureCompression: 1 96 | compressionQuality: 50 97 | crunchedCompression: 0 98 | allowsAlphaSplitting: 0 99 | overridden: 0 100 | androidETC2FallbackOverride: 0 101 | forceMaximumCompressionQuality_BC6H_BC7: 0 102 | spriteSheet: 103 | serializedVersion: 2 104 | sprites: [] 105 | outline: [] 106 | physicsShape: [] 107 | bones: [] 108 | spriteID: 109 | internalID: 0 110 | vertices: [] 111 | indices: 112 | edges: [] 113 | weights: [] 114 | secondaryTextures: [] 115 | spritePackingTag: 116 | pSDRemoveMatte: 0 117 | pSDShowRemoveMatteOption: 0 118 | userData: 119 | assetBundleName: 120 | assetBundleVariant: 121 | -------------------------------------------------------------------------------- /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/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 | Stadia: 5 227 | Standalone: 5 228 | WebGL: 3 229 | Windows Store Apps: 5 230 | XboxOne: 5 231 | iPhone: 2 232 | tvOS: 2 233 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": { 4 | "version": "2.3.1", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": {}, 8 | "url": "https://packages.unity.com" 9 | }, 10 | "com.unity.ext.nunit": { 11 | "version": "1.0.6", 12 | "depth": 1, 13 | "source": "registry", 14 | "dependencies": {}, 15 | "url": "https://packages.unity.com" 16 | }, 17 | "com.unity.ide.rider": { 18 | "version": "3.0.28", 19 | "depth": 0, 20 | "source": "registry", 21 | "dependencies": { 22 | "com.unity.ext.nunit": "1.0.6" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ide.visualstudio": { 27 | "version": "2.0.22", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": { 31 | "com.unity.test-framework": "1.1.9" 32 | }, 33 | "url": "https://packages.unity.com" 34 | }, 35 | "com.unity.ide.vscode": { 36 | "version": "1.2.5", 37 | "depth": 0, 38 | "source": "registry", 39 | "dependencies": {}, 40 | "url": "https://packages.unity.com" 41 | }, 42 | "com.unity.test-framework": { 43 | "version": "1.1.33", 44 | "depth": 0, 45 | "source": "registry", 46 | "dependencies": { 47 | "com.unity.ext.nunit": "1.0.6", 48 | "com.unity.modules.imgui": "1.0.0", 49 | "com.unity.modules.jsonserialize": "1.0.0" 50 | }, 51 | "url": "https://packages.unity.com" 52 | }, 53 | "com.unity.textmeshpro": { 54 | "version": "3.0.6", 55 | "depth": 0, 56 | "source": "registry", 57 | "dependencies": { 58 | "com.unity.ugui": "1.0.0" 59 | }, 60 | "url": "https://packages.unity.com" 61 | }, 62 | "com.unity.timeline": { 63 | "version": "1.7.6", 64 | "depth": 0, 65 | "source": "registry", 66 | "dependencies": { 67 | "com.unity.modules.director": "1.0.0", 68 | "com.unity.modules.animation": "1.0.0", 69 | "com.unity.modules.audio": "1.0.0", 70 | "com.unity.modules.particlesystem": "1.0.0" 71 | }, 72 | "url": "https://packages.unity.com" 73 | }, 74 | "com.unity.ugui": { 75 | "version": "1.0.0", 76 | "depth": 0, 77 | "source": "builtin", 78 | "dependencies": { 79 | "com.unity.modules.ui": "1.0.0", 80 | "com.unity.modules.imgui": "1.0.0" 81 | } 82 | }, 83 | "com.unity.modules.ai": { 84 | "version": "1.0.0", 85 | "depth": 0, 86 | "source": "builtin", 87 | "dependencies": {} 88 | }, 89 | "com.unity.modules.androidjni": { 90 | "version": "1.0.0", 91 | "depth": 0, 92 | "source": "builtin", 93 | "dependencies": {} 94 | }, 95 | "com.unity.modules.animation": { 96 | "version": "1.0.0", 97 | "depth": 0, 98 | "source": "builtin", 99 | "dependencies": {} 100 | }, 101 | "com.unity.modules.assetbundle": { 102 | "version": "1.0.0", 103 | "depth": 0, 104 | "source": "builtin", 105 | "dependencies": {} 106 | }, 107 | "com.unity.modules.audio": { 108 | "version": "1.0.0", 109 | "depth": 0, 110 | "source": "builtin", 111 | "dependencies": {} 112 | }, 113 | "com.unity.modules.cloth": { 114 | "version": "1.0.0", 115 | "depth": 0, 116 | "source": "builtin", 117 | "dependencies": { 118 | "com.unity.modules.physics": "1.0.0" 119 | } 120 | }, 121 | "com.unity.modules.director": { 122 | "version": "1.0.0", 123 | "depth": 0, 124 | "source": "builtin", 125 | "dependencies": { 126 | "com.unity.modules.audio": "1.0.0", 127 | "com.unity.modules.animation": "1.0.0" 128 | } 129 | }, 130 | "com.unity.modules.imageconversion": { 131 | "version": "1.0.0", 132 | "depth": 0, 133 | "source": "builtin", 134 | "dependencies": {} 135 | }, 136 | "com.unity.modules.imgui": { 137 | "version": "1.0.0", 138 | "depth": 0, 139 | "source": "builtin", 140 | "dependencies": {} 141 | }, 142 | "com.unity.modules.jsonserialize": { 143 | "version": "1.0.0", 144 | "depth": 0, 145 | "source": "builtin", 146 | "dependencies": {} 147 | }, 148 | "com.unity.modules.particlesystem": { 149 | "version": "1.0.0", 150 | "depth": 0, 151 | "source": "builtin", 152 | "dependencies": {} 153 | }, 154 | "com.unity.modules.physics": { 155 | "version": "1.0.0", 156 | "depth": 0, 157 | "source": "builtin", 158 | "dependencies": {} 159 | }, 160 | "com.unity.modules.physics2d": { 161 | "version": "1.0.0", 162 | "depth": 0, 163 | "source": "builtin", 164 | "dependencies": {} 165 | }, 166 | "com.unity.modules.screencapture": { 167 | "version": "1.0.0", 168 | "depth": 0, 169 | "source": "builtin", 170 | "dependencies": { 171 | "com.unity.modules.imageconversion": "1.0.0" 172 | } 173 | }, 174 | "com.unity.modules.subsystems": { 175 | "version": "1.0.0", 176 | "depth": 1, 177 | "source": "builtin", 178 | "dependencies": { 179 | "com.unity.modules.jsonserialize": "1.0.0" 180 | } 181 | }, 182 | "com.unity.modules.terrain": { 183 | "version": "1.0.0", 184 | "depth": 0, 185 | "source": "builtin", 186 | "dependencies": {} 187 | }, 188 | "com.unity.modules.terrainphysics": { 189 | "version": "1.0.0", 190 | "depth": 0, 191 | "source": "builtin", 192 | "dependencies": { 193 | "com.unity.modules.physics": "1.0.0", 194 | "com.unity.modules.terrain": "1.0.0" 195 | } 196 | }, 197 | "com.unity.modules.tilemap": { 198 | "version": "1.0.0", 199 | "depth": 0, 200 | "source": "builtin", 201 | "dependencies": { 202 | "com.unity.modules.physics2d": "1.0.0" 203 | } 204 | }, 205 | "com.unity.modules.ui": { 206 | "version": "1.0.0", 207 | "depth": 0, 208 | "source": "builtin", 209 | "dependencies": {} 210 | }, 211 | "com.unity.modules.uielements": { 212 | "version": "1.0.0", 213 | "depth": 0, 214 | "source": "builtin", 215 | "dependencies": { 216 | "com.unity.modules.ui": "1.0.0", 217 | "com.unity.modules.imgui": "1.0.0", 218 | "com.unity.modules.jsonserialize": "1.0.0" 219 | } 220 | }, 221 | "com.unity.modules.umbra": { 222 | "version": "1.0.0", 223 | "depth": 0, 224 | "source": "builtin", 225 | "dependencies": {} 226 | }, 227 | "com.unity.modules.unityanalytics": { 228 | "version": "1.0.0", 229 | "depth": 0, 230 | "source": "builtin", 231 | "dependencies": { 232 | "com.unity.modules.unitywebrequest": "1.0.0", 233 | "com.unity.modules.jsonserialize": "1.0.0" 234 | } 235 | }, 236 | "com.unity.modules.unitywebrequest": { 237 | "version": "1.0.0", 238 | "depth": 0, 239 | "source": "builtin", 240 | "dependencies": {} 241 | }, 242 | "com.unity.modules.unitywebrequestassetbundle": { 243 | "version": "1.0.0", 244 | "depth": 0, 245 | "source": "builtin", 246 | "dependencies": { 247 | "com.unity.modules.assetbundle": "1.0.0", 248 | "com.unity.modules.unitywebrequest": "1.0.0" 249 | } 250 | }, 251 | "com.unity.modules.unitywebrequestaudio": { 252 | "version": "1.0.0", 253 | "depth": 0, 254 | "source": "builtin", 255 | "dependencies": { 256 | "com.unity.modules.unitywebrequest": "1.0.0", 257 | "com.unity.modules.audio": "1.0.0" 258 | } 259 | }, 260 | "com.unity.modules.unitywebrequesttexture": { 261 | "version": "1.0.0", 262 | "depth": 0, 263 | "source": "builtin", 264 | "dependencies": { 265 | "com.unity.modules.unitywebrequest": "1.0.0", 266 | "com.unity.modules.imageconversion": "1.0.0" 267 | } 268 | }, 269 | "com.unity.modules.unitywebrequestwww": { 270 | "version": "1.0.0", 271 | "depth": 0, 272 | "source": "builtin", 273 | "dependencies": { 274 | "com.unity.modules.unitywebrequest": "1.0.0", 275 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 276 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 277 | "com.unity.modules.audio": "1.0.0", 278 | "com.unity.modules.assetbundle": "1.0.0", 279 | "com.unity.modules.imageconversion": "1.0.0" 280 | } 281 | }, 282 | "com.unity.modules.vehicles": { 283 | "version": "1.0.0", 284 | "depth": 0, 285 | "source": "builtin", 286 | "dependencies": { 287 | "com.unity.modules.physics": "1.0.0" 288 | } 289 | }, 290 | "com.unity.modules.video": { 291 | "version": "1.0.0", 292 | "depth": 0, 293 | "source": "builtin", 294 | "dependencies": { 295 | "com.unity.modules.audio": "1.0.0", 296 | "com.unity.modules.ui": "1.0.0", 297 | "com.unity.modules.unitywebrequest": "1.0.0" 298 | } 299 | }, 300 | "com.unity.modules.vr": { 301 | "version": "1.0.0", 302 | "depth": 0, 303 | "source": "builtin", 304 | "dependencies": { 305 | "com.unity.modules.jsonserialize": "1.0.0", 306 | "com.unity.modules.physics": "1.0.0", 307 | "com.unity.modules.xr": "1.0.0" 308 | } 309 | }, 310 | "com.unity.modules.wind": { 311 | "version": "1.0.0", 312 | "depth": 0, 313 | "source": "builtin", 314 | "dependencies": {} 315 | }, 316 | "com.unity.modules.xr": { 317 | "version": "1.0.0", 318 | "depth": 0, 319 | "source": "builtin", 320 | "dependencies": { 321 | "com.unity.modules.physics": "1.0.0", 322 | "com.unity.modules.jsonserialize": "1.0.0", 323 | "com.unity.modules.subsystems": "1.0.0" 324 | } 325 | } 326 | } 327 | } 328 | -------------------------------------------------------------------------------- /Assets/TinyContainer/Runtime/TinyContainer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEditor; 5 | using UnityEngine; 6 | using Scene = UnityEngine.SceneManagement.Scene; 7 | 8 | namespace Jnk.TinyContainer 9 | { 10 | [DisallowMultipleComponent] 11 | [AddComponentMenu("TinyContainer/TinyContainer")] 12 | public class TinyContainer : MonoBehaviour 13 | { 14 | private static TinyContainer _global; 15 | private static Dictionary _sceneContainers; 16 | private static List _temporarySceneGameObjects; 17 | 18 | /// 19 | /// The global container instance. 20 | /// 21 | public static TinyContainer Global 22 | { 23 | get 24 | { 25 | if (_global != null) 26 | return _global; 27 | 28 | if (FindObjectOfType() is {} global) 29 | { 30 | global.BootstrapOnDemand(); 31 | return _global; 32 | } 33 | 34 | var container = new GameObject("TinyContainer [Global]", typeof(TinyContainer)); 35 | container.AddComponent().BootstrapOnDemand(); 36 | 37 | return _global; 38 | } 39 | } 40 | 41 | public static bool IsGlobalConfigured => _global != null; 42 | 43 | [SerializeField] private EventFunction enabledEventFunctions = EventFunction.FixedUpdate | EventFunction.Update | EventFunction.LateUpdate; 44 | [SerializeField] private bool disposeOnDestroy = true; 45 | 46 | private readonly Dictionary _instances = new(); 47 | private readonly Dictionary> _factories = new(); 48 | private bool _isInitialized; 49 | 50 | public EventFunction EnabledEventFunctions 51 | { 52 | get => enabledEventFunctions; 53 | set => enabledEventFunctions = value; 54 | } 55 | 56 | public IEnumerable RegisteredInstances => _instances.Values; 57 | 58 | internal void ConfigureAsGlobal(bool dontDestroyOnLoad) 59 | { 60 | if (_global != null && _global == this) 61 | { 62 | Debug.LogWarning("This TinyContainer has already been configured as the Global instance.", this); 63 | return; 64 | } 65 | 66 | if (_global != null && _global != this) 67 | { 68 | Debug.LogError("Another TinyContainer has already been configured as the Global instance.", this); 69 | return; 70 | } 71 | 72 | _global = this; 73 | 74 | if (dontDestroyOnLoad) 75 | DontDestroyOnLoad(_global); 76 | } 77 | 78 | internal void ConfigureForScene() 79 | { 80 | Scene scene = gameObject.scene; 81 | 82 | if (_sceneContainers.ContainsKey(scene)) 83 | { 84 | Debug.LogError($"Another TinyContainer has already been configured for scene '{scene.name}'.", this); 85 | return; 86 | } 87 | 88 | _sceneContainers[scene] = this; 89 | } 90 | 91 | /// 92 | /// Returns the configured for the scene of the MonoBehaviour. Falls back to the global instance. 93 | /// 94 | public static TinyContainer ForSceneOf(MonoBehaviour monoBehaviour) 95 | { 96 | Scene scene = monoBehaviour.gameObject.scene; 97 | 98 | if (_sceneContainers.TryGetValue(scene, out TinyContainer container) && container != monoBehaviour) 99 | return container; 100 | 101 | _temporarySceneGameObjects.Clear(); 102 | scene.GetRootGameObjects(_temporarySceneGameObjects); 103 | 104 | foreach (GameObject go in _temporarySceneGameObjects) 105 | { 106 | if (go.TryGetComponent(out TinyContainerScene sceneContainer) == false) 107 | continue; 108 | 109 | if (sceneContainer.Container == monoBehaviour) 110 | continue; 111 | 112 | sceneContainer.BootstrapOnDemand(); 113 | return sceneContainer.Container; 114 | } 115 | 116 | return Global; 117 | } 118 | 119 | /// 120 | /// Returns the closest upwards in the hierarchy. Falls back to the scene container, then to the global instance. 121 | /// 122 | public static TinyContainer For(MonoBehaviour monoBehaviour) 123 | { 124 | return monoBehaviour.IsNull()?.GetComponentInParent().IsNull() 125 | ?? ForSceneOf(monoBehaviour) 126 | ?? Global; 127 | } 128 | 129 | /// 130 | /// Register the instance with the container. 131 | /// 132 | public TinyContainer Register(T instance) 133 | { 134 | Type type = typeof(T); 135 | 136 | if (IsNotRegistered(type)) 137 | _instances[type] = instance; 138 | 139 | return this; 140 | } 141 | 142 | /// 143 | /// Register the instance with the container. 144 | /// 145 | public TinyContainer Register(Type type, object instance) 146 | { 147 | if (type.IsInstanceOfType(instance) == false) 148 | throw new ArgumentException("Type of instance does not match.", nameof(instance)); 149 | 150 | if (IsNotRegistered(type)) 151 | _instances[type] = instance; 152 | 153 | return this; 154 | } 155 | 156 | /// 157 | /// Register a per-request factory method with the container. 158 | /// 159 | public TinyContainer RegisterPerRequest(Func factoryMethod) where T : class 160 | { 161 | Type type = typeof(T); 162 | 163 | if (IsNotRegistered(type) == false) 164 | return this; 165 | 166 | if (type.IsAssignableFrom(typeof(IUpdateHandler)) == false) 167 | Debug.LogWarning($"Type {type.Name} was registered per request. {nameof(IUpdateHandler.Update)} will not be called."); 168 | 169 | if (type.IsAssignableFrom(typeof(IFixedUpdateHandler)) == false) 170 | Debug.LogWarning($"Type {type.Name} was registered per request. {nameof(IFixedUpdateHandler.FixedUpdate)} will not be called."); 171 | 172 | _factories[type] = factoryMethod; 173 | 174 | return this; 175 | } 176 | 177 | private bool IsNotRegistered(Type type) 178 | { 179 | if (_instances.ContainsKey(type) == false && 180 | _factories.ContainsKey(type) == false) 181 | return true; 182 | 183 | Debug.LogError($"Type {type.FullName} has already been registered.", this); 184 | return false; 185 | } 186 | 187 | /// 188 | /// Returns the first instance for the type upwards in the hierarchy. 189 | /// 190 | public TinyContainer Get(out T instance) where T : class 191 | { 192 | Type type = typeof(T); 193 | instance = null; 194 | 195 | if (TryGetInstance(type, ref instance)) 196 | return this; 197 | 198 | if (TryGetInstanceFromFactory(type, ref instance)) 199 | return this; 200 | 201 | if (TryGetNextContainerInHierarchy(out TinyContainer nextContainer)) 202 | { 203 | nextContainer.Get(out instance); 204 | return this; 205 | } 206 | 207 | throw new TypeNotFoundException($"Could not resolve type '{typeof(T).Name}'."); 208 | } 209 | 210 | public T Get() where T : class 211 | { 212 | Type type = typeof(T); 213 | T instance = null; 214 | 215 | if (TryGetInstance(type, ref instance)) 216 | return instance; 217 | 218 | if (TryGetInstanceFromFactory(type, ref instance)) 219 | return instance; 220 | 221 | if (TryGetNextContainerInHierarchy(out TinyContainer nextContainer)) 222 | return nextContainer.Get(); 223 | 224 | throw new TypeNotFoundException($"Could not resolve type '{typeof(T).Name}'."); 225 | } 226 | 227 | /// 228 | /// Returns the first instance for the type upwards in the hierarchy. 229 | /// 230 | public bool TryGet(out T instance) where T : class 231 | { 232 | Type type = typeof(T); 233 | instance = null; 234 | 235 | if (TryGetInstance(type, ref instance)) 236 | return true; 237 | 238 | if (TryGetInstanceFromFactory(type, ref instance)) 239 | return true; 240 | 241 | return TryGetNextContainerInHierarchy(out TinyContainer nextContainer) && nextContainer.TryGet(out instance); 242 | } 243 | 244 | private bool TryGetInstance(Type type, ref T instance) where T : class 245 | { 246 | if (false == _instances.TryGetValue(type, out object obj)) 247 | return false; 248 | 249 | instance = (T) obj; 250 | 251 | return true; 252 | } 253 | 254 | private bool TryGetInstanceFromFactory(Type type, ref T instance) where T : class 255 | { 256 | if (false == _factories.TryGetValue(type, out Func objFactory)) 257 | return false; 258 | 259 | instance = (T) objFactory.Invoke(this); 260 | 261 | return true; 262 | } 263 | 264 | private bool TryGetNextContainerInHierarchy(out TinyContainer container) 265 | { 266 | if (this == _global) 267 | { 268 | container = null; 269 | return false; 270 | } 271 | 272 | container = transform.parent.IsNull()?.GetComponentInParent().IsNull() ?? ForSceneOf(this); 273 | return true; 274 | } 275 | 276 | private void FixedUpdate() 277 | { 278 | if (!enabledEventFunctions.HasFlag(EventFunction.FixedUpdate)) 279 | return; 280 | 281 | foreach (object instance in _instances.Values) 282 | (instance as IFixedUpdateHandler)?.FixedUpdate(); 283 | } 284 | 285 | private void Update() 286 | { 287 | if (!enabledEventFunctions.HasFlag(EventFunction.Update)) 288 | return; 289 | 290 | foreach (object instance in _instances.Values) 291 | (instance as IUpdateHandler)?.Update(); 292 | } 293 | 294 | private void LateUpdate() 295 | { 296 | if (!enabledEventFunctions.HasFlag(EventFunction.LateUpdate)) 297 | return; 298 | 299 | foreach (object instance in _instances.Values) 300 | (instance as ILateUpdateHandler)?.LateUpdate(); 301 | } 302 | 303 | private void OnDestroy() 304 | { 305 | UnregisterForSceneIfNecessary(); 306 | HandleRegisteredIDisposables(); 307 | } 308 | 309 | private void UnregisterForSceneIfNecessary() 310 | { 311 | if (_sceneContainers == null || _sceneContainers.ContainsValue(this) == false) 312 | return; 313 | 314 | bool removedSuccessfully = _sceneContainers.Remove(gameObject.scene); 315 | Debug.Assert(removedSuccessfully, "Error when removing TinyContainer from scene dictionary. You might have moved the container to a different scene. This is not supported.", this); 316 | } 317 | 318 | private void HandleRegisteredIDisposables() 319 | { 320 | if (disposeOnDestroy == false) return; 321 | 322 | foreach (IDisposable disposable in _instances.Values.OfType()) 323 | disposable.Dispose(); 324 | } 325 | 326 | [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] 327 | private static void ResetStaticFields() 328 | { 329 | _global = null; 330 | _sceneContainers = new Dictionary(); 331 | _temporarySceneGameObjects = new List(); 332 | } 333 | 334 | #if UNITY_EDITOR 335 | 336 | [MenuItem("GameObject/TinyContainer/Add Global Container")] 337 | private static void AddGlobalContainer() 338 | { 339 | var go = new GameObject("TinyContainer [Global]", typeof(TinyContainerGlobal)); 340 | } 341 | 342 | [MenuItem("GameObject/TinyContainer/Add Scene Container")] 343 | private static void AddSceneContainer() 344 | { 345 | var go = new GameObject("TinyContainer [Scene]", typeof(TinyContainerScene)); 346 | } 347 | 348 | #endif 349 | } 350 | } 351 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.3731193, g: 0.38073996, b: 0.35872698, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &9688796 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 9688797} 135 | - component: {fileID: 9688798} 136 | m_Layer: 0 137 | m_Name: Example Installer 138 | m_TagString: Untagged 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!4 &9688797 144 | Transform: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 9688796} 150 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 151 | m_LocalPosition: {x: 0, y: 0, z: 0} 152 | m_LocalScale: {x: 1, y: 1, z: 1} 153 | m_ConstrainProportionsScale: 0 154 | m_Children: [] 155 | m_Father: {fileID: 0} 156 | m_RootOrder: 3 157 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 158 | --- !u!114 &9688798 159 | MonoBehaviour: 160 | m_ObjectHideFlags: 0 161 | m_CorrespondingSourceObject: {fileID: 0} 162 | m_PrefabInstance: {fileID: 0} 163 | m_PrefabAsset: {fileID: 0} 164 | m_GameObject: {fileID: 9688796} 165 | m_Enabled: 1 166 | m_EditorHideFlags: 0 167 | m_Script: {fileID: 11500000, guid: 5ff7df9a661d4fe09cafa875a247b4c4, type: 3} 168 | m_Name: 169 | m_EditorClassIdentifier: 170 | --- !u!1 &60466063 171 | GameObject: 172 | m_ObjectHideFlags: 0 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInstance: {fileID: 0} 175 | m_PrefabAsset: {fileID: 0} 176 | serializedVersion: 6 177 | m_Component: 178 | - component: {fileID: 60466066} 179 | - component: {fileID: 60466065} 180 | - component: {fileID: 60466064} 181 | m_Layer: 0 182 | m_Name: TinyContainer [Root] 183 | m_TagString: Untagged 184 | m_Icon: {fileID: 0} 185 | m_NavMeshLayer: 0 186 | m_StaticEditorFlags: 0 187 | m_IsActive: 1 188 | --- !u!114 &60466064 189 | MonoBehaviour: 190 | m_ObjectHideFlags: 0 191 | m_CorrespondingSourceObject: {fileID: 0} 192 | m_PrefabInstance: {fileID: 0} 193 | m_PrefabAsset: {fileID: 0} 194 | m_GameObject: {fileID: 60466063} 195 | m_Enabled: 1 196 | m_EditorHideFlags: 0 197 | m_Script: {fileID: 11500000, guid: 5bffb7a086a44666b60556ad9e0a63ba, type: 3} 198 | m_Name: 199 | m_EditorClassIdentifier: 200 | dontDestroyOnLoad: 0 201 | --- !u!114 &60466065 202 | MonoBehaviour: 203 | m_ObjectHideFlags: 0 204 | m_CorrespondingSourceObject: {fileID: 0} 205 | m_PrefabInstance: {fileID: 0} 206 | m_PrefabAsset: {fileID: 0} 207 | m_GameObject: {fileID: 60466063} 208 | m_Enabled: 1 209 | m_EditorHideFlags: 0 210 | m_Script: {fileID: 11500000, guid: e63defe44f1146f28519048519c8343d, type: 3} 211 | m_Name: 212 | m_EditorClassIdentifier: 213 | enabledEventFunctions: -1 214 | disposeOnDestroy: 1 215 | --- !u!4 &60466066 216 | Transform: 217 | m_ObjectHideFlags: 0 218 | m_CorrespondingSourceObject: {fileID: 0} 219 | m_PrefabInstance: {fileID: 0} 220 | m_PrefabAsset: {fileID: 0} 221 | m_GameObject: {fileID: 60466063} 222 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 223 | m_LocalPosition: {x: 0, y: 0, z: 0} 224 | m_LocalScale: {x: 1, y: 1, z: 1} 225 | m_ConstrainProportionsScale: 0 226 | m_Children: [] 227 | m_Father: {fileID: 0} 228 | m_RootOrder: 0 229 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 230 | --- !u!1 &954981905 231 | GameObject: 232 | m_ObjectHideFlags: 0 233 | m_CorrespondingSourceObject: {fileID: 0} 234 | m_PrefabInstance: {fileID: 0} 235 | m_PrefabAsset: {fileID: 0} 236 | serializedVersion: 6 237 | m_Component: 238 | - component: {fileID: 954981907} 239 | - component: {fileID: 954981906} 240 | m_Layer: 0 241 | m_Name: Example Consumer 242 | m_TagString: Untagged 243 | m_Icon: {fileID: 0} 244 | m_NavMeshLayer: 0 245 | m_StaticEditorFlags: 0 246 | m_IsActive: 1 247 | --- !u!114 &954981906 248 | MonoBehaviour: 249 | m_ObjectHideFlags: 0 250 | m_CorrespondingSourceObject: {fileID: 0} 251 | m_PrefabInstance: {fileID: 0} 252 | m_PrefabAsset: {fileID: 0} 253 | m_GameObject: {fileID: 954981905} 254 | m_Enabled: 1 255 | m_EditorHideFlags: 0 256 | m_Script: {fileID: 11500000, guid: ee290d891e0541a2933daccc913b6f67, type: 3} 257 | m_Name: 258 | m_EditorClassIdentifier: 259 | --- !u!4 &954981907 260 | Transform: 261 | m_ObjectHideFlags: 0 262 | m_CorrespondingSourceObject: {fileID: 0} 263 | m_PrefabInstance: {fileID: 0} 264 | m_PrefabAsset: {fileID: 0} 265 | m_GameObject: {fileID: 954981905} 266 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 267 | m_LocalPosition: {x: 0, y: 0, z: 0} 268 | m_LocalScale: {x: 1, y: 1, z: 1} 269 | m_ConstrainProportionsScale: 0 270 | m_Children: [] 271 | m_Father: {fileID: 0} 272 | m_RootOrder: 4 273 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 274 | --- !u!1 &963194225 275 | GameObject: 276 | m_ObjectHideFlags: 0 277 | m_CorrespondingSourceObject: {fileID: 0} 278 | m_PrefabInstance: {fileID: 0} 279 | m_PrefabAsset: {fileID: 0} 280 | serializedVersion: 6 281 | m_Component: 282 | - component: {fileID: 963194228} 283 | - component: {fileID: 963194227} 284 | - component: {fileID: 963194226} 285 | m_Layer: 0 286 | m_Name: Main Camera 287 | m_TagString: MainCamera 288 | m_Icon: {fileID: 0} 289 | m_NavMeshLayer: 0 290 | m_StaticEditorFlags: 0 291 | m_IsActive: 1 292 | --- !u!81 &963194226 293 | AudioListener: 294 | m_ObjectHideFlags: 0 295 | m_CorrespondingSourceObject: {fileID: 0} 296 | m_PrefabInstance: {fileID: 0} 297 | m_PrefabAsset: {fileID: 0} 298 | m_GameObject: {fileID: 963194225} 299 | m_Enabled: 1 300 | --- !u!20 &963194227 301 | Camera: 302 | m_ObjectHideFlags: 0 303 | m_CorrespondingSourceObject: {fileID: 0} 304 | m_PrefabInstance: {fileID: 0} 305 | m_PrefabAsset: {fileID: 0} 306 | m_GameObject: {fileID: 963194225} 307 | m_Enabled: 1 308 | serializedVersion: 2 309 | m_ClearFlags: 1 310 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 311 | m_projectionMatrixMode: 1 312 | m_GateFitMode: 2 313 | m_FOVAxisMode: 0 314 | m_SensorSize: {x: 36, y: 24} 315 | m_LensShift: {x: 0, y: 0} 316 | m_FocalLength: 50 317 | m_NormalizedViewPortRect: 318 | serializedVersion: 2 319 | x: 0 320 | y: 0 321 | width: 1 322 | height: 1 323 | near clip plane: 0.3 324 | far clip plane: 1000 325 | field of view: 60 326 | orthographic: 0 327 | orthographic size: 5 328 | m_Depth: -1 329 | m_CullingMask: 330 | serializedVersion: 2 331 | m_Bits: 4294967295 332 | m_RenderingPath: -1 333 | m_TargetTexture: {fileID: 0} 334 | m_TargetDisplay: 0 335 | m_TargetEye: 3 336 | m_HDR: 1 337 | m_AllowMSAA: 1 338 | m_AllowDynamicResolution: 0 339 | m_ForceIntoRT: 0 340 | m_OcclusionCulling: 1 341 | m_StereoConvergence: 10 342 | m_StereoSeparation: 0.022 343 | --- !u!4 &963194228 344 | Transform: 345 | m_ObjectHideFlags: 0 346 | m_CorrespondingSourceObject: {fileID: 0} 347 | m_PrefabInstance: {fileID: 0} 348 | m_PrefabAsset: {fileID: 0} 349 | m_GameObject: {fileID: 963194225} 350 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 351 | m_LocalPosition: {x: 0, y: 1, z: -10} 352 | m_LocalScale: {x: 1, y: 1, z: 1} 353 | m_ConstrainProportionsScale: 0 354 | m_Children: [] 355 | m_Father: {fileID: 0} 356 | m_RootOrder: 2 357 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 358 | --- !u!1 &1052143296 359 | GameObject: 360 | m_ObjectHideFlags: 0 361 | m_CorrespondingSourceObject: {fileID: 0} 362 | m_PrefabInstance: {fileID: 0} 363 | m_PrefabAsset: {fileID: 0} 364 | serializedVersion: 6 365 | m_Component: 366 | - component: {fileID: 1052143299} 367 | - component: {fileID: 1052143298} 368 | - component: {fileID: 1052143297} 369 | m_Layer: 0 370 | m_Name: TinyContainer [Scene] 371 | m_TagString: Untagged 372 | m_Icon: {fileID: 0} 373 | m_NavMeshLayer: 0 374 | m_StaticEditorFlags: 0 375 | m_IsActive: 1 376 | --- !u!114 &1052143297 377 | MonoBehaviour: 378 | m_ObjectHideFlags: 0 379 | m_CorrespondingSourceObject: {fileID: 0} 380 | m_PrefabInstance: {fileID: 0} 381 | m_PrefabAsset: {fileID: 0} 382 | m_GameObject: {fileID: 1052143296} 383 | m_Enabled: 1 384 | m_EditorHideFlags: 0 385 | m_Script: {fileID: 11500000, guid: b5c627564c6543f0b5069bf34caa0b92, type: 3} 386 | m_Name: 387 | m_EditorClassIdentifier: 388 | --- !u!114 &1052143298 389 | MonoBehaviour: 390 | m_ObjectHideFlags: 0 391 | m_CorrespondingSourceObject: {fileID: 0} 392 | m_PrefabInstance: {fileID: 0} 393 | m_PrefabAsset: {fileID: 0} 394 | m_GameObject: {fileID: 1052143296} 395 | m_Enabled: 1 396 | m_EditorHideFlags: 0 397 | m_Script: {fileID: 11500000, guid: e63defe44f1146f28519048519c8343d, type: 3} 398 | m_Name: 399 | m_EditorClassIdentifier: 400 | enabledEventFunctions: 7 401 | disposeOnDestroy: 1 402 | --- !u!4 &1052143299 403 | Transform: 404 | m_ObjectHideFlags: 0 405 | m_CorrespondingSourceObject: {fileID: 0} 406 | m_PrefabInstance: {fileID: 0} 407 | m_PrefabAsset: {fileID: 0} 408 | m_GameObject: {fileID: 1052143296} 409 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 410 | m_LocalPosition: {x: 0, y: 0, z: 0} 411 | m_LocalScale: {x: 1, y: 1, z: 1} 412 | m_ConstrainProportionsScale: 0 413 | m_Children: [] 414 | m_Father: {fileID: 0} 415 | m_RootOrder: 1 416 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 417 | -------------------------------------------------------------------------------- /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: 22 7 | productGUID: d85f6d4ba07d79944828eddbff134b72 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: TinyContainer 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 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | defaultIsNativeResolution: 1 72 | macRetinaSupport: 1 73 | runInBackground: 1 74 | captureSingleScreen: 0 75 | muteOtherAudioSources: 0 76 | Prepare IOS For Recording: 0 77 | Force IOS Speakers When Recording: 0 78 | deferSystemGesturesMode: 0 79 | hideHomeButton: 0 80 | submitAnalytics: 1 81 | usePlayerLog: 1 82 | bakeCollisionMeshes: 0 83 | forceSingleInstance: 0 84 | useFlipModelSwapchain: 1 85 | resizableWindow: 0 86 | useMacAppStoreValidation: 0 87 | macAppStoreCategory: public.app-category.games 88 | gpuSkinning: 1 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | fullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOneEnableTypeOptimization: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | switchNVNMaxPublicTextureIDCount: 0 117 | switchNVNMaxPublicSamplerIDCount: 0 118 | stadiaPresentMode: 0 119 | stadiaTargetFramerate: 0 120 | vulkanNumSwapchainBuffers: 3 121 | vulkanEnableSetSRGBWrite: 0 122 | vulkanEnablePreTransform: 0 123 | vulkanEnableLateAcquireNextImage: 0 124 | m_SupportedAspectRatios: 125 | 4:3: 1 126 | 5:4: 1 127 | 16:10: 1 128 | 16:9: 1 129 | Others: 1 130 | bundleVersion: 0.1 131 | preloadedAssets: [] 132 | metroInputSource: 0 133 | wsaTransparentSwapchain: 0 134 | m_HolographicPauseOnTrackingLoss: 1 135 | xboxOneDisableKinectGpuReservation: 1 136 | xboxOneEnable7thCore: 1 137 | vrSettings: 138 | enable360StereoCapture: 0 139 | isWsaHolographicRemotingEnabled: 0 140 | enableFrameTimingStats: 0 141 | useHDRDisplay: 0 142 | D3DHDRBitDepth: 0 143 | m_ColorGamuts: 00000000 144 | targetPixelDensity: 30 145 | resolutionScalingMode: 0 146 | androidSupportedAspectRatio: 1 147 | androidMaxAspectRatio: 2.1 148 | applicationIdentifier: 149 | Standalone: com.DefaultCompany.TinyContainer 150 | buildNumber: 151 | Standalone: 0 152 | iPhone: 0 153 | tvOS: 0 154 | overrideDefaultApplicationIdentifier: 0 155 | AndroidBundleVersionCode: 1 156 | AndroidMinSdkVersion: 19 157 | AndroidTargetSdkVersion: 0 158 | AndroidPreferredInstallLocation: 1 159 | aotOptions: 160 | stripEngineCode: 1 161 | iPhoneStrippingLevel: 0 162 | iPhoneScriptCallOptimization: 0 163 | ForceInternetPermission: 0 164 | ForceSDCardPermission: 0 165 | CreateWallpaper: 0 166 | APKExpansionFiles: 0 167 | keepLoadedShadersAlive: 0 168 | StripUnusedMeshComponents: 1 169 | VertexChannelCompressionMask: 4054 170 | iPhoneSdkVersion: 988 171 | iOSTargetOSVersionString: 11.0 172 | tvOSSdkVersion: 0 173 | tvOSRequireExtendedGameController: 0 174 | tvOSTargetOSVersionString: 11.0 175 | uIPrerenderedIcon: 0 176 | uIRequiresPersistentWiFi: 0 177 | uIRequiresFullScreen: 1 178 | uIStatusBarHidden: 1 179 | uIExitOnSuspend: 0 180 | uIStatusBarStyle: 0 181 | appleTVSplashScreen: {fileID: 0} 182 | appleTVSplashScreen2x: {fileID: 0} 183 | tvOSSmallIconLayers: [] 184 | tvOSSmallIconLayers2x: [] 185 | tvOSLargeIconLayers: [] 186 | tvOSLargeIconLayers2x: [] 187 | tvOSTopShelfImageLayers: [] 188 | tvOSTopShelfImageLayers2x: [] 189 | tvOSTopShelfImageWideLayers: [] 190 | tvOSTopShelfImageWideLayers2x: [] 191 | iOSLaunchScreenType: 0 192 | iOSLaunchScreenPortrait: {fileID: 0} 193 | iOSLaunchScreenLandscape: {fileID: 0} 194 | iOSLaunchScreenBackgroundColor: 195 | serializedVersion: 2 196 | rgba: 0 197 | iOSLaunchScreenFillPct: 100 198 | iOSLaunchScreenSize: 100 199 | iOSLaunchScreenCustomXibPath: 200 | iOSLaunchScreeniPadType: 0 201 | iOSLaunchScreeniPadImage: {fileID: 0} 202 | iOSLaunchScreeniPadBackgroundColor: 203 | serializedVersion: 2 204 | rgba: 0 205 | iOSLaunchScreeniPadFillPct: 100 206 | iOSLaunchScreeniPadSize: 100 207 | iOSLaunchScreeniPadCustomXibPath: 208 | iOSLaunchScreenCustomStoryboardPath: 209 | iOSLaunchScreeniPadCustomStoryboardPath: 210 | iOSDeviceRequirements: [] 211 | iOSURLSchemes: [] 212 | iOSBackgroundModes: 0 213 | iOSMetalForceHardShadows: 0 214 | metalEditorSupport: 1 215 | metalAPIValidation: 1 216 | iOSRenderExtraFrameOnPause: 0 217 | iosCopyPluginsCodeInsteadOfSymlink: 0 218 | appleDeveloperTeamID: 219 | iOSManualSigningProvisioningProfileID: 220 | tvOSManualSigningProvisioningProfileID: 221 | iOSManualSigningProvisioningProfileType: 0 222 | tvOSManualSigningProvisioningProfileType: 0 223 | appleEnableAutomaticSigning: 0 224 | iOSRequireARKit: 0 225 | iOSAutomaticallyDetectAndAddCapabilities: 1 226 | appleEnableProMotion: 0 227 | shaderPrecisionModel: 0 228 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 229 | templatePackageId: com.unity.template.3d@5.0.4 230 | templateDefaultScene: Assets/Scenes/SampleScene.unity 231 | useCustomMainManifest: 0 232 | useCustomLauncherManifest: 0 233 | useCustomMainGradleTemplate: 0 234 | useCustomLauncherGradleManifest: 0 235 | useCustomBaseGradleTemplate: 0 236 | useCustomGradlePropertiesTemplate: 0 237 | useCustomProguardFile: 0 238 | AndroidTargetArchitectures: 1 239 | AndroidSplashScreenScale: 0 240 | androidSplashScreen: {fileID: 0} 241 | AndroidKeystoreName: 242 | AndroidKeyaliasName: 243 | AndroidBuildApkPerCpuArchitecture: 0 244 | AndroidTVCompatibility: 0 245 | AndroidIsGame: 1 246 | AndroidEnableTango: 0 247 | androidEnableBanner: 1 248 | androidUseLowAccuracyLocation: 0 249 | androidUseCustomKeystore: 0 250 | m_AndroidBanners: 251 | - width: 320 252 | height: 180 253 | banner: {fileID: 0} 254 | androidGamepadSupportLevel: 0 255 | AndroidMinifyWithR8: 0 256 | AndroidMinifyRelease: 0 257 | AndroidMinifyDebug: 0 258 | AndroidValidateAppBundleSize: 1 259 | AndroidAppBundleSizeToValidate: 150 260 | m_BuildTargetIcons: [] 261 | m_BuildTargetPlatformIcons: [] 262 | m_BuildTargetBatching: 263 | - m_BuildTarget: Standalone 264 | m_StaticBatching: 1 265 | m_DynamicBatching: 0 266 | - m_BuildTarget: tvOS 267 | m_StaticBatching: 1 268 | m_DynamicBatching: 0 269 | - m_BuildTarget: Android 270 | m_StaticBatching: 1 271 | m_DynamicBatching: 0 272 | - m_BuildTarget: iPhone 273 | m_StaticBatching: 1 274 | m_DynamicBatching: 0 275 | - m_BuildTarget: WebGL 276 | m_StaticBatching: 0 277 | m_DynamicBatching: 0 278 | m_BuildTargetGraphicsJobs: 279 | - m_BuildTarget: MacStandaloneSupport 280 | m_GraphicsJobs: 0 281 | - m_BuildTarget: Switch 282 | m_GraphicsJobs: 1 283 | - m_BuildTarget: MetroSupport 284 | m_GraphicsJobs: 1 285 | - m_BuildTarget: AppleTVSupport 286 | m_GraphicsJobs: 0 287 | - m_BuildTarget: BJMSupport 288 | m_GraphicsJobs: 1 289 | - m_BuildTarget: LinuxStandaloneSupport 290 | m_GraphicsJobs: 1 291 | - m_BuildTarget: PS4Player 292 | m_GraphicsJobs: 1 293 | - m_BuildTarget: iOSSupport 294 | m_GraphicsJobs: 0 295 | - m_BuildTarget: WindowsStandaloneSupport 296 | m_GraphicsJobs: 1 297 | - m_BuildTarget: XboxOnePlayer 298 | m_GraphicsJobs: 1 299 | - m_BuildTarget: LuminSupport 300 | m_GraphicsJobs: 0 301 | - m_BuildTarget: AndroidPlayer 302 | m_GraphicsJobs: 0 303 | - m_BuildTarget: WebGLSupport 304 | m_GraphicsJobs: 0 305 | m_BuildTargetGraphicsJobMode: 306 | - m_BuildTarget: PS4Player 307 | m_GraphicsJobMode: 0 308 | - m_BuildTarget: XboxOnePlayer 309 | m_GraphicsJobMode: 0 310 | m_BuildTargetGraphicsAPIs: 311 | - m_BuildTarget: AndroidPlayer 312 | m_APIs: 150000000b000000 313 | m_Automatic: 0 314 | - m_BuildTarget: iOSSupport 315 | m_APIs: 10000000 316 | m_Automatic: 1 317 | - m_BuildTarget: AppleTVSupport 318 | m_APIs: 10000000 319 | m_Automatic: 1 320 | - m_BuildTarget: WebGLSupport 321 | m_APIs: 0b000000 322 | m_Automatic: 1 323 | m_BuildTargetVRSettings: 324 | - m_BuildTarget: Standalone 325 | m_Enabled: 0 326 | m_Devices: 327 | - Oculus 328 | - OpenVR 329 | openGLRequireES31: 0 330 | openGLRequireES31AEP: 0 331 | openGLRequireES32: 0 332 | m_TemplateCustomTags: {} 333 | mobileMTRendering: 334 | Android: 1 335 | iPhone: 1 336 | tvOS: 1 337 | m_BuildTargetGroupLightmapEncodingQuality: [] 338 | m_BuildTargetGroupLightmapSettings: [] 339 | m_BuildTargetNormalMapEncoding: [] 340 | playModeTestRunnerEnabled: 0 341 | runPlayModeTestAsEditModeTest: 0 342 | actionOnDotNetUnhandledException: 1 343 | enableInternalProfiler: 0 344 | logObjCUncaughtExceptions: 1 345 | enableCrashReportAPI: 0 346 | cameraUsageDescription: 347 | locationUsageDescription: 348 | microphoneUsageDescription: 349 | switchNMETAOverride: 350 | switchNetLibKey: 351 | switchSocketMemoryPoolSize: 6144 352 | switchSocketAllocatorPoolSize: 128 353 | switchSocketConcurrencyLimit: 14 354 | switchScreenResolutionBehavior: 2 355 | switchUseCPUProfiler: 0 356 | switchUseGOLDLinker: 0 357 | switchApplicationID: 0x01004b9000490000 358 | switchNSODependencies: 359 | switchTitleNames_0: 360 | switchTitleNames_1: 361 | switchTitleNames_2: 362 | switchTitleNames_3: 363 | switchTitleNames_4: 364 | switchTitleNames_5: 365 | switchTitleNames_6: 366 | switchTitleNames_7: 367 | switchTitleNames_8: 368 | switchTitleNames_9: 369 | switchTitleNames_10: 370 | switchTitleNames_11: 371 | switchTitleNames_12: 372 | switchTitleNames_13: 373 | switchTitleNames_14: 374 | switchTitleNames_15: 375 | switchPublisherNames_0: 376 | switchPublisherNames_1: 377 | switchPublisherNames_2: 378 | switchPublisherNames_3: 379 | switchPublisherNames_4: 380 | switchPublisherNames_5: 381 | switchPublisherNames_6: 382 | switchPublisherNames_7: 383 | switchPublisherNames_8: 384 | switchPublisherNames_9: 385 | switchPublisherNames_10: 386 | switchPublisherNames_11: 387 | switchPublisherNames_12: 388 | switchPublisherNames_13: 389 | switchPublisherNames_14: 390 | switchPublisherNames_15: 391 | switchIcons_0: {fileID: 0} 392 | switchIcons_1: {fileID: 0} 393 | switchIcons_2: {fileID: 0} 394 | switchIcons_3: {fileID: 0} 395 | switchIcons_4: {fileID: 0} 396 | switchIcons_5: {fileID: 0} 397 | switchIcons_6: {fileID: 0} 398 | switchIcons_7: {fileID: 0} 399 | switchIcons_8: {fileID: 0} 400 | switchIcons_9: {fileID: 0} 401 | switchIcons_10: {fileID: 0} 402 | switchIcons_11: {fileID: 0} 403 | switchIcons_12: {fileID: 0} 404 | switchIcons_13: {fileID: 0} 405 | switchIcons_14: {fileID: 0} 406 | switchIcons_15: {fileID: 0} 407 | switchSmallIcons_0: {fileID: 0} 408 | switchSmallIcons_1: {fileID: 0} 409 | switchSmallIcons_2: {fileID: 0} 410 | switchSmallIcons_3: {fileID: 0} 411 | switchSmallIcons_4: {fileID: 0} 412 | switchSmallIcons_5: {fileID: 0} 413 | switchSmallIcons_6: {fileID: 0} 414 | switchSmallIcons_7: {fileID: 0} 415 | switchSmallIcons_8: {fileID: 0} 416 | switchSmallIcons_9: {fileID: 0} 417 | switchSmallIcons_10: {fileID: 0} 418 | switchSmallIcons_11: {fileID: 0} 419 | switchSmallIcons_12: {fileID: 0} 420 | switchSmallIcons_13: {fileID: 0} 421 | switchSmallIcons_14: {fileID: 0} 422 | switchSmallIcons_15: {fileID: 0} 423 | switchManualHTML: 424 | switchAccessibleURLs: 425 | switchLegalInformation: 426 | switchMainThreadStackSize: 1048576 427 | switchPresenceGroupId: 428 | switchLogoHandling: 0 429 | switchReleaseVersion: 0 430 | switchDisplayVersion: 1.0.0 431 | switchStartupUserAccount: 0 432 | switchTouchScreenUsage: 0 433 | switchSupportedLanguagesMask: 0 434 | switchLogoType: 0 435 | switchApplicationErrorCodeCategory: 436 | switchUserAccountSaveDataSize: 0 437 | switchUserAccountSaveDataJournalSize: 0 438 | switchApplicationAttribute: 0 439 | switchCardSpecSize: -1 440 | switchCardSpecClock: -1 441 | switchRatingsMask: 0 442 | switchRatingsInt_0: 0 443 | switchRatingsInt_1: 0 444 | switchRatingsInt_2: 0 445 | switchRatingsInt_3: 0 446 | switchRatingsInt_4: 0 447 | switchRatingsInt_5: 0 448 | switchRatingsInt_6: 0 449 | switchRatingsInt_7: 0 450 | switchRatingsInt_8: 0 451 | switchRatingsInt_9: 0 452 | switchRatingsInt_10: 0 453 | switchRatingsInt_11: 0 454 | switchRatingsInt_12: 0 455 | switchLocalCommunicationIds_0: 456 | switchLocalCommunicationIds_1: 457 | switchLocalCommunicationIds_2: 458 | switchLocalCommunicationIds_3: 459 | switchLocalCommunicationIds_4: 460 | switchLocalCommunicationIds_5: 461 | switchLocalCommunicationIds_6: 462 | switchLocalCommunicationIds_7: 463 | switchParentalControl: 0 464 | switchAllowsScreenshot: 1 465 | switchAllowsVideoCapturing: 1 466 | switchAllowsRuntimeAddOnContentInstall: 0 467 | switchDataLossConfirmation: 0 468 | switchUserAccountLockEnabled: 0 469 | switchSystemResourceMemory: 16777216 470 | switchSupportedNpadStyles: 22 471 | switchNativeFsCacheSize: 32 472 | switchIsHoldTypeHorizontal: 0 473 | switchSupportedNpadCount: 8 474 | switchSocketConfigEnabled: 0 475 | switchTcpInitialSendBufferSize: 32 476 | switchTcpInitialReceiveBufferSize: 64 477 | switchTcpAutoSendBufferSizeMax: 256 478 | switchTcpAutoReceiveBufferSizeMax: 256 479 | switchUdpSendBufferSize: 9 480 | switchUdpReceiveBufferSize: 42 481 | switchSocketBufferEfficiency: 4 482 | switchSocketInitializeEnabled: 1 483 | switchNetworkInterfaceManagerInitializeEnabled: 1 484 | switchPlayerConnectionEnabled: 1 485 | switchUseNewStyleFilepaths: 0 486 | ps4NPAgeRating: 12 487 | ps4NPTitleSecret: 488 | ps4NPTrophyPackPath: 489 | ps4ParentalLevel: 11 490 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 491 | ps4Category: 0 492 | ps4MasterVersion: 01.00 493 | ps4AppVersion: 01.00 494 | ps4AppType: 0 495 | ps4ParamSfxPath: 496 | ps4VideoOutPixelFormat: 0 497 | ps4VideoOutInitialWidth: 1920 498 | ps4VideoOutBaseModeInitialWidth: 1920 499 | ps4VideoOutReprojectionRate: 60 500 | ps4PronunciationXMLPath: 501 | ps4PronunciationSIGPath: 502 | ps4BackgroundImagePath: 503 | ps4StartupImagePath: 504 | ps4StartupImagesFolder: 505 | ps4IconImagesFolder: 506 | ps4SaveDataImagePath: 507 | ps4SdkOverride: 508 | ps4BGMPath: 509 | ps4ShareFilePath: 510 | ps4ShareOverlayImagePath: 511 | ps4PrivacyGuardImagePath: 512 | ps4ExtraSceSysFile: 513 | ps4NPtitleDatPath: 514 | ps4RemotePlayKeyAssignment: -1 515 | ps4RemotePlayKeyMappingDir: 516 | ps4PlayTogetherPlayerCount: 0 517 | ps4EnterButtonAssignment: 1 518 | ps4ApplicationParam1: 0 519 | ps4ApplicationParam2: 0 520 | ps4ApplicationParam3: 0 521 | ps4ApplicationParam4: 0 522 | ps4DownloadDataSize: 0 523 | ps4GarlicHeapSize: 2048 524 | ps4ProGarlicHeapSize: 2560 525 | playerPrefsMaxSize: 32768 526 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 527 | ps4pnSessions: 1 528 | ps4pnPresence: 1 529 | ps4pnFriends: 1 530 | ps4pnGameCustomData: 1 531 | playerPrefsSupport: 0 532 | enableApplicationExit: 0 533 | resetTempFolder: 1 534 | restrictedAudioUsageRights: 0 535 | ps4UseResolutionFallback: 0 536 | ps4ReprojectionSupport: 0 537 | ps4UseAudio3dBackend: 0 538 | ps4UseLowGarlicFragmentationMode: 1 539 | ps4SocialScreenEnabled: 0 540 | ps4ScriptOptimizationLevel: 0 541 | ps4Audio3dVirtualSpeakerCount: 14 542 | ps4attribCpuUsage: 0 543 | ps4PatchPkgPath: 544 | ps4PatchLatestPkgPath: 545 | ps4PatchChangeinfoPath: 546 | ps4PatchDayOne: 0 547 | ps4attribUserManagement: 0 548 | ps4attribMoveSupport: 0 549 | ps4attrib3DSupport: 0 550 | ps4attribShareSupport: 0 551 | ps4attribExclusiveVR: 0 552 | ps4disableAutoHideSplash: 0 553 | ps4videoRecordingFeaturesUsed: 0 554 | ps4contentSearchFeaturesUsed: 0 555 | ps4CompatibilityPS5: 0 556 | ps4GPU800MHz: 1 557 | ps4attribEyeToEyeDistanceSettingVR: 0 558 | ps4IncludedModules: [] 559 | ps4attribVROutputEnabled: 0 560 | monoEnv: 561 | splashScreenBackgroundSourceLandscape: {fileID: 0} 562 | splashScreenBackgroundSourcePortrait: {fileID: 0} 563 | blurSplashScreenBackground: 1 564 | spritePackerPolicy: 565 | webGLMemorySize: 16 566 | webGLExceptionSupport: 1 567 | webGLNameFilesAsHashes: 0 568 | webGLDataCaching: 1 569 | webGLDebugSymbols: 0 570 | webGLEmscriptenArgs: 571 | webGLModulesDirectory: 572 | webGLTemplate: APPLICATION:Default 573 | webGLAnalyzeBuildSize: 0 574 | webGLUseEmbeddedResources: 0 575 | webGLCompressionFormat: 1 576 | webGLWasmArithmeticExceptions: 0 577 | webGLLinkerTarget: 1 578 | webGLThreadsSupport: 0 579 | webGLDecompressionFallback: 0 580 | scriptingDefineSymbols: {} 581 | additionalCompilerArguments: {} 582 | platformArchitecture: {} 583 | scriptingBackend: {} 584 | il2cppCompilerConfiguration: {} 585 | managedStrippingLevel: {} 586 | incrementalIl2cppBuild: {} 587 | suppressCommonWarnings: 1 588 | allowUnsafeCode: 0 589 | useDeterministicCompilation: 1 590 | useReferenceAssemblies: 1 591 | enableRoslynAnalyzers: 1 592 | additionalIl2CppArgs: 593 | scriptingRuntimeVersion: 1 594 | gcIncremental: 1 595 | assemblyVersionValidation: 1 596 | gcWBarrierValidation: 0 597 | apiCompatibilityLevelPerPlatform: {} 598 | m_RenderingPath: 1 599 | m_MobileRenderingPath: 1 600 | metroPackageName: Template_3D 601 | metroPackageVersion: 602 | metroCertificatePath: 603 | metroCertificatePassword: 604 | metroCertificateSubject: 605 | metroCertificateIssuer: 606 | metroCertificateNotAfter: 0000000000000000 607 | metroApplicationDescription: Template_3D 608 | wsaImages: {} 609 | metroTileShortName: 610 | metroTileShowName: 0 611 | metroMediumTileShowName: 0 612 | metroLargeTileShowName: 0 613 | metroWideTileShowName: 0 614 | metroSupportStreamingInstall: 0 615 | metroLastRequiredScene: 0 616 | metroDefaultTileSize: 1 617 | metroTileForegroundText: 2 618 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 619 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 620 | metroSplashScreenUseBackgroundColor: 0 621 | platformCapabilities: {} 622 | metroTargetDeviceFamilies: {} 623 | metroFTAName: 624 | metroFTAFileTypes: [] 625 | metroProtocolName: 626 | XboxOneProductId: 627 | XboxOneUpdateKey: 628 | XboxOneSandboxId: 629 | XboxOneContentId: 630 | XboxOneTitleId: 631 | XboxOneSCId: 632 | XboxOneGameOsOverridePath: 633 | XboxOnePackagingOverridePath: 634 | XboxOneAppManifestOverridePath: 635 | XboxOneVersion: 1.0.0.0 636 | XboxOnePackageEncryption: 0 637 | XboxOnePackageUpdateGranularity: 2 638 | XboxOneDescription: 639 | XboxOneLanguage: 640 | - enus 641 | XboxOneCapability: [] 642 | XboxOneGameRating: {} 643 | XboxOneIsContentPackage: 0 644 | XboxOneEnhancedXboxCompatibilityMode: 0 645 | XboxOneEnableGPUVariability: 1 646 | XboxOneSockets: {} 647 | XboxOneSplashScreen: {fileID: 0} 648 | XboxOneAllowedProductIds: [] 649 | XboxOnePersistentLocalStorageSize: 0 650 | XboxOneXTitleMemory: 8 651 | XboxOneOverrideIdentityName: 652 | XboxOneOverrideIdentityPublisher: 653 | vrEditorSettings: {} 654 | cloudServicesEnabled: 655 | UNet: 1 656 | luminIcon: 657 | m_Name: 658 | m_ModelFolderPath: 659 | m_PortalFolderPath: 660 | luminCert: 661 | m_CertPath: 662 | m_SignPackage: 1 663 | luminIsChannelApp: 0 664 | luminVersion: 665 | m_VersionCode: 1 666 | m_VersionName: 667 | apiCompatibilityLevel: 6 668 | activeInputHandler: 0 669 | cloudProjectId: 670 | framebufferDepthMemorylessMode: 0 671 | qualitySettingsNames: [] 672 | projectName: 673 | organizationId: 674 | cloudEnabled: 0 675 | legacyClampBlendShapeWeights: 0 676 | virtualTexturingSupportEnabled: 0 677 | --------------------------------------------------------------------------------