├── Assets ├── UniTaskPubSub │ ├── Runtime.meta │ ├── Runtime │ │ ├── AsyncMessageBus.cs.meta │ │ ├── AsyncPublishContext.cs.meta │ │ ├── IAsyncPublishFilter.cs.meta │ │ ├── Internal.meta │ │ ├── UniTaskPubSub.asmdef.meta │ │ ├── AsyncEnumerable.meta │ │ ├── AsyncEnumerable │ │ │ ├── UniTaskPubSub.AsyncEnumerable.asmdef.meta │ │ │ ├── AsyncEnumerableMessageBus.cs.meta │ │ │ ├── UniTaskPubSub.AsyncEnumerable.asmdef │ │ │ └── AsyncEnumerableMessageBus.cs │ │ ├── AsyncPublishContext.cs │ │ ├── Internal │ │ │ ├── CappedArrayPool.cs.meta │ │ │ └── CappedArrayPool.cs │ │ ├── IAsyncPublishFilter.cs │ │ ├── UniTaskPubSub.asmdef │ │ └── AsyncMessageBus.cs │ ├── Tests │ │ ├── AsyncMessageBusTest.cs.meta │ │ ├── AsyncPublishFilterTest.cs.meta │ │ ├── UniTaskPubSub.Tests.asmdef.meta │ │ ├── AsyncEnumerableMessageBusTest.cs.meta │ │ ├── UniTaskPubSub.Tests.asmdef │ │ ├── AsyncEnumerableMessageBusTest.cs │ │ ├── AsyncPublishFilterTest.cs │ │ └── AsyncMessageBusTest.cs │ ├── package.json.meta │ ├── Tests.meta │ └── package.json └── UniTaskPubSub.meta ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── PresetManager.asset ├── EditorBuildSettings.asset ├── XRSettings.asset ├── VersionControlSettings.asset ├── TimeManager.asset ├── VFXManager.asset ├── AudioManager.asset ├── TagManager.asset ├── UnityConnectSettings.asset ├── EditorSettings.asset ├── PackageManagerSettings.asset ├── DynamicsManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── QualitySettings.asset └── ProjectSettings.asset ├── .github └── workflows │ ├── notify.yaml │ ├── test.yaml │ └── release.yaml ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── .gitignore └── README.md /Assets/UniTaskPubSub/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7715e224670542a7b82e6a8276e50d9f 3 | timeCreated: 1608281903 -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.3.0f1 2 | m_EditorVersionWithRevision: 2020.3.0f1 (c7b5465681fb) 3 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncMessageBus.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d821cedd5c66454fb022cad6a76fb0ce 3 | timeCreated: 1612526238 -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncPublishContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42f02fba5a3b4fe181828a2ee54101b2 3 | timeCreated: 1613024474 -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/IAsyncPublishFilter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fab2adab509649cc9c2cb2697a8df563 3 | timeCreated: 1613018851 -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/AsyncMessageBusTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 996cf5822b9e4fe1880f67f32ae710b2 3 | timeCreated: 1612535113 -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/AsyncPublishFilterTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a94a2410fc9041cabe88a96ebd2794ac 3 | timeCreated: 1613026292 -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/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/UniTaskPubSub.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8171576139ab942f3af613ce6d7b83d5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ded6e61f4ef9d4cb2b66a1129f271d0d 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/UniTaskPubSub/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e38db9b0a74d4c76a654c664bcc10ec 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/UniTaskPubSub/Runtime/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbb577c6bc4ab471a962cef2024b350c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/UniTaskPubSub.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8161667de84644ec1b7c7b2a6d8e757d 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncEnumerable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6d99416095f04e779ade3c7302fda6d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/UniTaskPubSub.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5f154b15c37d486d96ec42a055a6882 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 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncEnumerable/UniTaskPubSub.AsyncEnumerable.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1194e04999474d2bb94f0e764532fd3 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /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/UniTaskPubSub/Runtime/AsyncPublishContext.cs: -------------------------------------------------------------------------------- 1 | namespace UniTaskPubSub 2 | { 3 | public sealed class AsyncPublishContext 4 | { 5 | public T Message; 6 | public int CurrenetFilterIndex; 7 | 8 | public AsyncPublishContext(T msg) 9 | { 10 | Message = msg; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/Internal/CappedArrayPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c8b1e80a46234e939b5d59affd157a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/AsyncEnumerableMessageBusTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6efdf6c4453a9415683b8637d28b7a5d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncEnumerable/AsyncEnumerableMessageBus.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1eff9270fe0c5445d9f667cdeb4022f1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 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/UniTaskPubSub/Runtime/IAsyncPublishFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | using Cysharp.Threading.Tasks; 4 | 5 | namespace UniTaskPubSub 6 | { 7 | public interface IAsyncPublishFilter 8 | { 9 | UniTask PublishFilterAsync( 10 | T msg, 11 | CancellationToken cancellation, 12 | Func next); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jp.hadashikick.unitaskpubsub", 3 | "displayName": "UniTaskPubSub", 4 | "version": "0.10.0", 5 | "unity": "2018.4", 6 | "description": "UniTask & IUniTaskAsyncEnumerable baseed pub/sub messaging", 7 | "keywords": ["UniTask", "async/await", "async", "Pub/Sub", "MessageBroker", "EventAggregator"], 8 | "license": "MIT", 9 | "dependencies": { 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /.github/workflows/notify.yaml: -------------------------------------------------------------------------------- 1 | name: Star 2 | 3 | on: 4 | watch: 5 | types: [started] 6 | 7 | jobs: 8 | star: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: 8398a7/action-slack@v1 12 | with: 13 | payload: | 14 | { "text": "☆${{ github.event.repository.stargazers_count }} ${{ github.event.repository.html_url }}" } 15 | env: 16 | SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} 17 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/UniTaskPubSub.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTaskPubSub", 3 | "rootNamespace": "", 4 | "references": [ 5 | "UniTask" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } 17 | -------------------------------------------------------------------------------- /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/UniTaskPubSub/Runtime/AsyncEnumerable/UniTaskPubSub.AsyncEnumerable.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTaskPubSub.AsyncEnumerable", 3 | "rootNamespace": "", 4 | "references": [ 5 | "UniTask", 6 | "UniTask.Linq" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [], 16 | "noEngineReferences": false 17 | } 18 | -------------------------------------------------------------------------------- /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/UniTaskPubSub/Tests/UniTaskPubSub.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTaskPubSub.Tests", 3 | "rootNamespace": "", 4 | "references": [ 5 | "UnityEngine.TestRunner", 6 | "UnityEditor.TestRunner", 7 | "UniTask", 8 | "UniTask.Linq", 9 | "UniTaskPubSub", 10 | "UniTaskPubSub.AsyncEnumerable" 11 | ], 12 | "includePlatforms": [], 13 | "excludePlatforms": [], 14 | "allowUnsafeCode": false, 15 | "overrideReferences": true, 16 | "precompiledReferences": [ 17 | "nunit.framework.dll" 18 | ], 19 | "autoReferenced": false, 20 | "defineConstraints": [ 21 | "UNITY_INCLUDE_TESTS" 22 | ], 23 | "versionDefines": [], 24 | "noEngineReferences": false 25 | } -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/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_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_SerializeInlineMappingsOnOneLine: 1 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 hadashiA 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask", 4 | "com.unity.ide.rider": "2.0.7", 5 | "com.unity.ide.visualstudio": "2.0.7", 6 | "com.unity.ide.vscode": "1.2.3", 7 | "com.unity.test-framework": "1.1.22", 8 | "com.unity.ugui": "1.0.0", 9 | "com.unity.modules.animation": "1.0.0", 10 | "com.unity.modules.assetbundle": "1.0.0", 11 | "com.unity.modules.audio": "1.0.0", 12 | "com.unity.modules.imageconversion": "1.0.0", 13 | "com.unity.modules.imgui": "1.0.0", 14 | "com.unity.modules.jsonserialize": "1.0.0", 15 | "com.unity.modules.particlesystem": "1.0.0", 16 | "com.unity.modules.physics": "1.0.0", 17 | "com.unity.modules.physics2d": "1.0.0", 18 | "com.unity.modules.screencapture": "1.0.0", 19 | "com.unity.modules.ui": "1.0.0", 20 | "com.unity.modules.uielements": "1.0.0", 21 | "com.unity.modules.unitywebrequest": "1.0.0", 22 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 23 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 24 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 25 | "com.unity.modules.unitywebrequestwww": "1.0.0" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- 1 | name: Test 2 | 3 | on: push 4 | 5 | jobs: 6 | test-unity: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | unityVersion: 11 | - 2020.3.0f1 12 | - 2019.4.22f1 13 | - 2019.3.15f1 14 | include: 15 | - unityVersion: 2020.3.0f1 16 | license: UNITY_LICENSE_2020_3 17 | - unityVersion: 2019.4.22f1 18 | license: UNITY_LICENSE_2019_4 19 | - unityVersion: 2019.3.15f1 20 | license: UNITY_LICENSE_2019_3 21 | # - unityVersion: 2018.4.32f1 22 | # license: UNITY_LICENSE_2018_4 23 | steps: 24 | - uses: actions/checkout@v2 25 | - uses: actions/cache@v2 26 | with: 27 | path: Library 28 | key: Library-UniTaskPubSub-${{ matrix.unityVersion }} 29 | restore-keys: | 30 | Library-UniTaskPubSub 31 | Library- 32 | - uses: game-ci/unity-test-runner@v2.0-alpha-2 33 | env: 34 | UNITY_LICENSE: ${{ secrets[matrix.license] }} 35 | with: 36 | projectPath: . 37 | unityVersion: ${{ matrix.unityVersion }} 38 | # customParameters: -testSettingsFile ./testSettings.json 39 | - uses: actions/upload-artifact@v2 40 | with: 41 | name: Test results 42 | path: artifacts 43 | -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: ["[0-9]+.[0-9]+.[0-9]+*"] 6 | branches: ['release-test'] 7 | jobs: 8 | build-unity: 9 | runs-on: ubuntu-latest 10 | env: 11 | UNITY_LICENSE_FILE: ./tmp/ulf 12 | UNITY_BIN: /opt/Unity/Editor/Unity 13 | container: 14 | image: gableroux/unity3d:2020.1.13f1-linux-il2cpp 15 | steps: 16 | - uses: actions/checkout@v2 17 | - name: Decode Unity License File 18 | run: | 19 | mkdir ./tmp 20 | echo -n ${{ secrets.UNITY_LICENSE_2020_1_BASE64 }} | base64 --decode > $UNITY_LICENSE_FILE 21 | - run: $UNITY_BIN -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile $UNITY_LICENSE_FILE || exit 0 22 | 23 | # set release tag(*.*.*) to env.GIT_TAG 24 | - run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV 25 | 26 | # Execute scripts: Export Package 27 | - name: Export unitypackage 28 | run: $UNITY_BIN -quit -batchmode -nographics -logFile /dev/stdout -exportPackage Assets/UniTaskPubSub/Runtime UniTaskPubSub.${{ env.GIT_TAG }}.unitypackage -projectPath ./ 29 | 30 | # Store artifacts. 31 | - uses: actions/upload-artifact@v2 32 | with: 33 | name: UniTaskPubSub.${{ env.GIT_TAG }}.unitypackage 34 | path: ./UniTaskPubSub.${{ env.GIT_TAG }}.unitypackage 35 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/unity 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=unity 4 | 5 | ### Unity ### 6 | # This .gitignore file should be placed at the root of your Unity project directory 7 | # 8 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 9 | /[Ll]ibrary/ 10 | /[Tt]emp/ 11 | /[Oo]bj/ 12 | /[Bb]uild/ 13 | /[Bb]uilds/ 14 | /[Ll]ogs/ 15 | /[Uu]ser[Ss]ettings/ 16 | 17 | # MemoryCaptures can get excessive in size. 18 | # They also could contain extremely sensitive data 19 | /[Mm]emoryCaptures/ 20 | 21 | # Asset meta data should only be ignored when the corresponding asset is also ignored 22 | !/[Aa]ssets/**/*.meta 23 | 24 | # Uncomment this line if you wish to ignore the asset store tools plugin 25 | # /[Aa]ssets/AssetStoreTools* 26 | 27 | # Autogenerated Jetbrains Rider plugin 28 | /[Aa]ssets/Plugins/Editor/JetBrains* 29 | 30 | # Visual Studio cache directory 31 | .vs/ 32 | 33 | # Gradle cache directory 34 | .gradle/ 35 | 36 | # Autogenerated VS/MD/Consulo solution and project files 37 | ExportedObj/ 38 | .consulo/ 39 | *.csproj 40 | *.unityproj 41 | *.sln 42 | *.suo 43 | *.tmp 44 | *.user 45 | *.userprefs 46 | *.pidb 47 | *.booproj 48 | *.svd 49 | *.pdb 50 | *.mdb 51 | *.opendb 52 | *.VC.db 53 | 54 | # Unity3D generated meta files 55 | *.pidb.meta 56 | *.pdb.meta 57 | *.mdb.meta 58 | 59 | # Unity3D generated file on crash reports 60 | sysinfo.txt 61 | 62 | # Builds 63 | *.apk 64 | *.unitypackage 65 | 66 | # Crashlytics generated file 67 | crashlytics-build.properties 68 | 69 | # Autogenerated files 70 | InitTestScene*.unity.meta 71 | InitTestScene*.unity 72 | 73 | 74 | # End of https://www.toptal.com/developers/gitignore/api/unity 75 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/AsyncEnumerableMessageBusTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using Cysharp.Threading.Tasks; 4 | using Cysharp.Threading.Tasks.Linq; 5 | using NUnit.Framework; 6 | using UnityEngine.TestTools; 7 | using UniTaskPubSub.AsyncEnumerable; 8 | 9 | namespace UniTaskPubSub.Tests 10 | { 11 | readonly struct TestMessage 12 | { 13 | public readonly int Id; 14 | 15 | public TestMessage(int x) 16 | { 17 | Id = x; 18 | } 19 | } 20 | 21 | public class AsyncEnumerableMessageBusTest 22 | { 23 | [UnityTest] 24 | public IEnumerator Multicast() => UniTask.ToCoroutine(async () => 25 | { 26 | var messageBus = new AsyncEnumerableMessageBus(); 27 | var receives = 0; 28 | 29 | messageBus.Receive() 30 | .SelectAwait(async msg => 31 | { 32 | await UniTask.Yield(); 33 | return msg.Id; 34 | }) 35 | .Subscribe(_ => receives += 1); 36 | 37 | messageBus.Receive() 38 | .Subscribe(_ => receives += 1); 39 | 40 | messageBus.Publish(new TestMessage(100)); 41 | 42 | await UniTask.Delay(500); 43 | 44 | Assert.That(receives, Is.EqualTo(2)); 45 | }); 46 | 47 | [Test] 48 | public void DisposeAll() 49 | { 50 | var messageBus = new AsyncEnumerableMessageBus(); 51 | var receives = 0; 52 | 53 | messageBus.Receive().Subscribe(async msg => 54 | { 55 | await UniTask.Yield(); 56 | receives += 1; 57 | }); 58 | 59 | messageBus.Dispose(); 60 | 61 | Assert.Throws(() => 62 | { 63 | messageBus.Publish(new TestMessage(100)); 64 | }); 65 | Assert.That(receives, Is.Zero); 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /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/UniTaskPubSub/Runtime/Internal/CappedArrayPool.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UniTaskPubSub.Internal 4 | { 5 | sealed class CappedArrayPool 6 | { 7 | internal const int InitialBucketSize = 4; 8 | 9 | public static readonly T[] EmptyArray = new T[0]; 10 | public static readonly CappedArrayPool Shared8Limit = new CappedArrayPool(8); 11 | 12 | readonly T[][][] buckets; 13 | readonly object syncRoot = new object(); 14 | readonly int[] tails; 15 | 16 | internal CappedArrayPool(int maxLength) 17 | { 18 | buckets = new T[maxLength][][]; 19 | tails = new int[maxLength]; 20 | for (var i = 0; i < maxLength; i++) 21 | { 22 | var arrayLength = i + 1; 23 | buckets[i] = new T[InitialBucketSize][]; 24 | for (var j = 0; j < InitialBucketSize; j++) 25 | { 26 | buckets[i][j] = new T[arrayLength]; 27 | } 28 | tails[i] = buckets[i].Length - 1; 29 | } 30 | } 31 | 32 | public T[] Rent(int length) 33 | { 34 | if (length <= 0) 35 | return EmptyArray; 36 | 37 | if (length > buckets.Length) 38 | return new T[length]; // Not supported 39 | 40 | var i = length - 1; 41 | 42 | lock (syncRoot) 43 | { 44 | var bucket = buckets[i]; 45 | var tail = tails[i]; 46 | if (tail >= bucket.Length) 47 | { 48 | Array.Resize(ref bucket, bucket.Length * 2); 49 | buckets[i] = bucket; 50 | } 51 | 52 | var result = bucket[tail] ?? new T[length]; 53 | tails[i] += 1; 54 | return result; 55 | } 56 | } 57 | 58 | public void Return(T[] array) 59 | { 60 | if (array.Length <= 0 || array.Length > buckets.Length) 61 | return; 62 | 63 | var i = array.Length - 1; 64 | lock (syncRoot) 65 | { 66 | if (tails[i] > 0) 67 | tails[i] -= 1; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/AsyncPublishFilterTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Threading; 4 | using Cysharp.Threading.Tasks; 5 | using NUnit.Framework; 6 | using UnityEngine.TestTools; 7 | 8 | namespace UniTaskPubSub.Tests 9 | { 10 | class TestFilter1 : IAsyncPublishFilter 11 | { 12 | public int Invoked; 13 | 14 | public UniTask PublishFilterAsync( 15 | T msg, 16 | CancellationToken cancellation, 17 | Func next) 18 | { 19 | Invoked += 1; 20 | return next(msg, cancellation); 21 | } 22 | } 23 | 24 | class TestFilter2 : IAsyncPublishFilter 25 | { 26 | public int Invoked; 27 | 28 | public UniTask PublishFilterAsync( 29 | T msg, 30 | CancellationToken cancellation, 31 | Func next) 32 | { 33 | Invoked += 1; 34 | return next(msg, cancellation); 35 | } 36 | } 37 | 38 | class IgnoreMessageFilter : IAsyncPublishFilter 39 | { 40 | public UniTask PublishFilterAsync( 41 | T msg, 42 | CancellationToken cancellation, 43 | Func next) 44 | { 45 | return UniTask.CompletedTask; 46 | } 47 | } 48 | 49 | [TestFixture] 50 | public class AsyncPublishFilterTest 51 | { 52 | [UnityTest] 53 | public IEnumerator CallFilters() => UniTask.ToCoroutine(async () => 54 | { 55 | var filter1 = new TestFilter1(); 56 | var filter2 = new TestFilter2(); 57 | var messageBus = new AsyncMessageBus(new IAsyncPublishFilter[] { filter1, filter2 }); 58 | 59 | var subscribeCalls = 0; 60 | messageBus.Subscribe(msg => subscribeCalls++); 61 | 62 | await messageBus.PublishAsync(new TestMessage(100)); 63 | Assert.That(filter1.Invoked, Is.EqualTo(1)); 64 | Assert.That(filter2.Invoked, Is.EqualTo(1)); 65 | Assert.That(subscribeCalls, Is.EqualTo(1)); 66 | }); 67 | 68 | [UnityTest] 69 | public IEnumerator CallIgnoreFilter() => UniTask.ToCoroutine(async () => 70 | { 71 | var ignoreFilter = new IgnoreMessageFilter(); 72 | var messageBus = new AsyncMessageBus(new IAsyncPublishFilter[] { ignoreFilter }); 73 | 74 | var subscribeCalls = 0; 75 | messageBus.Subscribe(msg => subscribeCalls++); 76 | await messageBus.PublishAsync(new TestMessage(100)); 77 | 78 | Assert.That(subscribeCalls, Is.EqualTo(0)); 79 | }); 80 | } 81 | } -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncEnumerable/AsyncEnumerableMessageBus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Cysharp.Threading.Tasks; 4 | using Cysharp.Threading.Tasks.Linq; 5 | 6 | namespace UniTaskPubSub.AsyncEnumerable 7 | { 8 | public interface IAsyncEnumerablePublisher 9 | { 10 | void Publish(T msg); 11 | } 12 | 13 | public interface IAsyncEnumerableReceiver 14 | { 15 | IUniTaskAsyncEnumerable Receive(); 16 | } 17 | 18 | public class AsyncEnumerableMessageBus : 19 | IAsyncEnumerablePublisher, 20 | IAsyncEnumerableReceiver, 21 | IDisposable 22 | { 23 | sealed class Pipe : IDisposable 24 | { 25 | public readonly ChannelWriter Writer; 26 | public readonly IConnectableUniTaskAsyncEnumerable MulticastSource; 27 | public readonly IDisposable Connection; 28 | 29 | public Pipe() 30 | { 31 | var channel = Channel.CreateSingleConsumerUnbounded(); 32 | Writer = channel.Writer; 33 | MulticastSource = channel.Reader.ReadAllAsync().Publish(); 34 | Connection = MulticastSource.Connect(); 35 | } 36 | 37 | public void Dispose() 38 | { 39 | Writer.TryComplete(); 40 | Connection.Dispose(); 41 | } 42 | } 43 | 44 | public static readonly AsyncEnumerableMessageBus Default = new AsyncEnumerableMessageBus(); 45 | 46 | readonly IDictionary pipes = new Dictionary(); 47 | bool disposed; 48 | 49 | public void Publish(T command) 50 | { 51 | if (disposed) 52 | { 53 | throw new ObjectDisposedException("AsyncEnumerableMessageBus"); 54 | } 55 | 56 | object pipe; 57 | lock (pipes) 58 | { 59 | if (!pipes.TryGetValue(typeof(T), out pipe)) 60 | { 61 | return; 62 | } 63 | } 64 | ((Pipe)pipe).Writer.TryWrite(command); 65 | } 66 | 67 | public IUniTaskAsyncEnumerable Receive() 68 | { 69 | if (disposed) 70 | { 71 | throw new ObjectDisposedException("AsyncEnumerableMessageBus"); 72 | } 73 | 74 | object pipe; 75 | lock (pipes) 76 | { 77 | if (!pipes.TryGetValue(typeof(T), out pipe)) 78 | { 79 | pipe = new Pipe(); 80 | pipes.Add(typeof(T), pipe); 81 | } 82 | } 83 | return ((Pipe)pipe).MulticastSource; 84 | } 85 | 86 | public void Dispose() 87 | { 88 | lock (pipes) 89 | { 90 | foreach (var entry in pipes) 91 | { 92 | if (entry.Value is IDisposable disposable) 93 | { 94 | disposable.Dispose(); 95 | } 96 | } 97 | disposed = true; 98 | } 99 | } 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Tests/AsyncMessageBusTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Threading; 4 | using Cysharp.Threading.Tasks; 5 | using NUnit.Framework; 6 | using UnityEngine.TestTools; 7 | 8 | namespace UniTaskPubSub.Tests 9 | { 10 | public class AsyncMessageBusTest 11 | { 12 | [UnityTest] 13 | public IEnumerator Unicast() => UniTask.ToCoroutine(async () => 14 | { 15 | var messageBus = new AsyncMessageBus(); 16 | var received = default(TestMessage); 17 | 18 | messageBus.Subscribe(async msg => 19 | { 20 | await UniTask.Yield(); 21 | received = msg; 22 | }); 23 | 24 | await messageBus.PublishAsync(new TestMessage(100)); 25 | 26 | Assert.That(received, Is.InstanceOf()); 27 | Assert.That(received.Id, Is.EqualTo(100)); 28 | }); 29 | 30 | [UnityTest] 31 | public IEnumerator Multicast() => UniTask.ToCoroutine(async () => 32 | { 33 | var messageBus = new AsyncMessageBus(); 34 | var receives = 0; 35 | 36 | messageBus.Subscribe(async msg => 37 | { 38 | await UniTask.Yield(); 39 | receives += 1; 40 | }); 41 | 42 | messageBus.Subscribe(async msg => 43 | { 44 | await UniTask.Delay(500); 45 | receives += 1; 46 | }); 47 | 48 | await messageBus.PublishAsync(new TestMessage(100)); 49 | 50 | Assert.That(receives, Is.EqualTo(2)); 51 | }); 52 | 53 | [UnityTest] 54 | public IEnumerator Cancellation() => UniTask.ToCoroutine(async () => 55 | { 56 | var messageBus = new AsyncMessageBus(); 57 | var cts = new CancellationTokenSource(); 58 | 59 | var exception = default(Exception); 60 | var receives = 0; 61 | 62 | messageBus.Subscribe(async (msg, cancellation) => 63 | { 64 | await UniTask.Yield(PlayerLoopTiming.Update, cancellation); 65 | receives += 1; 66 | }); 67 | 68 | messageBus.Subscribe(async msg => 69 | { 70 | await UniTask.Yield(); 71 | receives += 1; 72 | }); 73 | 74 | cts.Cancel(); 75 | try 76 | { 77 | await messageBus.PublishAsync(new TestMessage(100), cts.Token); 78 | } 79 | catch (Exception ex) 80 | { 81 | exception = ex; 82 | } 83 | 84 | Assert.That(receives, Is.Zero); 85 | Assert.That(exception, Is.InstanceOf()); 86 | }); 87 | 88 | [UnityTest] 89 | public IEnumerator DisposeSubscription() => UniTask.ToCoroutine(async () => 90 | { 91 | var messageBus = new AsyncMessageBus(); 92 | var receives = 0; 93 | 94 | var subscription1 = messageBus.Subscribe(async msg => 95 | { 96 | await UniTask.Yield(); 97 | receives += 1; 98 | }); 99 | 100 | var subscription2 = messageBus.Subscribe(async msg => 101 | { 102 | await UniTask.Yield(); 103 | receives += 1; 104 | }); 105 | 106 | subscription2.Dispose(); 107 | await messageBus.PublishAsync(new TestMessage(100)); 108 | 109 | Assert.That(receives, Is.EqualTo(1)); 110 | }); 111 | 112 | [UnityTest] 113 | public IEnumerator DisposeAll() => UniTask.ToCoroutine(async () => 114 | { 115 | var messageBus = new AsyncMessageBus(); 116 | var receives = 0; 117 | 118 | messageBus.Subscribe(async msg => 119 | { 120 | await UniTask.Yield(); 121 | receives += 1; 122 | }); 123 | 124 | messageBus.Dispose(); 125 | 126 | var disposedException = default(ObjectDisposedException); 127 | try 128 | { 129 | await messageBus.PublishAsync(new TestMessage(100)); 130 | } 131 | catch (ObjectDisposedException ex) 132 | { 133 | disposedException = ex; 134 | } 135 | 136 | Assert.That(disposedException, Is.InstanceOf()); 137 | Assert.That(receives, Is.Zero); 138 | }); 139 | 140 | [UnityTest] 141 | public IEnumerator SubscribeWithSync() => UniTask.ToCoroutine(async () => 142 | { 143 | var messageBus = new AsyncMessageBus(); 144 | var receives = 0; 145 | 146 | messageBus.Subscribe(msg => 147 | { 148 | receives += 1; 149 | }); 150 | 151 | await messageBus.PublishAsync(new TestMessage(100)); 152 | Assert.That(receives, Is.EqualTo(1)); 153 | }); 154 | } 155 | } -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.cysharp.unitask": { 4 | "version": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask", 5 | "depth": 0, 6 | "source": "git", 7 | "dependencies": {}, 8 | "hash": "3115efb67212a3abe973a270fb6d7705ebe8016e" 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": "2.0.7", 19 | "depth": 0, 20 | "source": "registry", 21 | "dependencies": { 22 | "com.unity.test-framework": "1.1.1" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ide.visualstudio": { 27 | "version": "2.0.7", 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.3", 37 | "depth": 0, 38 | "source": "registry", 39 | "dependencies": {}, 40 | "url": "https://packages.unity.com" 41 | }, 42 | "com.unity.test-framework": { 43 | "version": "1.1.22", 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.ugui": { 54 | "version": "1.0.0", 55 | "depth": 0, 56 | "source": "builtin", 57 | "dependencies": { 58 | "com.unity.modules.ui": "1.0.0", 59 | "com.unity.modules.imgui": "1.0.0" 60 | } 61 | }, 62 | "com.unity.modules.animation": { 63 | "version": "1.0.0", 64 | "depth": 0, 65 | "source": "builtin", 66 | "dependencies": {} 67 | }, 68 | "com.unity.modules.assetbundle": { 69 | "version": "1.0.0", 70 | "depth": 0, 71 | "source": "builtin", 72 | "dependencies": {} 73 | }, 74 | "com.unity.modules.audio": { 75 | "version": "1.0.0", 76 | "depth": 0, 77 | "source": "builtin", 78 | "dependencies": {} 79 | }, 80 | "com.unity.modules.imageconversion": { 81 | "version": "1.0.0", 82 | "depth": 0, 83 | "source": "builtin", 84 | "dependencies": {} 85 | }, 86 | "com.unity.modules.imgui": { 87 | "version": "1.0.0", 88 | "depth": 0, 89 | "source": "builtin", 90 | "dependencies": {} 91 | }, 92 | "com.unity.modules.jsonserialize": { 93 | "version": "1.0.0", 94 | "depth": 0, 95 | "source": "builtin", 96 | "dependencies": {} 97 | }, 98 | "com.unity.modules.particlesystem": { 99 | "version": "1.0.0", 100 | "depth": 0, 101 | "source": "builtin", 102 | "dependencies": {} 103 | }, 104 | "com.unity.modules.physics": { 105 | "version": "1.0.0", 106 | "depth": 0, 107 | "source": "builtin", 108 | "dependencies": {} 109 | }, 110 | "com.unity.modules.physics2d": { 111 | "version": "1.0.0", 112 | "depth": 0, 113 | "source": "builtin", 114 | "dependencies": {} 115 | }, 116 | "com.unity.modules.screencapture": { 117 | "version": "1.0.0", 118 | "depth": 0, 119 | "source": "builtin", 120 | "dependencies": { 121 | "com.unity.modules.imageconversion": "1.0.0" 122 | } 123 | }, 124 | "com.unity.modules.ui": { 125 | "version": "1.0.0", 126 | "depth": 0, 127 | "source": "builtin", 128 | "dependencies": {} 129 | }, 130 | "com.unity.modules.uielements": { 131 | "version": "1.0.0", 132 | "depth": 0, 133 | "source": "builtin", 134 | "dependencies": { 135 | "com.unity.modules.ui": "1.0.0", 136 | "com.unity.modules.imgui": "1.0.0", 137 | "com.unity.modules.jsonserialize": "1.0.0", 138 | "com.unity.modules.uielementsnative": "1.0.0" 139 | } 140 | }, 141 | "com.unity.modules.uielementsnative": { 142 | "version": "1.0.0", 143 | "depth": 1, 144 | "source": "builtin", 145 | "dependencies": { 146 | "com.unity.modules.ui": "1.0.0", 147 | "com.unity.modules.imgui": "1.0.0", 148 | "com.unity.modules.jsonserialize": "1.0.0" 149 | } 150 | }, 151 | "com.unity.modules.unitywebrequest": { 152 | "version": "1.0.0", 153 | "depth": 0, 154 | "source": "builtin", 155 | "dependencies": {} 156 | }, 157 | "com.unity.modules.unitywebrequestassetbundle": { 158 | "version": "1.0.0", 159 | "depth": 0, 160 | "source": "builtin", 161 | "dependencies": { 162 | "com.unity.modules.assetbundle": "1.0.0", 163 | "com.unity.modules.unitywebrequest": "1.0.0" 164 | } 165 | }, 166 | "com.unity.modules.unitywebrequestaudio": { 167 | "version": "1.0.0", 168 | "depth": 0, 169 | "source": "builtin", 170 | "dependencies": { 171 | "com.unity.modules.unitywebrequest": "1.0.0", 172 | "com.unity.modules.audio": "1.0.0" 173 | } 174 | }, 175 | "com.unity.modules.unitywebrequesttexture": { 176 | "version": "1.0.0", 177 | "depth": 0, 178 | "source": "builtin", 179 | "dependencies": { 180 | "com.unity.modules.unitywebrequest": "1.0.0", 181 | "com.unity.modules.imageconversion": "1.0.0" 182 | } 183 | }, 184 | "com.unity.modules.unitywebrequestwww": { 185 | "version": "1.0.0", 186 | "depth": 0, 187 | "source": "builtin", 188 | "dependencies": { 189 | "com.unity.modules.unitywebrequest": "1.0.0", 190 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 191 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 192 | "com.unity.modules.audio": "1.0.0", 193 | "com.unity.modules.assetbundle": "1.0.0", 194 | "com.unity.modules.imageconversion": "1.0.0" 195 | } 196 | } 197 | } 198 | } 199 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > [!IMPORTANT] 2 | > This project is archived. The author is currently working on a [VitalRouter](https://github.com/hadashiA/VitalRouter) that takes over the concept. I hope you will consider this library's low-level api as an alternative. 3 | 4 | # UniTaskPubSub 5 | 6 | UniTask & `IUniTaskAsyncEnumerable` based pub/sub messaging. 7 | This is like the UniTask version of UniRx.MessageBroker. 8 | 9 | ## Pub/Sub (Publish/Subscribe) pattern 10 | 11 | In the Pub/Sub messaging model, the sender who creates and sends a message is called the **publisher**. The party receiving the message is called the **subscriber**. 12 | 13 | 14 | - Makes the sender and receiver loosely coupled, rather than the object directly calling the method. 15 | - It is possible to create multiple processes for a single message. In other words, the number of subscribers to a publisher is 1:N. 16 | 17 | 18 | ## UniTask 19 | 20 | [UniTask](https://github.com/Cysharp/UniTask) is a library that brings fast and powerful async/await to the Unity world. 21 | 22 | UniTaskPubSub uses UniTask and allows async/await for processing pub/sub messages. 23 | 24 | ## Pub/Sub & Game archtecture 25 | 26 | In game development, one event in the game often affects many factors and many objects. This is one of the reasons why game development is so complex. 27 | It is useful to make the sender and receiver loosely coupled by a Pub/sub messaging system. 28 | 29 | ## Installation 30 | 31 | ### Requirements 32 | 33 | - Unity 2018.4+ 34 | - [Cysharp/UniTask](https://github.com/Cysharp/UniTask) Ver.2.0+ 35 | 36 | ### Install via UPM (using Git URL) 37 | 38 | 1. Navigate to your project's Packages folder and open the manifest.json file. 39 | 2. Add this line below the "dependencies": { line 40 | - ```json 41 | "jp.hadashikick.unitaskpubsub": "https://github.com/hadashiA/UniTaskPubSub.git?path=Assets/UniTaskPubSub#0.10.0", 42 | ``` 43 | 3. UPM should now install the package. 44 | 45 | ### Install manually (using .unitypackage) 46 | 47 | 1. Download the .unitypackage from releases page. 48 | 2. Open UniTaskPubSub.x.x.x.unitypackage 49 | 50 | ## Usage 51 | 52 | ### UniTask based pub/sub 53 | 54 | ```csharp 55 | struct FooMessage 56 | { 57 | public int Id; 58 | } 59 | ``` 60 | 61 | ```csharp 62 | var messageBus = new AsyncMessageBus(); 63 | 64 | // Subscriber 65 | 66 | messageBus.Subscribe(async msg => 67 | { 68 | await DoSomething1Async(msg.Id); 69 | }); 70 | 71 | messageBus.Subscribe(async msg => 72 | { 73 | await DoSomething2Async(msg.Id); 74 | }); 75 | 76 | 77 | // Publisher 78 | 79 | // Await for all subscribers. 80 | await messageBus.PublishAsync(new FooMessage { Id = 1 }); 81 | 82 | // After PublishAsync awaited, DoSomething1Async and DoSomething2Async have been completed. 83 | ``` 84 | 85 | You can also use `AsyncMessageBus.Default` instance, instead of `new AsyncMessageBus()`. 86 | 87 | #### Fire & forget 88 | 89 | When using Publish(), do not wait for Subscriber. 90 | 91 | ```csharp 92 | messageBus.Publish(new FooMessage { Id = 1 }); 93 | ``` 94 | 95 | #### CancellationToken 96 | 97 | `PublishAsync` and `Publish` can be passed a cancellationToken. 98 | This can be used to cancel the process registered in the Subscriber. 99 | 100 | ```csharp 101 | messageBus.Subscribe(async (msg, cancellationToken) => 102 | { 103 | // ... 104 | cancellationToken.ThrowIfCancellationRequested(); 105 | // ... 106 | }); 107 | 108 | await messageBus.PublishAsync(new FooMessage(), cancellationToken); 109 | ``` 110 | 111 | #### Subscription 112 | 113 | 114 | `Subscribe` returns `IDisposable`. 115 | Disposing of this will unsubscribe. 116 | 117 | ```csharp 118 | var subscription = messageBus.Subscribe(...); 119 | subscription.Dispose(); 120 | ``` 121 | 122 | The `AddTo` extension to UniTask is useful. 123 | 124 | ```csharp 125 | messageBus.Subscribe(...) 126 | .AddTo(cancellationToken); 127 | ``` 128 | 129 | #### Filter 130 | 131 | AsyncMessageBus can insert any preprocessing or postprocessing into publish. 132 | This feature is called a filter. 133 | 134 | Filters can be used to do the following in one step 135 | - Insert logging. 136 | - Ignore certain messages 137 | - etc.. 138 | 139 | Examples: 140 | 141 | ```csharp 142 | // Add filter type 143 | class LoggingFilter : IAsyncPublishFilter 144 | { 145 | public async UniTask PublishFilterAsync( 146 | T msg, 147 | CancellationToken cancellation, 148 | Func next) 149 | { 150 | UnityEngine.Debug.Log($"Publish {msg.GetType()}"); 151 | await next(msg, cancellation); // Processing all subscribers. 152 | UnityEngine.Debug.Log($"Invoked {msg.GetType()}"); 153 | } 154 | } 155 | 156 | class IgnoreFilter : IAsyncPublishFilter 157 | { 158 | public async UniTask PublishFilterAsync( 159 | T msg, 160 | CancellationToken cancellation, 161 | Func next) 162 | { 163 | if (msg is FooMessage foo) 164 | { 165 | if (msg.SomeCondition) 166 | { 167 | UnityEngine.Debug.LogWarning($"Ignore {msg}") 168 | return; 169 | } 170 | } 171 | await next(msg, cancellation); // Processing all subscribers. 172 | } 173 | } 174 | ``` 175 | 176 | ```csharp 177 | // Create filter inserted MessageBus 178 | var messageBus = new AsyncMessageBus(new IAsyncPublishFilter[] 179 | { 180 | new LoggingFilter(), 181 | new IgnoreFilter(), 182 | }); 183 | ``` 184 | 185 | 186 | ### IUniTaskAsyncEnumerable based pub/sub 187 | 188 | *Required UniTask.Linq* 189 | 190 | `AsyncEnumerableMessageBus` can subscribe to a message as an async stream. 191 | 192 | `AsyncEnumerableMessageBus.Receive` returns `IUniTaskAsyncEnumerable`. 193 | You can take full advantage of LINQ operations and Subscribe functions for IUniTaskAsyncEnumerable. 194 | 195 | ```csharp 196 | struct FooMessage 197 | { 198 | public int Id; 199 | } 200 | ``` 201 | 202 | ```csharp 203 | using UniTaskPubSub; 204 | 205 | var messageBus = new AsyncEnumerableMessageBus(); 206 | 207 | messageBus.Receive() 208 | .Where(msg => msg.Id > 1) 209 | .Take(2) 210 | .Subscribe(async foo => 211 | { 212 | await LoadAsync(foo.Id); 213 | await ... 214 | await ... 215 | }); 216 | 217 | // 218 | 219 | messageBus.Publish(new FooMessage { Id = 1 }); 220 | messageBus.Publish(new FooMessage { Id = 2 }); 221 | messageBus.Publish(new FooMessage { Id = 3 }); 222 | ``` 223 | 224 | You can also use `AsyncEnumerableMessageBus.Default` instance, instead of `new AsyncEnumerableMessageBus()`. 225 | 226 | 227 | In Unity 2020.2+ + C# 8, you can also use `await foreach`. 228 | 229 | ```csharp 230 | await foreach (var foo in messageBus.Receive()) 231 | { 232 | // Do something 233 | } 234 | ``` 235 | 236 | ## Author 237 | 238 | [@hadashiA](https://twitter.com/hadashiA) 239 | 240 | ## License 241 | 242 | MIT 243 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/UniTaskPubSub/Runtime/AsyncMessageBus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Threading; 4 | using Cysharp.Threading.Tasks; 5 | using UniTaskPubSub.Internal; 6 | 7 | namespace UniTaskPubSub 8 | { 9 | public interface IAsyncPublisher 10 | { 11 | UniTask PublishAsync(T msg, CancellationToken cancellation = default); 12 | } 13 | 14 | public interface IAsyncSubscriber 15 | { 16 | IDisposable Subscribe(Func action); 17 | } 18 | 19 | public static class AsyncPublisherExtensions 20 | { 21 | public static void Publish( 22 | this IAsyncPublisher publisher, 23 | T msg, 24 | CancellationToken cancellation = default) 25 | { 26 | publisher.PublishAsync(msg, cancellation).Forget(); 27 | } 28 | } 29 | 30 | public static class AsyncSubscriberExtensions 31 | { 32 | public static IDisposable Subscribe( 33 | this IAsyncSubscriber subscriber, 34 | Func action) 35 | { 36 | return subscriber.Subscribe((msg, cancellation) => action(msg)); 37 | } 38 | 39 | public static IDisposable Subscribe( 40 | this IAsyncSubscriber subscriber, 41 | Action action) 42 | { 43 | return subscriber.Subscribe((msg, cancellation) => 44 | { 45 | action(msg); 46 | return UniTask.CompletedTask; 47 | }); 48 | } 49 | } 50 | 51 | public class AsyncMessageBus : IAsyncPublisher, IAsyncSubscriber, IDisposable 52 | { 53 | sealed class Pipe 54 | { 55 | readonly List> subscribers = 56 | new List>(); 57 | 58 | public void AddSubscriber(Func subscriber) 59 | { 60 | lock (subscribers) 61 | { 62 | subscribers.Add(subscriber); 63 | } 64 | } 65 | 66 | public void RemoveSubscriber(Func subscriber) 67 | { 68 | lock (subscribers) 69 | { 70 | subscribers.Remove(subscriber); 71 | } 72 | } 73 | 74 | public UniTask FireAllAsync(T msg, CancellationToken cancellation = default) 75 | { 76 | UniTask[] buffer; 77 | lock (subscribers) 78 | { 79 | buffer = CappedArrayPool.Shared8Limit.Rent(subscribers.Count); 80 | for (var i = 0; i < subscribers.Count; i++) 81 | { 82 | buffer[i] = subscribers[i](msg, cancellation); 83 | } 84 | } 85 | try 86 | { 87 | return UniTask.WhenAll(buffer); 88 | } 89 | finally 90 | { 91 | CappedArrayPool.Shared8Limit.Return(buffer); 92 | } 93 | } 94 | } 95 | 96 | sealed class Subscription : IDisposable 97 | { 98 | readonly AsyncMessageBus parent; 99 | readonly Func subscriber; 100 | 101 | public Subscription(AsyncMessageBus parent, Func subscriber) 102 | { 103 | this.parent = parent; 104 | this.subscriber = subscriber; 105 | } 106 | 107 | public void Dispose() 108 | { 109 | Pipe pipe = null; 110 | lock (parent.pipes) 111 | { 112 | if (parent.pipes.TryGetValue(typeof(T), out var entry)) 113 | { 114 | pipe = (Pipe)entry; 115 | } 116 | } 117 | pipe?.RemoveSubscriber(subscriber); 118 | } 119 | } 120 | 121 | public static readonly AsyncMessageBus Default = new AsyncMessageBus(); 122 | 123 | readonly IDictionary pipes = new Dictionary(); 124 | readonly IReadOnlyList filters; 125 | bool disposed; 126 | 127 | public AsyncMessageBus(IReadOnlyList filters = null) 128 | { 129 | this.filters = filters; 130 | } 131 | 132 | public UniTask PublishAsync(T msg, CancellationToken cancellation = default) 133 | { 134 | Pipe pipe = null; 135 | lock (pipes) 136 | { 137 | if (disposed) 138 | throw new ObjectDisposedException("AsyncMessageBus"); 139 | 140 | if (pipes.TryGetValue(typeof(T), out var entry)) 141 | { 142 | pipe = (Pipe)entry; 143 | } 144 | } 145 | 146 | if (pipe == null) 147 | return UniTask.CompletedTask; 148 | 149 | if (filters?.Count > 0) 150 | { 151 | var context = new AsyncPublishContext(msg); 152 | return PublishWithFilterRecursiveAsync( 153 | context, 154 | cancellation, 155 | (filteredContext, filteredCancellation) => pipe.FireAllAsync(filteredContext.Message, filteredCancellation)); 156 | 157 | } 158 | return pipe.FireAllAsync(msg, cancellation); 159 | } 160 | 161 | public IDisposable Subscribe(Func action) 162 | { 163 | Pipe pipe; 164 | lock (pipes) 165 | { 166 | if (disposed) 167 | throw new ObjectDisposedException("AsyncMessageBus"); 168 | 169 | if (pipes.TryGetValue(typeof(T), out var entry)) 170 | { 171 | pipe = (Pipe)entry; 172 | } 173 | else 174 | { 175 | pipe = new Pipe(); 176 | pipes.Add(typeof(T), pipe); 177 | } 178 | pipe.AddSubscriber(action); 179 | } 180 | return new Subscription(this, action); 181 | } 182 | 183 | public void Dispose() 184 | { 185 | lock (pipes) 186 | { 187 | pipes.Clear(); 188 | disposed = true; 189 | } 190 | } 191 | 192 | UniTask PublishWithFilterRecursiveAsync( 193 | AsyncPublishContext context, 194 | CancellationToken cancellation, 195 | Func, CancellationToken, UniTask> next) 196 | { 197 | if (context.CurrenetFilterIndex <= filters.Count - 1) 198 | { 199 | var nextFilter = filters[context.CurrenetFilterIndex++]; 200 | return nextFilter.PublishFilterAsync( 201 | context.Message, 202 | cancellation, 203 | (nextMessage, nextCancellation) => 204 | { 205 | context.Message = nextMessage; 206 | return PublishWithFilterRecursiveAsync(context, nextCancellation, next); 207 | }); 208 | } 209 | return next(context, cancellation); 210 | } 211 | } 212 | } -------------------------------------------------------------------------------- /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: eac9451b9a7ab4b7f901b75d83b39383 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: UniTaskPubSub 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.UniTaskPubSub 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.3 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 | switchPublisherNames_0: 375 | switchPublisherNames_1: 376 | switchPublisherNames_2: 377 | switchPublisherNames_3: 378 | switchPublisherNames_4: 379 | switchPublisherNames_5: 380 | switchPublisherNames_6: 381 | switchPublisherNames_7: 382 | switchPublisherNames_8: 383 | switchPublisherNames_9: 384 | switchPublisherNames_10: 385 | switchPublisherNames_11: 386 | switchPublisherNames_12: 387 | switchPublisherNames_13: 388 | switchPublisherNames_14: 389 | switchIcons_0: {fileID: 0} 390 | switchIcons_1: {fileID: 0} 391 | switchIcons_2: {fileID: 0} 392 | switchIcons_3: {fileID: 0} 393 | switchIcons_4: {fileID: 0} 394 | switchIcons_5: {fileID: 0} 395 | switchIcons_6: {fileID: 0} 396 | switchIcons_7: {fileID: 0} 397 | switchIcons_8: {fileID: 0} 398 | switchIcons_9: {fileID: 0} 399 | switchIcons_10: {fileID: 0} 400 | switchIcons_11: {fileID: 0} 401 | switchIcons_12: {fileID: 0} 402 | switchIcons_13: {fileID: 0} 403 | switchIcons_14: {fileID: 0} 404 | switchSmallIcons_0: {fileID: 0} 405 | switchSmallIcons_1: {fileID: 0} 406 | switchSmallIcons_2: {fileID: 0} 407 | switchSmallIcons_3: {fileID: 0} 408 | switchSmallIcons_4: {fileID: 0} 409 | switchSmallIcons_5: {fileID: 0} 410 | switchSmallIcons_6: {fileID: 0} 411 | switchSmallIcons_7: {fileID: 0} 412 | switchSmallIcons_8: {fileID: 0} 413 | switchSmallIcons_9: {fileID: 0} 414 | switchSmallIcons_10: {fileID: 0} 415 | switchSmallIcons_11: {fileID: 0} 416 | switchSmallIcons_12: {fileID: 0} 417 | switchSmallIcons_13: {fileID: 0} 418 | switchSmallIcons_14: {fileID: 0} 419 | switchManualHTML: 420 | switchAccessibleURLs: 421 | switchLegalInformation: 422 | switchMainThreadStackSize: 1048576 423 | switchPresenceGroupId: 424 | switchLogoHandling: 0 425 | switchReleaseVersion: 0 426 | switchDisplayVersion: 1.0.0 427 | switchStartupUserAccount: 0 428 | switchTouchScreenUsage: 0 429 | switchSupportedLanguagesMask: 0 430 | switchLogoType: 0 431 | switchApplicationErrorCodeCategory: 432 | switchUserAccountSaveDataSize: 0 433 | switchUserAccountSaveDataJournalSize: 0 434 | switchApplicationAttribute: 0 435 | switchCardSpecSize: -1 436 | switchCardSpecClock: -1 437 | switchRatingsMask: 0 438 | switchRatingsInt_0: 0 439 | switchRatingsInt_1: 0 440 | switchRatingsInt_2: 0 441 | switchRatingsInt_3: 0 442 | switchRatingsInt_4: 0 443 | switchRatingsInt_5: 0 444 | switchRatingsInt_6: 0 445 | switchRatingsInt_7: 0 446 | switchRatingsInt_8: 0 447 | switchRatingsInt_9: 0 448 | switchRatingsInt_10: 0 449 | switchRatingsInt_11: 0 450 | switchRatingsInt_12: 0 451 | switchLocalCommunicationIds_0: 452 | switchLocalCommunicationIds_1: 453 | switchLocalCommunicationIds_2: 454 | switchLocalCommunicationIds_3: 455 | switchLocalCommunicationIds_4: 456 | switchLocalCommunicationIds_5: 457 | switchLocalCommunicationIds_6: 458 | switchLocalCommunicationIds_7: 459 | switchParentalControl: 0 460 | switchAllowsScreenshot: 1 461 | switchAllowsVideoCapturing: 1 462 | switchAllowsRuntimeAddOnContentInstall: 0 463 | switchDataLossConfirmation: 0 464 | switchUserAccountLockEnabled: 0 465 | switchSystemResourceMemory: 16777216 466 | switchSupportedNpadStyles: 22 467 | switchNativeFsCacheSize: 32 468 | switchIsHoldTypeHorizontal: 0 469 | switchSupportedNpadCount: 8 470 | switchSocketConfigEnabled: 0 471 | switchTcpInitialSendBufferSize: 32 472 | switchTcpInitialReceiveBufferSize: 64 473 | switchTcpAutoSendBufferSizeMax: 256 474 | switchTcpAutoReceiveBufferSizeMax: 256 475 | switchUdpSendBufferSize: 9 476 | switchUdpReceiveBufferSize: 42 477 | switchSocketBufferEfficiency: 4 478 | switchSocketInitializeEnabled: 1 479 | switchNetworkInterfaceManagerInitializeEnabled: 1 480 | switchPlayerConnectionEnabled: 1 481 | switchUseNewStyleFilepaths: 0 482 | ps4NPAgeRating: 12 483 | ps4NPTitleSecret: 484 | ps4NPTrophyPackPath: 485 | ps4ParentalLevel: 11 486 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 487 | ps4Category: 0 488 | ps4MasterVersion: 01.00 489 | ps4AppVersion: 01.00 490 | ps4AppType: 0 491 | ps4ParamSfxPath: 492 | ps4VideoOutPixelFormat: 0 493 | ps4VideoOutInitialWidth: 1920 494 | ps4VideoOutBaseModeInitialWidth: 1920 495 | ps4VideoOutReprojectionRate: 60 496 | ps4PronunciationXMLPath: 497 | ps4PronunciationSIGPath: 498 | ps4BackgroundImagePath: 499 | ps4StartupImagePath: 500 | ps4StartupImagesFolder: 501 | ps4IconImagesFolder: 502 | ps4SaveDataImagePath: 503 | ps4SdkOverride: 504 | ps4BGMPath: 505 | ps4ShareFilePath: 506 | ps4ShareOverlayImagePath: 507 | ps4PrivacyGuardImagePath: 508 | ps4ExtraSceSysFile: 509 | ps4NPtitleDatPath: 510 | ps4RemotePlayKeyAssignment: -1 511 | ps4RemotePlayKeyMappingDir: 512 | ps4PlayTogetherPlayerCount: 0 513 | ps4EnterButtonAssignment: 1 514 | ps4ApplicationParam1: 0 515 | ps4ApplicationParam2: 0 516 | ps4ApplicationParam3: 0 517 | ps4ApplicationParam4: 0 518 | ps4DownloadDataSize: 0 519 | ps4GarlicHeapSize: 2048 520 | ps4ProGarlicHeapSize: 2560 521 | playerPrefsMaxSize: 32768 522 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 523 | ps4pnSessions: 1 524 | ps4pnPresence: 1 525 | ps4pnFriends: 1 526 | ps4pnGameCustomData: 1 527 | playerPrefsSupport: 0 528 | enableApplicationExit: 0 529 | resetTempFolder: 1 530 | restrictedAudioUsageRights: 0 531 | ps4UseResolutionFallback: 0 532 | ps4ReprojectionSupport: 0 533 | ps4UseAudio3dBackend: 0 534 | ps4UseLowGarlicFragmentationMode: 1 535 | ps4SocialScreenEnabled: 0 536 | ps4ScriptOptimizationLevel: 0 537 | ps4Audio3dVirtualSpeakerCount: 14 538 | ps4attribCpuUsage: 0 539 | ps4PatchPkgPath: 540 | ps4PatchLatestPkgPath: 541 | ps4PatchChangeinfoPath: 542 | ps4PatchDayOne: 0 543 | ps4attribUserManagement: 0 544 | ps4attribMoveSupport: 0 545 | ps4attrib3DSupport: 0 546 | ps4attribShareSupport: 0 547 | ps4attribExclusiveVR: 0 548 | ps4disableAutoHideSplash: 0 549 | ps4videoRecordingFeaturesUsed: 0 550 | ps4contentSearchFeaturesUsed: 0 551 | ps4CompatibilityPS5: 0 552 | ps4GPU800MHz: 1 553 | ps4attribEyeToEyeDistanceSettingVR: 0 554 | ps4IncludedModules: [] 555 | ps4attribVROutputEnabled: 0 556 | monoEnv: 557 | splashScreenBackgroundSourceLandscape: {fileID: 0} 558 | splashScreenBackgroundSourcePortrait: {fileID: 0} 559 | blurSplashScreenBackground: 1 560 | spritePackerPolicy: 561 | webGLMemorySize: 16 562 | webGLExceptionSupport: 1 563 | webGLNameFilesAsHashes: 0 564 | webGLDataCaching: 1 565 | webGLDebugSymbols: 0 566 | webGLEmscriptenArgs: 567 | webGLModulesDirectory: 568 | webGLTemplate: APPLICATION:Default 569 | webGLAnalyzeBuildSize: 0 570 | webGLUseEmbeddedResources: 0 571 | webGLCompressionFormat: 1 572 | webGLWasmArithmeticExceptions: 0 573 | webGLLinkerTarget: 1 574 | webGLThreadsSupport: 0 575 | webGLDecompressionFallback: 0 576 | scriptingDefineSymbols: {} 577 | additionalCompilerArguments: {} 578 | platformArchitecture: {} 579 | scriptingBackend: {} 580 | il2cppCompilerConfiguration: {} 581 | managedStrippingLevel: {} 582 | incrementalIl2cppBuild: {} 583 | suppressCommonWarnings: 1 584 | allowUnsafeCode: 0 585 | useDeterministicCompilation: 1 586 | useReferenceAssemblies: 1 587 | enableRoslynAnalyzers: 1 588 | additionalIl2CppArgs: 589 | scriptingRuntimeVersion: 1 590 | gcIncremental: 1 591 | assemblyVersionValidation: 1 592 | gcWBarrierValidation: 0 593 | apiCompatibilityLevelPerPlatform: {} 594 | m_RenderingPath: 1 595 | m_MobileRenderingPath: 1 596 | metroPackageName: Template_3D 597 | metroPackageVersion: 598 | metroCertificatePath: 599 | metroCertificatePassword: 600 | metroCertificateSubject: 601 | metroCertificateIssuer: 602 | metroCertificateNotAfter: 0000000000000000 603 | metroApplicationDescription: Template_3D 604 | wsaImages: {} 605 | metroTileShortName: 606 | metroTileShowName: 0 607 | metroMediumTileShowName: 0 608 | metroLargeTileShowName: 0 609 | metroWideTileShowName: 0 610 | metroSupportStreamingInstall: 0 611 | metroLastRequiredScene: 0 612 | metroDefaultTileSize: 1 613 | metroTileForegroundText: 2 614 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 615 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 616 | metroSplashScreenUseBackgroundColor: 0 617 | platformCapabilities: {} 618 | metroTargetDeviceFamilies: {} 619 | metroFTAName: 620 | metroFTAFileTypes: [] 621 | metroProtocolName: 622 | XboxOneProductId: 623 | XboxOneUpdateKey: 624 | XboxOneSandboxId: 625 | XboxOneContentId: 626 | XboxOneTitleId: 627 | XboxOneSCId: 628 | XboxOneGameOsOverridePath: 629 | XboxOnePackagingOverridePath: 630 | XboxOneAppManifestOverridePath: 631 | XboxOneVersion: 1.0.0.0 632 | XboxOnePackageEncryption: 0 633 | XboxOnePackageUpdateGranularity: 2 634 | XboxOneDescription: 635 | XboxOneLanguage: 636 | - enus 637 | XboxOneCapability: [] 638 | XboxOneGameRating: {} 639 | XboxOneIsContentPackage: 0 640 | XboxOneEnhancedXboxCompatibilityMode: 0 641 | XboxOneEnableGPUVariability: 1 642 | XboxOneSockets: {} 643 | XboxOneSplashScreen: {fileID: 0} 644 | XboxOneAllowedProductIds: [] 645 | XboxOnePersistentLocalStorageSize: 0 646 | XboxOneXTitleMemory: 8 647 | XboxOneOverrideIdentityName: 648 | XboxOneOverrideIdentityPublisher: 649 | vrEditorSettings: {} 650 | cloudServicesEnabled: 651 | UNet: 1 652 | luminIcon: 653 | m_Name: 654 | m_ModelFolderPath: 655 | m_PortalFolderPath: 656 | luminCert: 657 | m_CertPath: 658 | m_SignPackage: 1 659 | luminIsChannelApp: 0 660 | luminVersion: 661 | m_VersionCode: 1 662 | m_VersionName: 663 | apiCompatibilityLevel: 6 664 | activeInputHandler: 0 665 | cloudProjectId: 666 | framebufferDepthMemorylessMode: 0 667 | qualitySettingsNames: [] 668 | projectName: 669 | organizationId: 670 | cloudEnabled: 0 671 | legacyClampBlendShapeWeights: 0 672 | virtualTexturingSupportEnabled: 0 673 | --------------------------------------------------------------------------------