├── .gitignore ├── Assets ├── BurstSleep.meta ├── BurstSleep │ ├── Burst2ManagedCall.cs │ ├── Burst2ManagedCall.cs.meta │ ├── BurstSleep.cs │ ├── BurstSleep.cs.meta │ ├── BurstSleepDemo.asmdef │ ├── BurstSleepDemo.asmdef.meta │ ├── BurstUtils.cs │ ├── BurstUtils.cs.meta │ ├── EntryPointMonoBehaviour.cs │ └── EntryPointMonoBehaviour.cs.meta ├── Scenes.meta └── Scenes │ ├── SampleScene.unity │ └── SampleScene.unity.meta ├── DocPrintScreen.png ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── BurstAotSettings_StandaloneWindows.json ├── ClusterInputManager.asset ├── CommonBurstAotSettings.json ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Packages │ └── com.unity.testtools.codecoverage │ │ └── Settings.json ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | 13 | # MemoryCaptures can get excessive in size. 14 | # They also could contain extremely sensitive data 15 | /[Mm]emoryCaptures/ 16 | 17 | # Recordings can get excessive in size 18 | /[Rr]ecordings/ 19 | 20 | # Uncomment this line if you wish to ignore the asset store tools plugin 21 | # /[Aa]ssets/AssetStoreTools* 22 | 23 | # Autogenerated Jetbrains Rider plugin 24 | /[Aa]ssets/Plugins/Editor/JetBrains* 25 | 26 | # Visual Studio cache directory 27 | .vs/ 28 | 29 | # Gradle cache directory 30 | .gradle/ 31 | 32 | # Autogenerated VS/MD/Consulo solution and project files 33 | ExportedObj/ 34 | .consulo/ 35 | *.csproj 36 | *.unityproj 37 | *.sln 38 | *.suo 39 | *.tmp 40 | *.user 41 | *.userprefs 42 | *.pidb 43 | *.booproj 44 | *.svd 45 | *.pdb 46 | *.mdb 47 | *.opendb 48 | *.VC.db 49 | 50 | # Unity3D generated meta files 51 | *.pidb.meta 52 | *.pdb.meta 53 | *.mdb.meta 54 | 55 | # Unity3D generated file on crash reports 56 | sysinfo.txt 57 | 58 | # Builds 59 | *.apk 60 | *.aab 61 | *.unitypackage 62 | *.app 63 | 64 | # Crashlytics generated file 65 | crashlytics-build.properties 66 | 67 | # Packed Addressables 68 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 69 | 70 | # Temporary auto-generated Android Assets 71 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 72 | /[Aa]ssets/[Ss]treamingAssets/aa/* 73 | -------------------------------------------------------------------------------- /Assets/BurstSleep.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0ba3100519ea8a4a8cb311bbb48cb8f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BurstSleep/Burst2ManagedCall.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Runtime.InteropServices; 4 | using Unity.Burst; 5 | 6 | public static class Burst2ManagedCall 7 | { 8 | private static T s_Delegate; 9 | // alignment 16 is important to not crash on arm cpu 10 | private static readonly SharedStatic> s_SharedStaticFuncPtr = SharedStatic>.GetOrCreate, Key>(16); 11 | public static bool IsCreated => s_SharedStaticFuncPtr.Data.IsCreated; 12 | 13 | public static void Init(T @delegate) 14 | { 15 | CheckIsNotCreated(); 16 | s_Delegate = @delegate; 17 | s_SharedStaticFuncPtr.Data = new FunctionPointer(Marshal.GetFunctionPointerForDelegate(s_Delegate)); 18 | } 19 | 20 | public static ref FunctionPointer Ptr() 21 | { 22 | CheckIsCreated(); 23 | return ref s_SharedStaticFuncPtr.Data; 24 | } 25 | 26 | [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS"), Conditional("UNITY_DOTS_DEBUG")] // ENABLE_UNITY_COLLECTIONS_CHECKS or UNITY_DOTS_DEBUG 27 | private static void CheckIsCreated() 28 | { 29 | if (IsCreated == false) 30 | throw new InvalidOperationException("Burst2ManagedCall was NOT created!"); 31 | } 32 | 33 | [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS"), Conditional("UNITY_DOTS_DEBUG")] // ENABLE_UNITY_COLLECTIONS_CHECKS or UNITY_DOTS_DEBUG 34 | private static void CheckIsNotCreated() 35 | { 36 | if (IsCreated) 37 | throw new InvalidOperationException("Burst2ManagedCall was already created!"); 38 | } 39 | } -------------------------------------------------------------------------------- /Assets/BurstSleep/Burst2ManagedCall.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7827bbaaf9046799f691d0addcefbef 3 | timeCreated: 1687021984 -------------------------------------------------------------------------------- /Assets/BurstSleep/BurstSleep.cs: -------------------------------------------------------------------------------- 1 | #define CAN_USE_UNMANAGED_DELEGATES 2 | 3 | using System.Runtime.InteropServices; 4 | using System.Threading; 5 | using Unity.Burst; 6 | using UnityEngine; 7 | 8 | [BurstCompile] 9 | public static class BurstSleep 10 | { 11 | // Call somewhere in managed C#. Don't call from static constructor - Burst can call it if you never touched the class from managed before! 12 | [BurstDiscard] 13 | public static void InitializeFromManaged() 14 | { 15 | if (Burst2ManagedCall.IsCreated == false) 16 | Burst2ManagedCall.Init(SleepManaged); 17 | } 18 | 19 | public static void Sleep(int milliseconds) 20 | { 21 | var ptr = Burst2ManagedCall.Ptr(); 22 | #if CAN_USE_UNMANAGED_DELEGATES 23 | // this is better variant - not going to alloc if burst is disabled 24 | unsafe 25 | { 26 | ((delegate * unmanaged[Cdecl] )ptr.Value)(milliseconds); 27 | } 28 | #else 29 | ptr.Invoke(milliseconds); 30 | #endif 31 | } 32 | 33 | private struct SleepManagedDelegateKey{} 34 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] 35 | private delegate void SleepManagedDelegate(int milliseconds); 36 | 37 | [AOT.MonoPInvokeCallback(typeof(SleepManagedDelegate))] 38 | private static void SleepManaged(int milliseconds) 39 | { 40 | // C# managed land 41 | Debug.Log($"Sleep({milliseconds}) is called from the managed!"); 42 | 43 | Thread.Sleep(milliseconds); 44 | } 45 | } -------------------------------------------------------------------------------- /Assets/BurstSleep/BurstSleep.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54358ee91d384a47b4daac6273a85f4e 3 | timeCreated: 1687021600 -------------------------------------------------------------------------------- /Assets/BurstSleep/BurstSleepDemo.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BurstSleepDemo", 3 | "rootNamespace": "", 4 | "references": [ 5 | "Unity.Burst" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": true, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /Assets/BurstSleep/BurstSleepDemo.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d658b3595acd45f993cd54b267b6dd8a 3 | timeCreated: 1687022268 -------------------------------------------------------------------------------- /Assets/BurstSleep/BurstUtils.cs: -------------------------------------------------------------------------------- 1 | using Unity.Burst; 2 | 3 | public static class BurstUtils 4 | { 5 | public static bool IsCalledFromBurst 6 | { 7 | get 8 | { 9 | [BurstDiscard] 10 | // ReSharper disable once RedundantAssignment 11 | static void ChangeToZeroInManaged(ref byte isBurst) { isBurst = 0; } 12 | 13 | byte isBurst = 1; 14 | ChangeToZeroInManaged(ref isBurst); 15 | return isBurst != 0; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/BurstSleep/BurstUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fe222695d0b47e5bb4302ea0e6a5b2d 3 | timeCreated: 1687021968 -------------------------------------------------------------------------------- /Assets/BurstSleep/EntryPointMonoBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using Unity.Burst; 3 | using Unity.Jobs; 4 | using UnityEngine; 5 | 6 | [BurstCompile] 7 | public class EntryPointMonoBehaviour : MonoBehaviour 8 | { 9 | private JobHandle m_SleepJobHandle; 10 | 11 | [BurstCompile] 12 | static void RunBurstDirectCall(int millisecondsSleep) 13 | { 14 | if (BurstUtils.IsCalledFromBurst) 15 | { 16 | Debug.Log("[RunBurstDirectCall] Called from burst"); 17 | } 18 | else 19 | { 20 | #if UNITY_EDITOR 21 | Debug.LogWarning("[RunBurstDirectCall] Called from managed, but expected to be from burst. Did you disable Burst compilation in Jobs->Burst menu or forgot [BurstCompile] on the class and the method?"); 22 | #else 23 | Debug.LogWarning("[RunBurstDirectCall] Called from managed, but expected to be from burst"); 24 | #endif 25 | } 26 | 27 | Debug.Log("[RunBurstDirectCall] Before sleep"); 28 | 29 | BurstSleep.Sleep(millisecondsSleep); 30 | 31 | Debug.Log("[RunBurstDirectCall] After sleep"); 32 | } 33 | 34 | static JobHandle ScheduleBurstJob(int millisecondsSleep, JobHandle dependency = default) 35 | { 36 | var demoSleepJob = new DemoSleepJob 37 | { 38 | MillisecondsSleep = millisecondsSleep 39 | }; 40 | return demoSleepJob.Schedule(dependency); 41 | } 42 | 43 | void Start() 44 | { 45 | BurstSleep.InitializeFromManaged(); 46 | 47 | Debug.Log("Main thread is going to sleep in Burst"); 48 | RunBurstDirectCall(50); 49 | Debug.Log("Main thread woke up, sorry for the lag!"); 50 | } 51 | 52 | private void OnEnable() 53 | { 54 | BurstSleep.InitializeFromManaged(); 55 | m_SleepJobHandle = ScheduleBurstJob(10000); 56 | } 57 | 58 | void Update() 59 | { 60 | if (m_SleepJobHandle.IsCompleted == false) 61 | { 62 | Debug.Log("Tshh! Burst job is sleeping!"); 63 | } 64 | else 65 | { 66 | Debug.Log("That's how it is done!"); 67 | enabled = false; 68 | } 69 | } 70 | } 71 | 72 | [BurstCompile] 73 | internal struct DemoSleepJob : IJob 74 | { 75 | public int MillisecondsSleep; 76 | 77 | public void Execute() 78 | { 79 | if (BurstUtils.IsCalledFromBurst) 80 | { 81 | Debug.Log("[Job] Called from burst"); 82 | } 83 | else 84 | { 85 | #if UNITY_EDITOR 86 | Debug.LogWarning("[Job] Called from managed, but expected to be from burst. Did you disable Burst compilation in Jobs->Burst menu or forgot [BurstCompile] on the class and the method?"); 87 | #else 88 | Debug.LogWarning("[Job] Called from managed, but expected to be from burst"); 89 | #endif 90 | } 91 | 92 | Debug.Log("[Job] Before sleep"); 93 | 94 | BurstSleep.Sleep(MillisecondsSleep); 95 | 96 | Debug.Log("[Job] After sleep"); 97 | } 98 | } -------------------------------------------------------------------------------- /Assets/BurstSleep/EntryPointMonoBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6750eef426939be46af6d116042873ed 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 979be62a46cc1704db844c5f588253a1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 3 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | buildHeightMesh: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &705507993 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 705507995} 135 | - component: {fileID: 705507994} 136 | m_Layer: 0 137 | m_Name: Directional Light 138 | m_TagString: Untagged 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!108 &705507994 144 | Light: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 705507993} 150 | m_Enabled: 1 151 | serializedVersion: 10 152 | m_Type: 1 153 | m_Shape: 0 154 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 155 | m_Intensity: 1 156 | m_Range: 10 157 | m_SpotAngle: 30 158 | m_InnerSpotAngle: 21.80208 159 | m_CookieSize: 10 160 | m_Shadows: 161 | m_Type: 2 162 | m_Resolution: -1 163 | m_CustomResolution: -1 164 | m_Strength: 1 165 | m_Bias: 0.05 166 | m_NormalBias: 0.4 167 | m_NearPlane: 0.2 168 | m_CullingMatrixOverride: 169 | e00: 1 170 | e01: 0 171 | e02: 0 172 | e03: 0 173 | e10: 0 174 | e11: 1 175 | e12: 0 176 | e13: 0 177 | e20: 0 178 | e21: 0 179 | e22: 1 180 | e23: 0 181 | e30: 0 182 | e31: 0 183 | e32: 0 184 | e33: 1 185 | m_UseCullingMatrixOverride: 0 186 | m_Cookie: {fileID: 0} 187 | m_DrawHalo: 0 188 | m_Flare: {fileID: 0} 189 | m_RenderMode: 0 190 | m_CullingMask: 191 | serializedVersion: 2 192 | m_Bits: 4294967295 193 | m_RenderingLayerMask: 1 194 | m_Lightmapping: 1 195 | m_LightShadowCasterMode: 0 196 | m_AreaSize: {x: 1, y: 1} 197 | m_BounceIntensity: 1 198 | m_ColorTemperature: 6570 199 | m_UseColorTemperature: 0 200 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 201 | m_UseBoundingSphereOverride: 0 202 | m_UseViewFrustumForShadowCasterCull: 1 203 | m_ShadowRadius: 0 204 | m_ShadowAngle: 0 205 | --- !u!4 &705507995 206 | Transform: 207 | m_ObjectHideFlags: 0 208 | m_CorrespondingSourceObject: {fileID: 0} 209 | m_PrefabInstance: {fileID: 0} 210 | m_PrefabAsset: {fileID: 0} 211 | m_GameObject: {fileID: 705507993} 212 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 213 | m_LocalPosition: {x: 0, y: 3, z: 0} 214 | m_LocalScale: {x: 1, y: 1, z: 1} 215 | m_ConstrainProportionsScale: 0 216 | m_Children: [] 217 | m_Father: {fileID: 0} 218 | m_RootOrder: 1 219 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 220 | --- !u!1 &920498102 221 | GameObject: 222 | m_ObjectHideFlags: 0 223 | m_CorrespondingSourceObject: {fileID: 0} 224 | m_PrefabInstance: {fileID: 0} 225 | m_PrefabAsset: {fileID: 0} 226 | serializedVersion: 6 227 | m_Component: 228 | - component: {fileID: 920498104} 229 | - component: {fileID: 920498103} 230 | m_Layer: 0 231 | m_Name: '@Entry' 232 | m_TagString: Untagged 233 | m_Icon: {fileID: 0} 234 | m_NavMeshLayer: 0 235 | m_StaticEditorFlags: 0 236 | m_IsActive: 1 237 | --- !u!114 &920498103 238 | MonoBehaviour: 239 | m_ObjectHideFlags: 0 240 | m_CorrespondingSourceObject: {fileID: 0} 241 | m_PrefabInstance: {fileID: 0} 242 | m_PrefabAsset: {fileID: 0} 243 | m_GameObject: {fileID: 920498102} 244 | m_Enabled: 1 245 | m_EditorHideFlags: 0 246 | m_Script: {fileID: 11500000, guid: 6750eef426939be46af6d116042873ed, type: 3} 247 | m_Name: 248 | m_EditorClassIdentifier: 249 | --- !u!4 &920498104 250 | Transform: 251 | m_ObjectHideFlags: 0 252 | m_CorrespondingSourceObject: {fileID: 0} 253 | m_PrefabInstance: {fileID: 0} 254 | m_PrefabAsset: {fileID: 0} 255 | m_GameObject: {fileID: 920498102} 256 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 257 | m_LocalPosition: {x: 0, y: 0, z: 0} 258 | m_LocalScale: {x: 1, y: 1, z: 1} 259 | m_ConstrainProportionsScale: 0 260 | m_Children: [] 261 | m_Father: {fileID: 0} 262 | m_RootOrder: 2 263 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 264 | --- !u!1 &963194225 265 | GameObject: 266 | m_ObjectHideFlags: 0 267 | m_CorrespondingSourceObject: {fileID: 0} 268 | m_PrefabInstance: {fileID: 0} 269 | m_PrefabAsset: {fileID: 0} 270 | serializedVersion: 6 271 | m_Component: 272 | - component: {fileID: 963194228} 273 | - component: {fileID: 963194227} 274 | - component: {fileID: 963194226} 275 | m_Layer: 0 276 | m_Name: Main Camera 277 | m_TagString: MainCamera 278 | m_Icon: {fileID: 0} 279 | m_NavMeshLayer: 0 280 | m_StaticEditorFlags: 0 281 | m_IsActive: 1 282 | --- !u!81 &963194226 283 | AudioListener: 284 | m_ObjectHideFlags: 0 285 | m_CorrespondingSourceObject: {fileID: 0} 286 | m_PrefabInstance: {fileID: 0} 287 | m_PrefabAsset: {fileID: 0} 288 | m_GameObject: {fileID: 963194225} 289 | m_Enabled: 1 290 | --- !u!20 &963194227 291 | Camera: 292 | m_ObjectHideFlags: 0 293 | m_CorrespondingSourceObject: {fileID: 0} 294 | m_PrefabInstance: {fileID: 0} 295 | m_PrefabAsset: {fileID: 0} 296 | m_GameObject: {fileID: 963194225} 297 | m_Enabled: 1 298 | serializedVersion: 2 299 | m_ClearFlags: 1 300 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 301 | m_projectionMatrixMode: 1 302 | m_GateFitMode: 2 303 | m_FOVAxisMode: 0 304 | m_Iso: 200 305 | m_ShutterSpeed: 0.005 306 | m_Aperture: 16 307 | m_FocusDistance: 10 308 | m_FocalLength: 50 309 | m_BladeCount: 5 310 | m_Curvature: {x: 2, y: 11} 311 | m_BarrelClipping: 0.25 312 | m_Anamorphism: 0 313 | m_SensorSize: {x: 36, y: 24} 314 | m_LensShift: {x: 0, y: 0} 315 | m_NormalizedViewPortRect: 316 | serializedVersion: 2 317 | x: 0 318 | y: 0 319 | width: 1 320 | height: 1 321 | near clip plane: 0.3 322 | far clip plane: 1000 323 | field of view: 60 324 | orthographic: 0 325 | orthographic size: 5 326 | m_Depth: -1 327 | m_CullingMask: 328 | serializedVersion: 2 329 | m_Bits: 4294967295 330 | m_RenderingPath: -1 331 | m_TargetTexture: {fileID: 0} 332 | m_TargetDisplay: 0 333 | m_TargetEye: 3 334 | m_HDR: 1 335 | m_AllowMSAA: 1 336 | m_AllowDynamicResolution: 0 337 | m_ForceIntoRT: 0 338 | m_OcclusionCulling: 1 339 | m_StereoConvergence: 10 340 | m_StereoSeparation: 0.022 341 | --- !u!4 &963194228 342 | Transform: 343 | m_ObjectHideFlags: 0 344 | m_CorrespondingSourceObject: {fileID: 0} 345 | m_PrefabInstance: {fileID: 0} 346 | m_PrefabAsset: {fileID: 0} 347 | m_GameObject: {fileID: 963194225} 348 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 349 | m_LocalPosition: {x: 0, y: 1, z: -10} 350 | m_LocalScale: {x: 1, y: 1, z: 1} 351 | m_ConstrainProportionsScale: 0 352 | m_Children: [] 353 | m_Father: {fileID: 0} 354 | m_RootOrder: 0 355 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 356 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /DocPrintScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jura-Z/Burst2ManagedCall/73c4ce92094049c6b85a488853c969c5c21eecdb/DocPrintScreen.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Iurii Zakipnyi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.burst": "1.8.7", 4 | "com.unity.collab-proxy": "2.0.4", 5 | "com.unity.feature.development": "1.0.1", 6 | "com.unity.textmeshpro": "3.0.6", 7 | "com.unity.timeline": "1.7.4", 8 | "com.unity.ugui": "1.0.0", 9 | "com.unity.visualscripting": "1.8.0", 10 | "com.unity.modules.ai": "1.0.0", 11 | "com.unity.modules.androidjni": "1.0.0", 12 | "com.unity.modules.animation": "1.0.0", 13 | "com.unity.modules.assetbundle": "1.0.0", 14 | "com.unity.modules.audio": "1.0.0", 15 | "com.unity.modules.cloth": "1.0.0", 16 | "com.unity.modules.director": "1.0.0", 17 | "com.unity.modules.imageconversion": "1.0.0", 18 | "com.unity.modules.imgui": "1.0.0", 19 | "com.unity.modules.jsonserialize": "1.0.0", 20 | "com.unity.modules.particlesystem": "1.0.0", 21 | "com.unity.modules.physics": "1.0.0", 22 | "com.unity.modules.physics2d": "1.0.0", 23 | "com.unity.modules.screencapture": "1.0.0", 24 | "com.unity.modules.terrain": "1.0.0", 25 | "com.unity.modules.terrainphysics": "1.0.0", 26 | "com.unity.modules.tilemap": "1.0.0", 27 | "com.unity.modules.ui": "1.0.0", 28 | "com.unity.modules.uielements": "1.0.0", 29 | "com.unity.modules.umbra": "1.0.0", 30 | "com.unity.modules.unityanalytics": "1.0.0", 31 | "com.unity.modules.unitywebrequest": "1.0.0", 32 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 33 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 34 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 35 | "com.unity.modules.unitywebrequestwww": "1.0.0", 36 | "com.unity.modules.vehicles": "1.0.0", 37 | "com.unity.modules.video": "1.0.0", 38 | "com.unity.modules.vr": "1.0.0", 39 | "com.unity.modules.wind": "1.0.0", 40 | "com.unity.modules.xr": "1.0.0" 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.burst": { 4 | "version": "1.8.7", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.mathematics": "1.2.1" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.collab-proxy": { 13 | "version": "2.0.4", 14 | "depth": 0, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.editorcoroutines": { 20 | "version": "1.0.0", 21 | "depth": 1, 22 | "source": "registry", 23 | "dependencies": {}, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ext.nunit": { 27 | "version": "1.0.6", 28 | "depth": 2, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.feature.development": { 34 | "version": "1.0.1", 35 | "depth": 0, 36 | "source": "builtin", 37 | "dependencies": { 38 | "com.unity.ide.visualstudio": "2.0.18", 39 | "com.unity.ide.rider": "3.0.21", 40 | "com.unity.ide.vscode": "1.2.5", 41 | "com.unity.editorcoroutines": "1.0.0", 42 | "com.unity.performance.profile-analyzer": "1.2.2", 43 | "com.unity.test-framework": "1.1.33", 44 | "com.unity.testtools.codecoverage": "1.2.3" 45 | } 46 | }, 47 | "com.unity.ide.rider": { 48 | "version": "3.0.21", 49 | "depth": 1, 50 | "source": "registry", 51 | "dependencies": { 52 | "com.unity.ext.nunit": "1.0.6" 53 | }, 54 | "url": "https://packages.unity.com" 55 | }, 56 | "com.unity.ide.visualstudio": { 57 | "version": "2.0.18", 58 | "depth": 1, 59 | "source": "registry", 60 | "dependencies": { 61 | "com.unity.test-framework": "1.1.9" 62 | }, 63 | "url": "https://packages.unity.com" 64 | }, 65 | "com.unity.ide.vscode": { 66 | "version": "1.2.5", 67 | "depth": 1, 68 | "source": "registry", 69 | "dependencies": {}, 70 | "url": "https://packages.unity.com" 71 | }, 72 | "com.unity.mathematics": { 73 | "version": "1.2.6", 74 | "depth": 1, 75 | "source": "registry", 76 | "dependencies": {}, 77 | "url": "https://packages.unity.com" 78 | }, 79 | "com.unity.performance.profile-analyzer": { 80 | "version": "1.2.2", 81 | "depth": 1, 82 | "source": "registry", 83 | "dependencies": {}, 84 | "url": "https://packages.unity.com" 85 | }, 86 | "com.unity.settings-manager": { 87 | "version": "2.0.1", 88 | "depth": 2, 89 | "source": "registry", 90 | "dependencies": {}, 91 | "url": "https://packages.unity.com" 92 | }, 93 | "com.unity.test-framework": { 94 | "version": "1.1.33", 95 | "depth": 1, 96 | "source": "registry", 97 | "dependencies": { 98 | "com.unity.ext.nunit": "1.0.6", 99 | "com.unity.modules.imgui": "1.0.0", 100 | "com.unity.modules.jsonserialize": "1.0.0" 101 | }, 102 | "url": "https://packages.unity.com" 103 | }, 104 | "com.unity.testtools.codecoverage": { 105 | "version": "1.2.3", 106 | "depth": 1, 107 | "source": "registry", 108 | "dependencies": { 109 | "com.unity.test-framework": "1.0.16", 110 | "com.unity.settings-manager": "1.0.1" 111 | }, 112 | "url": "https://packages.unity.com" 113 | }, 114 | "com.unity.textmeshpro": { 115 | "version": "3.0.6", 116 | "depth": 0, 117 | "source": "registry", 118 | "dependencies": { 119 | "com.unity.ugui": "1.0.0" 120 | }, 121 | "url": "https://packages.unity.com" 122 | }, 123 | "com.unity.timeline": { 124 | "version": "1.7.4", 125 | "depth": 0, 126 | "source": "registry", 127 | "dependencies": { 128 | "com.unity.modules.director": "1.0.0", 129 | "com.unity.modules.animation": "1.0.0", 130 | "com.unity.modules.audio": "1.0.0", 131 | "com.unity.modules.particlesystem": "1.0.0" 132 | }, 133 | "url": "https://packages.unity.com" 134 | }, 135 | "com.unity.ugui": { 136 | "version": "1.0.0", 137 | "depth": 0, 138 | "source": "builtin", 139 | "dependencies": { 140 | "com.unity.modules.ui": "1.0.0", 141 | "com.unity.modules.imgui": "1.0.0" 142 | } 143 | }, 144 | "com.unity.visualscripting": { 145 | "version": "1.8.0", 146 | "depth": 0, 147 | "source": "registry", 148 | "dependencies": { 149 | "com.unity.ugui": "1.0.0", 150 | "com.unity.modules.jsonserialize": "1.0.0" 151 | }, 152 | "url": "https://packages.unity.com" 153 | }, 154 | "com.unity.modules.ai": { 155 | "version": "1.0.0", 156 | "depth": 0, 157 | "source": "builtin", 158 | "dependencies": {} 159 | }, 160 | "com.unity.modules.androidjni": { 161 | "version": "1.0.0", 162 | "depth": 0, 163 | "source": "builtin", 164 | "dependencies": {} 165 | }, 166 | "com.unity.modules.animation": { 167 | "version": "1.0.0", 168 | "depth": 0, 169 | "source": "builtin", 170 | "dependencies": {} 171 | }, 172 | "com.unity.modules.assetbundle": { 173 | "version": "1.0.0", 174 | "depth": 0, 175 | "source": "builtin", 176 | "dependencies": {} 177 | }, 178 | "com.unity.modules.audio": { 179 | "version": "1.0.0", 180 | "depth": 0, 181 | "source": "builtin", 182 | "dependencies": {} 183 | }, 184 | "com.unity.modules.cloth": { 185 | "version": "1.0.0", 186 | "depth": 0, 187 | "source": "builtin", 188 | "dependencies": { 189 | "com.unity.modules.physics": "1.0.0" 190 | } 191 | }, 192 | "com.unity.modules.director": { 193 | "version": "1.0.0", 194 | "depth": 0, 195 | "source": "builtin", 196 | "dependencies": { 197 | "com.unity.modules.audio": "1.0.0", 198 | "com.unity.modules.animation": "1.0.0" 199 | } 200 | }, 201 | "com.unity.modules.imageconversion": { 202 | "version": "1.0.0", 203 | "depth": 0, 204 | "source": "builtin", 205 | "dependencies": {} 206 | }, 207 | "com.unity.modules.imgui": { 208 | "version": "1.0.0", 209 | "depth": 0, 210 | "source": "builtin", 211 | "dependencies": {} 212 | }, 213 | "com.unity.modules.jsonserialize": { 214 | "version": "1.0.0", 215 | "depth": 0, 216 | "source": "builtin", 217 | "dependencies": {} 218 | }, 219 | "com.unity.modules.particlesystem": { 220 | "version": "1.0.0", 221 | "depth": 0, 222 | "source": "builtin", 223 | "dependencies": {} 224 | }, 225 | "com.unity.modules.physics": { 226 | "version": "1.0.0", 227 | "depth": 0, 228 | "source": "builtin", 229 | "dependencies": {} 230 | }, 231 | "com.unity.modules.physics2d": { 232 | "version": "1.0.0", 233 | "depth": 0, 234 | "source": "builtin", 235 | "dependencies": {} 236 | }, 237 | "com.unity.modules.screencapture": { 238 | "version": "1.0.0", 239 | "depth": 0, 240 | "source": "builtin", 241 | "dependencies": { 242 | "com.unity.modules.imageconversion": "1.0.0" 243 | } 244 | }, 245 | "com.unity.modules.subsystems": { 246 | "version": "1.0.0", 247 | "depth": 1, 248 | "source": "builtin", 249 | "dependencies": { 250 | "com.unity.modules.jsonserialize": "1.0.0" 251 | } 252 | }, 253 | "com.unity.modules.terrain": { 254 | "version": "1.0.0", 255 | "depth": 0, 256 | "source": "builtin", 257 | "dependencies": {} 258 | }, 259 | "com.unity.modules.terrainphysics": { 260 | "version": "1.0.0", 261 | "depth": 0, 262 | "source": "builtin", 263 | "dependencies": { 264 | "com.unity.modules.physics": "1.0.0", 265 | "com.unity.modules.terrain": "1.0.0" 266 | } 267 | }, 268 | "com.unity.modules.tilemap": { 269 | "version": "1.0.0", 270 | "depth": 0, 271 | "source": "builtin", 272 | "dependencies": { 273 | "com.unity.modules.physics2d": "1.0.0" 274 | } 275 | }, 276 | "com.unity.modules.ui": { 277 | "version": "1.0.0", 278 | "depth": 0, 279 | "source": "builtin", 280 | "dependencies": {} 281 | }, 282 | "com.unity.modules.uielements": { 283 | "version": "1.0.0", 284 | "depth": 0, 285 | "source": "builtin", 286 | "dependencies": { 287 | "com.unity.modules.ui": "1.0.0", 288 | "com.unity.modules.imgui": "1.0.0", 289 | "com.unity.modules.jsonserialize": "1.0.0" 290 | } 291 | }, 292 | "com.unity.modules.umbra": { 293 | "version": "1.0.0", 294 | "depth": 0, 295 | "source": "builtin", 296 | "dependencies": {} 297 | }, 298 | "com.unity.modules.unityanalytics": { 299 | "version": "1.0.0", 300 | "depth": 0, 301 | "source": "builtin", 302 | "dependencies": { 303 | "com.unity.modules.unitywebrequest": "1.0.0", 304 | "com.unity.modules.jsonserialize": "1.0.0" 305 | } 306 | }, 307 | "com.unity.modules.unitywebrequest": { 308 | "version": "1.0.0", 309 | "depth": 0, 310 | "source": "builtin", 311 | "dependencies": {} 312 | }, 313 | "com.unity.modules.unitywebrequestassetbundle": { 314 | "version": "1.0.0", 315 | "depth": 0, 316 | "source": "builtin", 317 | "dependencies": { 318 | "com.unity.modules.assetbundle": "1.0.0", 319 | "com.unity.modules.unitywebrequest": "1.0.0" 320 | } 321 | }, 322 | "com.unity.modules.unitywebrequestaudio": { 323 | "version": "1.0.0", 324 | "depth": 0, 325 | "source": "builtin", 326 | "dependencies": { 327 | "com.unity.modules.unitywebrequest": "1.0.0", 328 | "com.unity.modules.audio": "1.0.0" 329 | } 330 | }, 331 | "com.unity.modules.unitywebrequesttexture": { 332 | "version": "1.0.0", 333 | "depth": 0, 334 | "source": "builtin", 335 | "dependencies": { 336 | "com.unity.modules.unitywebrequest": "1.0.0", 337 | "com.unity.modules.imageconversion": "1.0.0" 338 | } 339 | }, 340 | "com.unity.modules.unitywebrequestwww": { 341 | "version": "1.0.0", 342 | "depth": 0, 343 | "source": "builtin", 344 | "dependencies": { 345 | "com.unity.modules.unitywebrequest": "1.0.0", 346 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 347 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 348 | "com.unity.modules.audio": "1.0.0", 349 | "com.unity.modules.assetbundle": "1.0.0", 350 | "com.unity.modules.imageconversion": "1.0.0" 351 | } 352 | }, 353 | "com.unity.modules.vehicles": { 354 | "version": "1.0.0", 355 | "depth": 0, 356 | "source": "builtin", 357 | "dependencies": { 358 | "com.unity.modules.physics": "1.0.0" 359 | } 360 | }, 361 | "com.unity.modules.video": { 362 | "version": "1.0.0", 363 | "depth": 0, 364 | "source": "builtin", 365 | "dependencies": { 366 | "com.unity.modules.audio": "1.0.0", 367 | "com.unity.modules.ui": "1.0.0", 368 | "com.unity.modules.unitywebrequest": "1.0.0" 369 | } 370 | }, 371 | "com.unity.modules.vr": { 372 | "version": "1.0.0", 373 | "depth": 0, 374 | "source": "builtin", 375 | "dependencies": { 376 | "com.unity.modules.jsonserialize": "1.0.0", 377 | "com.unity.modules.physics": "1.0.0", 378 | "com.unity.modules.xr": "1.0.0" 379 | } 380 | }, 381 | "com.unity.modules.wind": { 382 | "version": "1.0.0", 383 | "depth": 0, 384 | "source": "builtin", 385 | "dependencies": {} 386 | }, 387 | "com.unity.modules.xr": { 388 | "version": "1.0.0", 389 | "depth": 0, 390 | "source": "builtin", 391 | "dependencies": { 392 | "com.unity.modules.physics": "1.0.0", 393 | "com.unity.modules.jsonserialize": "1.0.0", 394 | "com.unity.modules.subsystems": "1.0.0" 395 | } 396 | } 397 | } 398 | } 399 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/BurstAotSettings_StandaloneWindows.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 4, 4 | "EnableBurstCompilation": true, 5 | "EnableOptimisations": true, 6 | "EnableSafetyChecks": false, 7 | "EnableDebugInAllBuilds": false, 8 | "DebugDataKind": 1, 9 | "EnableArmv9SecurityFeatures": false, 10 | "CpuMinTargetX32": 0, 11 | "CpuMaxTargetX32": 0, 12 | "CpuMinTargetX64": 0, 13 | "CpuMaxTargetX64": 0, 14 | "CpuTargetsX32": 6, 15 | "CpuTargetsX64": 72, 16 | "OptimizeFor": 0 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /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/CommonBurstAotSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 4, 4 | "DisabledWarnings": "" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_EnablePreReleasePackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 0 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_UserSelectedRegistryName: 29 | m_UserAddingNewScopedRegistry: 0 30 | m_RegistryInfoDraft: 31 | m_Modified: 0 32 | m_ErrorMessage: 33 | m_UserModificationsInstanceId: -830 34 | m_OriginalInstanceId: -832 35 | m_LoadAssets: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "m_Dictionary": { 3 | "m_DictionaryValues": [] 4 | } 5 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 26 7 | productGUID: e33e37bc21546ab49979c6b609aad490 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: BurstSleep 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: 1920 46 | defaultScreenHeight: 1080 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_SpriteBatchVertexThreshold: 300 52 | m_MTRendering: 1 53 | mipStripping: 0 54 | numberOfMipsStripped: 0 55 | numberOfMipsStrippedPerMipmapLimitGroup: {} 56 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 57 | iosShowActivityIndicatorOnLoading: -1 58 | androidShowActivityIndicatorOnLoading: -1 59 | iosUseCustomAppBackgroundBehavior: 0 60 | allowedAutorotateToPortrait: 1 61 | allowedAutorotateToPortraitUpsideDown: 1 62 | allowedAutorotateToLandscapeRight: 1 63 | allowedAutorotateToLandscapeLeft: 1 64 | useOSAutorotation: 1 65 | use32BitDisplayBuffer: 1 66 | preserveFramebufferAlpha: 0 67 | disableDepthAndStencilBuffers: 0 68 | androidStartInFullscreen: 1 69 | androidRenderOutsideSafeArea: 1 70 | androidUseSwappy: 1 71 | androidBlitType: 0 72 | androidResizableWindow: 0 73 | androidDefaultWindowWidth: 1920 74 | androidDefaultWindowHeight: 1080 75 | androidMinimumWindowWidth: 400 76 | androidMinimumWindowHeight: 300 77 | androidFullscreenMode: 1 78 | defaultIsNativeResolution: 1 79 | macRetinaSupport: 1 80 | runInBackground: 1 81 | captureSingleScreen: 0 82 | muteOtherAudioSources: 0 83 | Prepare IOS For Recording: 0 84 | Force IOS Speakers When Recording: 0 85 | deferSystemGesturesMode: 0 86 | hideHomeButton: 0 87 | submitAnalytics: 1 88 | usePlayerLog: 1 89 | bakeCollisionMeshes: 0 90 | forceSingleInstance: 0 91 | useFlipModelSwapchain: 1 92 | resizableWindow: 0 93 | useMacAppStoreValidation: 0 94 | macAppStoreCategory: public.app-category.games 95 | gpuSkinning: 1 96 | xboxPIXTextureCapture: 0 97 | xboxEnableAvatar: 0 98 | xboxEnableKinect: 0 99 | xboxEnableKinectAutoTracking: 0 100 | xboxEnableFitness: 0 101 | visibleInBackground: 1 102 | allowFullscreenSwitch: 1 103 | fullscreenMode: 1 104 | xboxSpeechDB: 0 105 | xboxEnableHeadOrientation: 0 106 | xboxEnableGuest: 0 107 | xboxEnablePIXSampling: 0 108 | metalFramebufferOnly: 0 109 | xboxOneResolution: 0 110 | xboxOneSResolution: 0 111 | xboxOneXResolution: 3 112 | xboxOneMonoLoggingLevel: 0 113 | xboxOneLoggingLevel: 1 114 | xboxOneDisableEsram: 0 115 | xboxOneEnableTypeOptimization: 0 116 | xboxOnePresentImmediateThreshold: 0 117 | switchQueueCommandMemory: 0 118 | switchQueueControlMemory: 16384 119 | switchQueueComputeMemory: 262144 120 | switchNVNShaderPoolsGranularity: 33554432 121 | switchNVNDefaultPoolsGranularity: 16777216 122 | switchNVNOtherPoolsGranularity: 16777216 123 | switchGpuScratchPoolGranularity: 2097152 124 | switchAllowGpuScratchShrinking: 0 125 | switchNVNMaxPublicTextureIDCount: 0 126 | switchNVNMaxPublicSamplerIDCount: 0 127 | switchNVNGraphicsFirmwareMemory: 32 128 | stadiaPresentMode: 0 129 | stadiaTargetFramerate: 0 130 | vulkanNumSwapchainBuffers: 3 131 | vulkanEnableSetSRGBWrite: 0 132 | vulkanEnablePreTransform: 1 133 | vulkanEnableLateAcquireNextImage: 0 134 | vulkanEnableCommandBufferRecycling: 1 135 | loadStoreDebugModeEnabled: 0 136 | bundleVersion: 0.1 137 | preloadedAssets: [] 138 | metroInputSource: 0 139 | wsaTransparentSwapchain: 0 140 | m_HolographicPauseOnTrackingLoss: 1 141 | xboxOneDisableKinectGpuReservation: 1 142 | xboxOneEnable7thCore: 1 143 | vrSettings: 144 | enable360StereoCapture: 0 145 | isWsaHolographicRemotingEnabled: 0 146 | enableFrameTimingStats: 0 147 | enableOpenGLProfilerGPURecorders: 1 148 | useHDRDisplay: 0 149 | hdrBitDepth: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | resetResolutionOnWindowResize: 0 154 | androidSupportedAspectRatio: 1 155 | androidMaxAspectRatio: 2.1 156 | applicationIdentifier: {} 157 | buildNumber: 158 | Standalone: 0 159 | iPhone: 0 160 | tvOS: 0 161 | overrideDefaultApplicationIdentifier: 0 162 | AndroidBundleVersionCode: 1 163 | AndroidMinSdkVersion: 22 164 | AndroidTargetSdkVersion: 0 165 | AndroidPreferredInstallLocation: 1 166 | aotOptions: 167 | stripEngineCode: 1 168 | iPhoneStrippingLevel: 0 169 | iPhoneScriptCallOptimization: 0 170 | ForceInternetPermission: 0 171 | ForceSDCardPermission: 0 172 | CreateWallpaper: 0 173 | APKExpansionFiles: 0 174 | keepLoadedShadersAlive: 0 175 | StripUnusedMeshComponents: 1 176 | strictShaderVariantMatching: 0 177 | VertexChannelCompressionMask: 4054 178 | iPhoneSdkVersion: 988 179 | iOSTargetOSVersionString: 12.0 180 | tvOSSdkVersion: 0 181 | tvOSRequireExtendedGameController: 0 182 | tvOSTargetOSVersionString: 12.0 183 | uIPrerenderedIcon: 0 184 | uIRequiresPersistentWiFi: 0 185 | uIRequiresFullScreen: 1 186 | uIStatusBarHidden: 1 187 | uIExitOnSuspend: 0 188 | uIStatusBarStyle: 0 189 | appleTVSplashScreen: {fileID: 0} 190 | appleTVSplashScreen2x: {fileID: 0} 191 | tvOSSmallIconLayers: [] 192 | tvOSSmallIconLayers2x: [] 193 | tvOSLargeIconLayers: [] 194 | tvOSLargeIconLayers2x: [] 195 | tvOSTopShelfImageLayers: [] 196 | tvOSTopShelfImageLayers2x: [] 197 | tvOSTopShelfImageWideLayers: [] 198 | tvOSTopShelfImageWideLayers2x: [] 199 | iOSLaunchScreenType: 0 200 | iOSLaunchScreenPortrait: {fileID: 0} 201 | iOSLaunchScreenLandscape: {fileID: 0} 202 | iOSLaunchScreenBackgroundColor: 203 | serializedVersion: 2 204 | rgba: 0 205 | iOSLaunchScreenFillPct: 100 206 | iOSLaunchScreenSize: 100 207 | iOSLaunchScreenCustomXibPath: 208 | iOSLaunchScreeniPadType: 0 209 | iOSLaunchScreeniPadImage: {fileID: 0} 210 | iOSLaunchScreeniPadBackgroundColor: 211 | serializedVersion: 2 212 | rgba: 0 213 | iOSLaunchScreeniPadFillPct: 100 214 | iOSLaunchScreeniPadSize: 100 215 | iOSLaunchScreeniPadCustomXibPath: 216 | iOSLaunchScreenCustomStoryboardPath: 217 | iOSLaunchScreeniPadCustomStoryboardPath: 218 | iOSDeviceRequirements: [] 219 | iOSURLSchemes: [] 220 | macOSURLSchemes: [] 221 | iOSBackgroundModes: 0 222 | iOSMetalForceHardShadows: 0 223 | metalEditorSupport: 1 224 | metalAPIValidation: 1 225 | iOSRenderExtraFrameOnPause: 0 226 | iosCopyPluginsCodeInsteadOfSymlink: 0 227 | appleDeveloperTeamID: 228 | iOSManualSigningProvisioningProfileID: 229 | tvOSManualSigningProvisioningProfileID: 230 | iOSManualSigningProvisioningProfileType: 0 231 | tvOSManualSigningProvisioningProfileType: 0 232 | appleEnableAutomaticSigning: 0 233 | iOSRequireARKit: 0 234 | iOSAutomaticallyDetectAndAddCapabilities: 1 235 | appleEnableProMotion: 0 236 | shaderPrecisionModel: 0 237 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 238 | templatePackageId: com.unity.template.3d@8.1.1 239 | templateDefaultScene: Assets/Scenes/SampleScene.unity 240 | useCustomMainManifest: 0 241 | useCustomLauncherManifest: 0 242 | useCustomMainGradleTemplate: 0 243 | useCustomLauncherGradleManifest: 0 244 | useCustomBaseGradleTemplate: 0 245 | useCustomGradlePropertiesTemplate: 0 246 | useCustomGradleSettingsTemplate: 0 247 | useCustomProguardFile: 0 248 | AndroidTargetArchitectures: 1 249 | AndroidTargetDevices: 0 250 | AndroidSplashScreenScale: 0 251 | androidSplashScreen: {fileID: 0} 252 | AndroidKeystoreName: 253 | AndroidKeyaliasName: 254 | AndroidEnableArmv9SecurityFeatures: 0 255 | AndroidBuildApkPerCpuArchitecture: 0 256 | AndroidTVCompatibility: 0 257 | AndroidIsGame: 1 258 | AndroidEnableTango: 0 259 | androidEnableBanner: 1 260 | androidUseLowAccuracyLocation: 0 261 | androidUseCustomKeystore: 0 262 | m_AndroidBanners: 263 | - width: 320 264 | height: 180 265 | banner: {fileID: 0} 266 | androidGamepadSupportLevel: 0 267 | chromeosInputEmulation: 1 268 | AndroidMinifyRelease: 0 269 | AndroidMinifyDebug: 0 270 | AndroidValidateAppBundleSize: 1 271 | AndroidAppBundleSizeToValidate: 150 272 | m_BuildTargetIcons: [] 273 | m_BuildTargetPlatformIcons: [] 274 | m_BuildTargetBatching: 275 | - m_BuildTarget: Standalone 276 | m_StaticBatching: 1 277 | m_DynamicBatching: 0 278 | - m_BuildTarget: tvOS 279 | m_StaticBatching: 1 280 | m_DynamicBatching: 0 281 | - m_BuildTarget: Android 282 | m_StaticBatching: 1 283 | m_DynamicBatching: 0 284 | - m_BuildTarget: iPhone 285 | m_StaticBatching: 1 286 | m_DynamicBatching: 0 287 | - m_BuildTarget: WebGL 288 | m_StaticBatching: 0 289 | m_DynamicBatching: 0 290 | m_BuildTargetShaderSettings: [] 291 | m_BuildTargetGraphicsJobs: 292 | - m_BuildTarget: MacStandaloneSupport 293 | m_GraphicsJobs: 0 294 | - m_BuildTarget: Switch 295 | m_GraphicsJobs: 1 296 | - m_BuildTarget: MetroSupport 297 | m_GraphicsJobs: 1 298 | - m_BuildTarget: AppleTVSupport 299 | m_GraphicsJobs: 0 300 | - m_BuildTarget: BJMSupport 301 | m_GraphicsJobs: 1 302 | - m_BuildTarget: LinuxStandaloneSupport 303 | m_GraphicsJobs: 1 304 | - m_BuildTarget: PS4Player 305 | m_GraphicsJobs: 1 306 | - m_BuildTarget: iOSSupport 307 | m_GraphicsJobs: 0 308 | - m_BuildTarget: WindowsStandaloneSupport 309 | m_GraphicsJobs: 1 310 | - m_BuildTarget: XboxOnePlayer 311 | m_GraphicsJobs: 1 312 | - m_BuildTarget: LuminSupport 313 | m_GraphicsJobs: 0 314 | - m_BuildTarget: AndroidPlayer 315 | m_GraphicsJobs: 0 316 | - m_BuildTarget: WebGLSupport 317 | m_GraphicsJobs: 0 318 | m_BuildTargetGraphicsJobMode: 319 | - m_BuildTarget: PS4Player 320 | m_GraphicsJobMode: 0 321 | - m_BuildTarget: XboxOnePlayer 322 | m_GraphicsJobMode: 0 323 | m_BuildTargetGraphicsAPIs: 324 | - m_BuildTarget: AndroidPlayer 325 | m_APIs: 150000000b000000 326 | m_Automatic: 1 327 | - m_BuildTarget: iOSSupport 328 | m_APIs: 10000000 329 | m_Automatic: 1 330 | - m_BuildTarget: AppleTVSupport 331 | m_APIs: 10000000 332 | m_Automatic: 1 333 | - m_BuildTarget: WebGLSupport 334 | m_APIs: 0b000000 335 | m_Automatic: 1 336 | m_BuildTargetVRSettings: 337 | - m_BuildTarget: Standalone 338 | m_Enabled: 0 339 | m_Devices: 340 | - Oculus 341 | - OpenVR 342 | m_DefaultShaderChunkSizeInMB: 16 343 | m_DefaultShaderChunkCount: 0 344 | openGLRequireES31: 0 345 | openGLRequireES31AEP: 0 346 | openGLRequireES32: 0 347 | m_TemplateCustomTags: {} 348 | mobileMTRendering: 349 | Android: 1 350 | iPhone: 1 351 | tvOS: 1 352 | m_BuildTargetGroupLightmapEncodingQuality: 353 | - m_BuildTarget: Android 354 | m_EncodingQuality: 1 355 | - m_BuildTarget: iPhone 356 | m_EncodingQuality: 1 357 | - m_BuildTarget: tvOS 358 | m_EncodingQuality: 1 359 | m_BuildTargetGroupHDRCubemapEncodingQuality: 360 | - m_BuildTarget: Android 361 | m_EncodingQuality: 1 362 | - m_BuildTarget: iPhone 363 | m_EncodingQuality: 1 364 | - m_BuildTarget: tvOS 365 | m_EncodingQuality: 1 366 | m_BuildTargetGroupLightmapSettings: [] 367 | m_BuildTargetGroupLoadStoreDebugModeSettings: [] 368 | m_BuildTargetNormalMapEncoding: 369 | - m_BuildTarget: Android 370 | m_Encoding: 1 371 | - m_BuildTarget: iPhone 372 | m_Encoding: 1 373 | - m_BuildTarget: tvOS 374 | m_Encoding: 1 375 | m_BuildTargetDefaultTextureCompressionFormat: 376 | - m_BuildTarget: Android 377 | m_Format: 3 378 | playModeTestRunnerEnabled: 0 379 | runPlayModeTestAsEditModeTest: 0 380 | actionOnDotNetUnhandledException: 1 381 | enableInternalProfiler: 0 382 | logObjCUncaughtExceptions: 1 383 | enableCrashReportAPI: 0 384 | cameraUsageDescription: 385 | locationUsageDescription: 386 | microphoneUsageDescription: 387 | bluetoothUsageDescription: 388 | macOSTargetOSVersion: 10.13.0 389 | switchNMETAOverride: 390 | switchNetLibKey: 391 | switchSocketMemoryPoolSize: 6144 392 | switchSocketAllocatorPoolSize: 128 393 | switchSocketConcurrencyLimit: 14 394 | switchScreenResolutionBehavior: 2 395 | switchUseCPUProfiler: 0 396 | switchUseGOLDLinker: 0 397 | switchLTOSetting: 0 398 | switchApplicationID: 0x01004b9000490000 399 | switchNSODependencies: 400 | switchCompilerFlags: 401 | switchTitleNames_0: 402 | switchTitleNames_1: 403 | switchTitleNames_2: 404 | switchTitleNames_3: 405 | switchTitleNames_4: 406 | switchTitleNames_5: 407 | switchTitleNames_6: 408 | switchTitleNames_7: 409 | switchTitleNames_8: 410 | switchTitleNames_9: 411 | switchTitleNames_10: 412 | switchTitleNames_11: 413 | switchTitleNames_12: 414 | switchTitleNames_13: 415 | switchTitleNames_14: 416 | switchTitleNames_15: 417 | switchPublisherNames_0: 418 | switchPublisherNames_1: 419 | switchPublisherNames_2: 420 | switchPublisherNames_3: 421 | switchPublisherNames_4: 422 | switchPublisherNames_5: 423 | switchPublisherNames_6: 424 | switchPublisherNames_7: 425 | switchPublisherNames_8: 426 | switchPublisherNames_9: 427 | switchPublisherNames_10: 428 | switchPublisherNames_11: 429 | switchPublisherNames_12: 430 | switchPublisherNames_13: 431 | switchPublisherNames_14: 432 | switchPublisherNames_15: 433 | switchIcons_0: {fileID: 0} 434 | switchIcons_1: {fileID: 0} 435 | switchIcons_2: {fileID: 0} 436 | switchIcons_3: {fileID: 0} 437 | switchIcons_4: {fileID: 0} 438 | switchIcons_5: {fileID: 0} 439 | switchIcons_6: {fileID: 0} 440 | switchIcons_7: {fileID: 0} 441 | switchIcons_8: {fileID: 0} 442 | switchIcons_9: {fileID: 0} 443 | switchIcons_10: {fileID: 0} 444 | switchIcons_11: {fileID: 0} 445 | switchIcons_12: {fileID: 0} 446 | switchIcons_13: {fileID: 0} 447 | switchIcons_14: {fileID: 0} 448 | switchIcons_15: {fileID: 0} 449 | switchSmallIcons_0: {fileID: 0} 450 | switchSmallIcons_1: {fileID: 0} 451 | switchSmallIcons_2: {fileID: 0} 452 | switchSmallIcons_3: {fileID: 0} 453 | switchSmallIcons_4: {fileID: 0} 454 | switchSmallIcons_5: {fileID: 0} 455 | switchSmallIcons_6: {fileID: 0} 456 | switchSmallIcons_7: {fileID: 0} 457 | switchSmallIcons_8: {fileID: 0} 458 | switchSmallIcons_9: {fileID: 0} 459 | switchSmallIcons_10: {fileID: 0} 460 | switchSmallIcons_11: {fileID: 0} 461 | switchSmallIcons_12: {fileID: 0} 462 | switchSmallIcons_13: {fileID: 0} 463 | switchSmallIcons_14: {fileID: 0} 464 | switchSmallIcons_15: {fileID: 0} 465 | switchManualHTML: 466 | switchAccessibleURLs: 467 | switchLegalInformation: 468 | switchMainThreadStackSize: 1048576 469 | switchPresenceGroupId: 470 | switchLogoHandling: 0 471 | switchReleaseVersion: 0 472 | switchDisplayVersion: 1.0.0 473 | switchStartupUserAccount: 0 474 | switchSupportedLanguagesMask: 0 475 | switchLogoType: 0 476 | switchApplicationErrorCodeCategory: 477 | switchUserAccountSaveDataSize: 0 478 | switchUserAccountSaveDataJournalSize: 0 479 | switchApplicationAttribute: 0 480 | switchCardSpecSize: -1 481 | switchCardSpecClock: -1 482 | switchRatingsMask: 0 483 | switchRatingsInt_0: 0 484 | switchRatingsInt_1: 0 485 | switchRatingsInt_2: 0 486 | switchRatingsInt_3: 0 487 | switchRatingsInt_4: 0 488 | switchRatingsInt_5: 0 489 | switchRatingsInt_6: 0 490 | switchRatingsInt_7: 0 491 | switchRatingsInt_8: 0 492 | switchRatingsInt_9: 0 493 | switchRatingsInt_10: 0 494 | switchRatingsInt_11: 0 495 | switchRatingsInt_12: 0 496 | switchLocalCommunicationIds_0: 497 | switchLocalCommunicationIds_1: 498 | switchLocalCommunicationIds_2: 499 | switchLocalCommunicationIds_3: 500 | switchLocalCommunicationIds_4: 501 | switchLocalCommunicationIds_5: 502 | switchLocalCommunicationIds_6: 503 | switchLocalCommunicationIds_7: 504 | switchParentalControl: 0 505 | switchAllowsScreenshot: 1 506 | switchAllowsVideoCapturing: 1 507 | switchAllowsRuntimeAddOnContentInstall: 0 508 | switchDataLossConfirmation: 0 509 | switchUserAccountLockEnabled: 0 510 | switchSystemResourceMemory: 16777216 511 | switchSupportedNpadStyles: 22 512 | switchNativeFsCacheSize: 32 513 | switchIsHoldTypeHorizontal: 0 514 | switchSupportedNpadCount: 8 515 | switchEnableTouchScreen: 1 516 | switchSocketConfigEnabled: 0 517 | switchTcpInitialSendBufferSize: 32 518 | switchTcpInitialReceiveBufferSize: 64 519 | switchTcpAutoSendBufferSizeMax: 256 520 | switchTcpAutoReceiveBufferSizeMax: 256 521 | switchUdpSendBufferSize: 9 522 | switchUdpReceiveBufferSize: 42 523 | switchSocketBufferEfficiency: 4 524 | switchSocketInitializeEnabled: 1 525 | switchNetworkInterfaceManagerInitializeEnabled: 1 526 | switchPlayerConnectionEnabled: 1 527 | switchUseNewStyleFilepaths: 1 528 | switchUseLegacyFmodPriorities: 0 529 | switchUseMicroSleepForYield: 1 530 | switchEnableRamDiskSupport: 0 531 | switchMicroSleepForYieldTime: 25 532 | switchRamDiskSpaceSize: 12 533 | ps4NPAgeRating: 12 534 | ps4NPTitleSecret: 535 | ps4NPTrophyPackPath: 536 | ps4ParentalLevel: 11 537 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 538 | ps4Category: 0 539 | ps4MasterVersion: 01.00 540 | ps4AppVersion: 01.00 541 | ps4AppType: 0 542 | ps4ParamSfxPath: 543 | ps4VideoOutPixelFormat: 0 544 | ps4VideoOutInitialWidth: 1920 545 | ps4VideoOutBaseModeInitialWidth: 1920 546 | ps4VideoOutReprojectionRate: 60 547 | ps4PronunciationXMLPath: 548 | ps4PronunciationSIGPath: 549 | ps4BackgroundImagePath: 550 | ps4StartupImagePath: 551 | ps4StartupImagesFolder: 552 | ps4IconImagesFolder: 553 | ps4SaveDataImagePath: 554 | ps4SdkOverride: 555 | ps4BGMPath: 556 | ps4ShareFilePath: 557 | ps4ShareOverlayImagePath: 558 | ps4PrivacyGuardImagePath: 559 | ps4ExtraSceSysFile: 560 | ps4NPtitleDatPath: 561 | ps4RemotePlayKeyAssignment: -1 562 | ps4RemotePlayKeyMappingDir: 563 | ps4PlayTogetherPlayerCount: 0 564 | ps4EnterButtonAssignment: 1 565 | ps4ApplicationParam1: 0 566 | ps4ApplicationParam2: 0 567 | ps4ApplicationParam3: 0 568 | ps4ApplicationParam4: 0 569 | ps4DownloadDataSize: 0 570 | ps4GarlicHeapSize: 2048 571 | ps4ProGarlicHeapSize: 2560 572 | playerPrefsMaxSize: 32768 573 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 574 | ps4pnSessions: 1 575 | ps4pnPresence: 1 576 | ps4pnFriends: 1 577 | ps4pnGameCustomData: 1 578 | playerPrefsSupport: 0 579 | enableApplicationExit: 0 580 | resetTempFolder: 1 581 | restrictedAudioUsageRights: 0 582 | ps4UseResolutionFallback: 0 583 | ps4ReprojectionSupport: 0 584 | ps4UseAudio3dBackend: 0 585 | ps4UseLowGarlicFragmentationMode: 1 586 | ps4SocialScreenEnabled: 0 587 | ps4ScriptOptimizationLevel: 0 588 | ps4Audio3dVirtualSpeakerCount: 14 589 | ps4attribCpuUsage: 0 590 | ps4PatchPkgPath: 591 | ps4PatchLatestPkgPath: 592 | ps4PatchChangeinfoPath: 593 | ps4PatchDayOne: 0 594 | ps4attribUserManagement: 0 595 | ps4attribMoveSupport: 0 596 | ps4attrib3DSupport: 0 597 | ps4attribShareSupport: 0 598 | ps4attribExclusiveVR: 0 599 | ps4disableAutoHideSplash: 0 600 | ps4videoRecordingFeaturesUsed: 0 601 | ps4contentSearchFeaturesUsed: 0 602 | ps4CompatibilityPS5: 0 603 | ps4AllowPS5Detection: 0 604 | ps4GPU800MHz: 1 605 | ps4attribEyeToEyeDistanceSettingVR: 0 606 | ps4IncludedModules: [] 607 | ps4attribVROutputEnabled: 0 608 | monoEnv: 609 | splashScreenBackgroundSourceLandscape: {fileID: 0} 610 | splashScreenBackgroundSourcePortrait: {fileID: 0} 611 | blurSplashScreenBackground: 1 612 | spritePackerPolicy: 613 | webGLMemorySize: 16 614 | webGLExceptionSupport: 1 615 | webGLNameFilesAsHashes: 0 616 | webGLShowDiagnostics: 0 617 | webGLDataCaching: 1 618 | webGLDebugSymbols: 0 619 | webGLEmscriptenArgs: 620 | webGLModulesDirectory: 621 | webGLTemplate: APPLICATION:Default 622 | webGLAnalyzeBuildSize: 0 623 | webGLUseEmbeddedResources: 0 624 | webGLCompressionFormat: 1 625 | webGLWasmArithmeticExceptions: 0 626 | webGLLinkerTarget: 1 627 | webGLThreadsSupport: 0 628 | webGLDecompressionFallback: 0 629 | webGLInitialMemorySize: 32 630 | webGLMaximumMemorySize: 2048 631 | webGLMemoryGrowthMode: 2 632 | webGLMemoryLinearGrowthStep: 16 633 | webGLMemoryGeometricGrowthStep: 0.2 634 | webGLMemoryGeometricGrowthCap: 96 635 | webGLPowerPreference: 2 636 | scriptingDefineSymbols: {} 637 | additionalCompilerArguments: {} 638 | platformArchitecture: {} 639 | scriptingBackend: {} 640 | il2cppCompilerConfiguration: {} 641 | il2cppCodeGeneration: {} 642 | managedStrippingLevel: 643 | EmbeddedLinux: 1 644 | GameCoreScarlett: 1 645 | GameCoreXboxOne: 1 646 | Nintendo Switch: 1 647 | PS4: 1 648 | PS5: 1 649 | QNX: 1 650 | Stadia: 1 651 | WebGL: 1 652 | Windows Store Apps: 1 653 | XboxOne: 1 654 | iPhone: 1 655 | tvOS: 1 656 | incrementalIl2cppBuild: {} 657 | suppressCommonWarnings: 1 658 | allowUnsafeCode: 0 659 | useDeterministicCompilation: 1 660 | selectedPlatform: 0 661 | additionalIl2CppArgs: 662 | scriptingRuntimeVersion: 1 663 | gcIncremental: 1 664 | gcWBarrierValidation: 0 665 | apiCompatibilityLevelPerPlatform: {} 666 | m_RenderingPath: 1 667 | m_MobileRenderingPath: 1 668 | metroPackageName: BurstSleep 669 | metroPackageVersion: 670 | metroCertificatePath: 671 | metroCertificatePassword: 672 | metroCertificateSubject: 673 | metroCertificateIssuer: 674 | metroCertificateNotAfter: 0000000000000000 675 | metroApplicationDescription: BurstSleep 676 | wsaImages: {} 677 | metroTileShortName: 678 | metroTileShowName: 0 679 | metroMediumTileShowName: 0 680 | metroLargeTileShowName: 0 681 | metroWideTileShowName: 0 682 | metroSupportStreamingInstall: 0 683 | metroLastRequiredScene: 0 684 | metroDefaultTileSize: 1 685 | metroTileForegroundText: 2 686 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 687 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 688 | metroSplashScreenUseBackgroundColor: 0 689 | platformCapabilities: {} 690 | metroTargetDeviceFamilies: {} 691 | metroFTAName: 692 | metroFTAFileTypes: [] 693 | metroProtocolName: 694 | vcxProjDefaultLanguage: 695 | XboxOneProductId: 696 | XboxOneUpdateKey: 697 | XboxOneSandboxId: 698 | XboxOneContentId: 699 | XboxOneTitleId: 700 | XboxOneSCId: 701 | XboxOneGameOsOverridePath: 702 | XboxOnePackagingOverridePath: 703 | XboxOneAppManifestOverridePath: 704 | XboxOneVersion: 1.0.0.0 705 | XboxOnePackageEncryption: 0 706 | XboxOnePackageUpdateGranularity: 2 707 | XboxOneDescription: 708 | XboxOneLanguage: 709 | - enus 710 | XboxOneCapability: [] 711 | XboxOneGameRating: {} 712 | XboxOneIsContentPackage: 0 713 | XboxOneEnhancedXboxCompatibilityMode: 0 714 | XboxOneEnableGPUVariability: 1 715 | XboxOneSockets: {} 716 | XboxOneSplashScreen: {fileID: 0} 717 | XboxOneAllowedProductIds: [] 718 | XboxOnePersistentLocalStorageSize: 0 719 | XboxOneXTitleMemory: 8 720 | XboxOneOverrideIdentityName: 721 | XboxOneOverrideIdentityPublisher: 722 | vrEditorSettings: {} 723 | cloudServicesEnabled: 724 | UNet: 1 725 | luminIcon: 726 | m_Name: 727 | m_ModelFolderPath: 728 | m_PortalFolderPath: 729 | luminCert: 730 | m_CertPath: 731 | m_SignPackage: 1 732 | luminIsChannelApp: 0 733 | luminVersion: 734 | m_VersionCode: 1 735 | m_VersionName: 736 | hmiPlayerDataPath: 737 | hmiForceSRGBBlit: 1 738 | embeddedLinuxEnableGamepadInput: 1 739 | hmiLogStartupTiming: 0 740 | hmiCpuConfiguration: 741 | apiCompatibilityLevel: 6 742 | activeInputHandler: 0 743 | windowsGamepadBackendHint: 0 744 | cloudProjectId: 745 | framebufferDepthMemorylessMode: 0 746 | qualitySettingsNames: [] 747 | projectName: 748 | organizationId: 749 | cloudEnabled: 0 750 | legacyClampBlendShapeWeights: 0 751 | hmiLoadingImage: {fileID: 0} 752 | platformRequiresReadableAssets: 0 753 | virtualTexturingSupportEnabled: 0 754 | insecureHttpOption: 0 755 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.0f1 2 | m_EditorVersionWithRevision: 2022.3.0f1 (fb119bb0b476) 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | m_PackageRequiringCoreStatsPresent: 0 27 | UnityAdsSettings: 28 | m_Enabled: 0 29 | m_InitializeOnStartup: 1 30 | m_TestMode: 0 31 | m_IosGameId: 32 | m_AndroidGameId: 33 | m_GameIds: {} 34 | m_GameId: 35 | PerformanceReportingSettings: 36 | m_Enabled: 0 37 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/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 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Burst2ManagedCall 2 | How to call managed functions (like Thread.Sleep) from Burst 3 | 4 | This demo contains a few interesting blocks that can be used together with Burst. 5 | 6 | ![Screenshot of working demo](DocPrintScreen.png) 7 | 8 | ## What exactly? 9 | 10 | We have a function 11 | 12 | ```csharp 13 | private static void SleepManaged(int milliseconds) 14 | { 15 | // C# managed land 16 | Debug.Log($"Sleep({milliseconds}) is called from the managed!"); 17 | 18 | Thread.Sleep(milliseconds); 19 | } 20 | ``` 21 | 22 | and we really want to call it from Burst code, not breaking Burst compilation. 23 | 24 | 25 | ## How? 26 | 27 | There is a list of blocks we're going to use: 28 | 29 | ### BurstUtils.IsCalledFromBurst 30 | 31 | Will return `true` if it was called from Burst, `false` otherwise. 32 | Implemented using `[BurstDiscard]` trick that hides functions from Burst, but executes them in managed land. 33 | 34 | Used to detect if things are the same as we want. 35 | 36 | ### Burst2ManagedCall 37 | 38 | SharedStatic wrapper for `FunctionPointer` that is extracted from the delegate using `T funcPtr = Marshal.GetFunctionPointerForDelegate(delegate_of_type_T)` 39 | 40 | ### Delegate type + needed attributes 41 | 42 | We need to create a delegate for our function `private delegate void SleepManagedDelegate(int milliseconds);` and mark the delegate with `cdecl` and the function with `MonoPInvokeCallback`: 43 | 44 | ```csharp 45 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] 46 | private delegate void SleepManagedDelegate(int milliseconds); 47 | 48 | [AOT.MonoPInvokeCallback(typeof(SleepManagedDelegate))] 49 | private static void SleepManaged(int milliseconds) 50 | ``` 51 | 52 | ### Initialize things from the managed C# 53 | 54 | ```csharp 55 | [BurstDiscard] 56 | public static void InitializeFromManaged() 57 | { 58 | Burst2ManagedCall.InitIfNotCreated(SleepManaged); 59 | } 60 | ``` 61 | 62 | This is an initialization step that we have to do from managed C# once. It is marked as `BurstDiscard` because Burst cannot compile this code. 63 | Also, don't call it from static constructors, because Burst can call static constructors, which would be a hard-to-debug surprise for you. 64 | 65 | 66 | ### Do the call from the Burst 67 | 68 | 69 | Just a usual call like that (or from a job): 70 | ```csharp 71 | [BurstCompile] 72 | public class EntryPointMonoBehaviour : MonoBehaviour 73 | { 74 | [BurstCompile] 75 | static void RunBurstDirectCall() 76 | { 77 | ... 78 | BurstSleep.Sleep(42); 79 | ... 80 | } 81 | ... 82 | } 83 | ``` 84 | 85 | where `BurstSleep.Sleep(int milliseconds)` is: 86 | 87 | ```csharp 88 | public static void Sleep(int milliseconds) 89 | { 90 | // get the FunctionPointer 91 | 92 | var ptr = Burst2ManagedCall.Ptr(); 93 | #if CAN_USE_UNMANAGED_DELEGATES 94 | // this is better variant - not going to alloc if burst is disabled 95 | unsafe 96 | { 97 | ((delegate * unmanaged[Cdecl] )ptr.Value)(milliseconds); // call it without allocation if called from managed 98 | } 99 | #else 100 | ptr.Invoke(milliseconds); // or like this 101 | #endif 102 | } 103 | ``` 104 | 105 | The unmanaged delegate call is not really needed if you never going to call this from managed. Otherwise (in debug-burst-is-off situations) it is probably better to do that if you want a non-alloc call. 106 | --------------------------------------------------------------------------------