├── .editorconfig ├── .gitignore ├── Assets ├── Samples └── Samples.meta ├── AutoScreen-for-Unity2021.sln.DotSettings ├── LICENSE ├── Packages ├── com.jagapippi.auto-screen │ ├── AutoScreen.asmdef │ ├── AutoScreen.asmdef.meta │ ├── Samples~ │ │ ├── Demo.meta │ │ └── Demo │ │ │ ├── Demo.unity │ │ │ ├── Demo.unity.meta │ │ │ ├── ScreenSampler.cs │ │ │ └── ScreenSampler.cs.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── EnumFlagsAttributeDrawer.cs │ │ │ ├── EnumFlagsAttributeDrawer.cs.meta │ │ │ ├── SafeAreaPrefabPostprocessor.cs │ │ │ ├── SafeAreaPrefabPostprocessor.cs.meta │ │ │ ├── ShimManagerEvent.cs │ │ │ ├── ShimManagerEvent.cs.meta │ │ │ ├── ShimManagerProxy.cs │ │ │ ├── ShimManagerProxy.cs.meta │ │ │ ├── SimulatorWindowEvent.cs │ │ │ ├── SimulatorWindowEvent.cs.meta │ │ │ ├── SimulatorWindowProxy.cs │ │ │ └── SimulatorWindowProxy.cs.meta │ │ ├── EnumFlagsAttribute.cs │ │ ├── EnumFlagsAttribute.cs.meta │ │ ├── ISafeAreaUpdatable.cs │ │ ├── ISafeAreaUpdatable.cs.meta │ │ ├── RuntimeSafeAreaUpdater.cs │ │ ├── RuntimeSafeAreaUpdater.cs.meta │ │ ├── SafeArea.cs │ │ ├── SafeArea.cs.meta │ │ ├── SafeAreaBase.cs │ │ ├── SafeAreaBase.cs.meta │ │ ├── Screen.cs │ │ ├── Screen.cs.meta │ │ ├── UnsafeArea.cs │ │ └── UnsafeArea.cs.meta │ ├── package.json │ └── package.json.meta ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset └── README.md /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | # Unix-style newlines with a newline ending every file 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | insert_final_newline = true 8 | 9 | [*.cs] 10 | trim_trailing_whitespace = true 11 | 12 | [*.asmdef] 13 | indent_style = space 14 | indent_size = 4 15 | trim_trailing_whitespace = true 16 | 17 | [{package,packages-lock}.json] 18 | indent_style = space 19 | indent_size = 2 20 | insert_final_newline = false 21 | trim_trailing_whitespace = true 22 | -------------------------------------------------------------------------------- /.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 | .idea/ 26 | 27 | # Visual Studio cache directory 28 | .vs/ 29 | 30 | # Gradle cache directory 31 | .gradle/ 32 | 33 | # Autogenerated VS/MD/Consulo solution and project files 34 | ExportedObj/ 35 | .consulo/ 36 | *.csproj 37 | *.unityproj 38 | *.sln 39 | *.suo 40 | *.tmp 41 | *.user 42 | *.userprefs 43 | *.pidb 44 | *.booproj 45 | *.svd 46 | *.pdb 47 | *.mdb 48 | *.opendb 49 | *.VC.db 50 | 51 | # Unity3D generated meta files 52 | *.pidb.meta 53 | *.pdb.meta 54 | *.mdb.meta 55 | 56 | # Unity3D generated file on crash reports 57 | sysinfo.txt 58 | 59 | # Builds 60 | *.ipa 61 | *.apk 62 | *.aab 63 | # *.unitypackage 64 | *.app 65 | 66 | # Crashlytics generated file 67 | crashlytics-build.properties 68 | 69 | # Packed Addressables 70 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 71 | 72 | # Temporary auto-generated Android Assets 73 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 74 | /[Aa]ssets/[Ss]treamingAssets/aa/* 75 | 76 | # macOS generated file 77 | .DS_Store 78 | -------------------------------------------------------------------------------- /Assets/Samples: -------------------------------------------------------------------------------- 1 | ../Packages/com.jagapippi.auto-screen/Samples~/ -------------------------------------------------------------------------------- /Assets/Samples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69fa781f7e391488f8de7424432a04bf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /AutoScreen-for-Unity2021.sln.DotSettings: -------------------------------------------------------------------------------- 1 |  2 | False 3 | HINT 4 | DO_NOT_SHOW 5 | True 6 | <?xml version="1.0" encoding="utf-16"?><Profile name="Built-in: Reformat Code &amp; Optimize 'using' directives"><CppReformatCode>True</CppReformatCode><ShaderLabReformatCode>True</ShaderLabReformatCode><XAMLCollapseEmptyTags>False</XAMLCollapseEmptyTags><XMLReformatCode>True</XMLReformatCode><HtmlReformatCode>True</HtmlReformatCode><VBReformatCode>True</VBReformatCode><CSReformatCode>True</CSReformatCode><IDEA_SETTINGS>&lt;profile version="1.0"&gt; 7 | &lt;option name="myName" value="Built-in: Reformat Code &amp;amp; Optimize 'using' directives" /&gt; 8 | &lt;inspection_tool class="ES6ShorthandObjectProperty" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt; 9 | &lt;inspection_tool class="JSArrowFunctionBracesCanBeRemoved" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt; 10 | &lt;inspection_tool class="JSPrimitiveTypeWrapperUsage" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 11 | &lt;inspection_tool class="JSRemoveUnnecessaryParentheses" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt; 12 | &lt;inspection_tool class="JSUnnecessarySemicolon" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 13 | &lt;inspection_tool class="TypeScriptExplicitMemberType" enabled="false" level="INFORMATION" enabled_by_default="false" /&gt; 14 | &lt;inspection_tool class="UnnecessaryContinueJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 15 | &lt;inspection_tool class="UnnecessaryLabelJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 16 | &lt;inspection_tool class="UnnecessaryLabelOnBreakStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 17 | &lt;inspection_tool class="UnnecessaryLabelOnContinueStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 18 | &lt;inspection_tool class="UnnecessaryReturnJS" enabled="false" level="WARNING" enabled_by_default="false" /&gt; 19 | &lt;inspection_tool class="WrongPropertyKeyValueDelimiter" enabled="false" level="WEAK WARNING" enabled_by_default="false" /&gt; 20 | &lt;/profile&gt;</IDEA_SETTINGS><RIDER_SETTINGS>&lt;profile&gt; 21 | &lt;Language id="AppleScript"&gt; 22 | &lt;Reformat&gt;true&lt;/Reformat&gt; 23 | &lt;/Language&gt; 24 | &lt;Language id="CSS"&gt; 25 | &lt;Rearrange&gt;false&lt;/Rearrange&gt; 26 | &lt;Reformat&gt;true&lt;/Reformat&gt; 27 | &lt;/Language&gt; 28 | &lt;Language id="EditorConfig"&gt; 29 | &lt;Reformat&gt;true&lt;/Reformat&gt; 30 | &lt;/Language&gt; 31 | &lt;Language id="HTML"&gt; 32 | &lt;Rearrange&gt;false&lt;/Rearrange&gt; 33 | &lt;Reformat&gt;true&lt;/Reformat&gt; 34 | &lt;OptimizeImports&gt;false&lt;/OptimizeImports&gt; 35 | &lt;/Language&gt; 36 | &lt;Language id="HTTP Request"&gt; 37 | &lt;Reformat&gt;true&lt;/Reformat&gt; 38 | &lt;/Language&gt; 39 | &lt;Language id="Handlebars"&gt; 40 | &lt;Reformat&gt;true&lt;/Reformat&gt; 41 | &lt;/Language&gt; 42 | &lt;Language id="Ini"&gt; 43 | &lt;Reformat&gt;true&lt;/Reformat&gt; 44 | &lt;/Language&gt; 45 | &lt;Language id="JSON"&gt; 46 | &lt;Reformat&gt;true&lt;/Reformat&gt; 47 | &lt;/Language&gt; 48 | &lt;Language id="Jade"&gt; 49 | &lt;Reformat&gt;true&lt;/Reformat&gt; 50 | &lt;/Language&gt; 51 | &lt;Language id="JavaScript"&gt; 52 | &lt;Rearrange&gt;false&lt;/Rearrange&gt; 53 | &lt;Reformat&gt;true&lt;/Reformat&gt; 54 | &lt;OptimizeImports&gt;false&lt;/OptimizeImports&gt; 55 | &lt;/Language&gt; 56 | &lt;Language id="Markdown"&gt; 57 | &lt;Reformat&gt;true&lt;/Reformat&gt; 58 | &lt;/Language&gt; 59 | &lt;Language id="Properties"&gt; 60 | &lt;Reformat&gt;true&lt;/Reformat&gt; 61 | &lt;/Language&gt; 62 | &lt;Language id="RELAX-NG"&gt; 63 | &lt;Reformat&gt;true&lt;/Reformat&gt; 64 | &lt;/Language&gt; 65 | &lt;Language id="SQL"&gt; 66 | &lt;Reformat&gt;true&lt;/Reformat&gt; 67 | &lt;/Language&gt; 68 | &lt;Language id="XML"&gt; 69 | &lt;Rearrange&gt;false&lt;/Rearrange&gt; 70 | &lt;Reformat&gt;true&lt;/Reformat&gt; 71 | &lt;OptimizeImports&gt;false&lt;/OptimizeImports&gt; 72 | &lt;/Language&gt; 73 | &lt;Language id="yaml"&gt; 74 | &lt;Reformat&gt;true&lt;/Reformat&gt; 75 | &lt;/Language&gt; 76 | &lt;/profile&gt;</RIDER_SETTINGS><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings></CSOptimizeUsings></Profile> 77 | Built-in: Reformat Code & Optimize 'using' directives 78 | Built-in: Reformat Code & Optimize 'using' directives 79 | True 80 | False 81 | True 82 | False 83 | True 84 | False 85 | False 86 | True 87 | False 88 | True 89 | False 90 | False 91 | True 92 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 93 | <Policy><Descriptor Staticness="Instance" AccessRightKinds="Any" Description="Unity serialized field"><ElementKinds><Kind Name="UNITY_SERIALISED_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></Policy> 94 | 95 | True -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021 su10 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/AutoScreen.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AutoScreen", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": false, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [], 12 | "versionDefines": [], 13 | "noEngineReferences": false 14 | } -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/AutoScreen.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d00ea8eea3b8a4df79ba6bcba16173ef 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Samples~/Demo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69eaba95f7c50454280b11fbc5c9b089 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Samples~/Demo/Demo.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, 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: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &214129584 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: 214129588} 135 | - component: {fileID: 214129587} 136 | - component: {fileID: 214129586} 137 | - component: {fileID: 214129585} 138 | m_Layer: 5 139 | m_Name: Canvas 140 | m_TagString: Untagged 141 | m_Icon: {fileID: 0} 142 | m_NavMeshLayer: 0 143 | m_StaticEditorFlags: 0 144 | m_IsActive: 1 145 | --- !u!114 &214129585 146 | MonoBehaviour: 147 | m_ObjectHideFlags: 0 148 | m_CorrespondingSourceObject: {fileID: 0} 149 | m_PrefabInstance: {fileID: 0} 150 | m_PrefabAsset: {fileID: 0} 151 | m_GameObject: {fileID: 214129584} 152 | m_Enabled: 1 153 | m_EditorHideFlags: 0 154 | m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} 155 | m_Name: 156 | m_EditorClassIdentifier: 157 | m_IgnoreReversedGraphics: 1 158 | m_BlockingObjects: 0 159 | m_BlockingMask: 160 | serializedVersion: 2 161 | m_Bits: 4294967295 162 | --- !u!114 &214129586 163 | MonoBehaviour: 164 | m_ObjectHideFlags: 0 165 | m_CorrespondingSourceObject: {fileID: 0} 166 | m_PrefabInstance: {fileID: 0} 167 | m_PrefabAsset: {fileID: 0} 168 | m_GameObject: {fileID: 214129584} 169 | m_Enabled: 1 170 | m_EditorHideFlags: 0 171 | m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} 172 | m_Name: 173 | m_EditorClassIdentifier: 174 | m_UiScaleMode: 1 175 | m_ReferencePixelsPerUnit: 100 176 | m_ScaleFactor: 1 177 | m_ReferenceResolution: {x: 750, y: 1334} 178 | m_ScreenMatchMode: 0 179 | m_MatchWidthOrHeight: 0.5 180 | m_PhysicalUnit: 3 181 | m_FallbackScreenDPI: 96 182 | m_DefaultSpriteDPI: 96 183 | m_DynamicPixelsPerUnit: 1 184 | m_PresetInfoIsWorld: 0 185 | --- !u!223 &214129587 186 | Canvas: 187 | m_ObjectHideFlags: 0 188 | m_CorrespondingSourceObject: {fileID: 0} 189 | m_PrefabInstance: {fileID: 0} 190 | m_PrefabAsset: {fileID: 0} 191 | m_GameObject: {fileID: 214129584} 192 | m_Enabled: 1 193 | serializedVersion: 3 194 | m_RenderMode: 1 195 | m_Camera: {fileID: 1577109243} 196 | m_PlaneDistance: 100 197 | m_PixelPerfect: 0 198 | m_ReceivesEvents: 1 199 | m_OverrideSorting: 0 200 | m_OverridePixelPerfect: 0 201 | m_SortingBucketNormalizedSize: 0 202 | m_AdditionalShaderChannelsFlag: 0 203 | m_SortingLayerID: 0 204 | m_SortingOrder: 0 205 | m_TargetDisplay: 0 206 | --- !u!224 &214129588 207 | RectTransform: 208 | m_ObjectHideFlags: 0 209 | m_CorrespondingSourceObject: {fileID: 0} 210 | m_PrefabInstance: {fileID: 0} 211 | m_PrefabAsset: {fileID: 0} 212 | m_GameObject: {fileID: 214129584} 213 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 214 | m_LocalPosition: {x: 0, y: 0, z: 0} 215 | m_LocalScale: {x: 0, y: 0, z: 0} 216 | m_Children: 217 | - {fileID: 637596075} 218 | - {fileID: 485179867} 219 | m_Father: {fileID: 0} 220 | m_RootOrder: 1 221 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 222 | m_AnchorMin: {x: 0, y: 0} 223 | m_AnchorMax: {x: 0, y: 0} 224 | m_AnchoredPosition: {x: 0, y: 0} 225 | m_SizeDelta: {x: 0, y: 0} 226 | m_Pivot: {x: 0, y: 0} 227 | --- !u!1 &218075496 228 | GameObject: 229 | m_ObjectHideFlags: 0 230 | m_CorrespondingSourceObject: {fileID: 0} 231 | m_PrefabInstance: {fileID: 0} 232 | m_PrefabAsset: {fileID: 0} 233 | serializedVersion: 6 234 | m_Component: 235 | - component: {fileID: 218075497} 236 | - component: {fileID: 218075499} 237 | - component: {fileID: 218075498} 238 | m_Layer: 5 239 | m_Name: Placeholder 240 | m_TagString: Untagged 241 | m_Icon: {fileID: 0} 242 | m_NavMeshLayer: 0 243 | m_StaticEditorFlags: 0 244 | m_IsActive: 1 245 | --- !u!224 &218075497 246 | RectTransform: 247 | m_ObjectHideFlags: 0 248 | m_CorrespondingSourceObject: {fileID: 0} 249 | m_PrefabInstance: {fileID: 0} 250 | m_PrefabAsset: {fileID: 0} 251 | m_GameObject: {fileID: 218075496} 252 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 253 | m_LocalPosition: {x: 0, y: 0, z: 0} 254 | m_LocalScale: {x: 1, y: 1, z: 1} 255 | m_Children: [] 256 | m_Father: {fileID: 838011704} 257 | m_RootOrder: 0 258 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 259 | m_AnchorMin: {x: 0, y: 0} 260 | m_AnchorMax: {x: 1, y: 1} 261 | m_AnchoredPosition: {x: 0, y: -0.5} 262 | m_SizeDelta: {x: -20, y: -13} 263 | m_Pivot: {x: 0.5, y: 0.5} 264 | --- !u!114 &218075498 265 | MonoBehaviour: 266 | m_ObjectHideFlags: 0 267 | m_CorrespondingSourceObject: {fileID: 0} 268 | m_PrefabInstance: {fileID: 0} 269 | m_PrefabAsset: {fileID: 0} 270 | m_GameObject: {fileID: 218075496} 271 | m_Enabled: 0 272 | m_EditorHideFlags: 0 273 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 274 | m_Name: 275 | m_EditorClassIdentifier: 276 | m_Material: {fileID: 0} 277 | m_Color: {r: 1, g: 1, b: 1, a: 0.5} 278 | m_RaycastTarget: 1 279 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 280 | m_Maskable: 1 281 | m_OnCullStateChanged: 282 | m_PersistentCalls: 283 | m_Calls: [] 284 | m_FontData: 285 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 286 | m_FontSize: 14 287 | m_FontStyle: 2 288 | m_BestFit: 1 289 | m_MinSize: 10 290 | m_MaxSize: 30 291 | m_Alignment: 3 292 | m_AlignByGeometry: 0 293 | m_RichText: 0 294 | m_HorizontalOverflow: 0 295 | m_VerticalOverflow: 0 296 | m_LineSpacing: 1 297 | m_Text: Enter text... 298 | --- !u!222 &218075499 299 | CanvasRenderer: 300 | m_ObjectHideFlags: 0 301 | m_CorrespondingSourceObject: {fileID: 0} 302 | m_PrefabInstance: {fileID: 0} 303 | m_PrefabAsset: {fileID: 0} 304 | m_GameObject: {fileID: 218075496} 305 | m_CullTransparentMesh: 0 306 | --- !u!1 &485179866 307 | GameObject: 308 | m_ObjectHideFlags: 0 309 | m_CorrespondingSourceObject: {fileID: 0} 310 | m_PrefabInstance: {fileID: 0} 311 | m_PrefabAsset: {fileID: 0} 312 | serializedVersion: 6 313 | m_Component: 314 | - component: {fileID: 485179867} 315 | m_Layer: 5 316 | m_Name: UnsafeArea 317 | m_TagString: Untagged 318 | m_Icon: {fileID: 0} 319 | m_NavMeshLayer: 0 320 | m_StaticEditorFlags: 0 321 | m_IsActive: 1 322 | --- !u!224 &485179867 323 | RectTransform: 324 | m_ObjectHideFlags: 0 325 | m_CorrespondingSourceObject: {fileID: 0} 326 | m_PrefabInstance: {fileID: 0} 327 | m_PrefabAsset: {fileID: 0} 328 | m_GameObject: {fileID: 485179866} 329 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 330 | m_LocalPosition: {x: 0, y: 0, z: 0} 331 | m_LocalScale: {x: 1, y: 1, z: 1} 332 | m_Children: 333 | - {fileID: 542762349} 334 | - {fileID: 722230455} 335 | - {fileID: 738671944} 336 | - {fileID: 1924300564} 337 | m_Father: {fileID: 214129588} 338 | m_RootOrder: 1 339 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 340 | m_AnchorMin: {x: 0, y: 0} 341 | m_AnchorMax: {x: 1, y: 1} 342 | m_AnchoredPosition: {x: 0, y: 0} 343 | m_SizeDelta: {x: 0, y: 0} 344 | m_Pivot: {x: 0.5, y: 0.5} 345 | --- !u!1 &542762348 346 | GameObject: 347 | m_ObjectHideFlags: 0 348 | m_CorrespondingSourceObject: {fileID: 0} 349 | m_PrefabInstance: {fileID: 0} 350 | m_PrefabAsset: {fileID: 0} 351 | serializedVersion: 6 352 | m_Component: 353 | - component: {fileID: 542762349} 354 | - component: {fileID: 542762352} 355 | - component: {fileID: 542762353} 356 | - component: {fileID: 542762351} 357 | - component: {fileID: 542762350} 358 | m_Layer: 5 359 | m_Name: Top 360 | m_TagString: Untagged 361 | m_Icon: {fileID: 0} 362 | m_NavMeshLayer: 0 363 | m_StaticEditorFlags: 0 364 | m_IsActive: 1 365 | --- !u!224 &542762349 366 | RectTransform: 367 | m_ObjectHideFlags: 8 368 | m_CorrespondingSourceObject: {fileID: 0} 369 | m_PrefabInstance: {fileID: 0} 370 | m_PrefabAsset: {fileID: 0} 371 | m_GameObject: {fileID: 542762348} 372 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 373 | m_LocalPosition: {x: 0, y: 0, z: 0} 374 | m_LocalScale: {x: 1, y: 1, z: 1} 375 | m_Children: [] 376 | m_Father: {fileID: 485179867} 377 | m_RootOrder: 0 378 | m_LocalEulerAnglesHint: {x: 22, y: 22, z: 22} 379 | m_AnchorMin: {x: 0.5, y: 0.5} 380 | m_AnchorMax: {x: 0.5, y: 0.5} 381 | m_AnchoredPosition: {x: 0, y: 0} 382 | m_SizeDelta: {x: 0, y: 0} 383 | m_Pivot: {x: 0.5, y: 0.5} 384 | --- !u!114 &542762350 385 | MonoBehaviour: 386 | m_ObjectHideFlags: 0 387 | m_CorrespondingSourceObject: {fileID: 0} 388 | m_PrefabInstance: {fileID: 0} 389 | m_PrefabAsset: {fileID: 0} 390 | m_GameObject: {fileID: 542762348} 391 | m_Enabled: 1 392 | m_EditorHideFlags: 0 393 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 394 | m_Name: 395 | m_EditorClassIdentifier: 396 | m_Material: {fileID: 0} 397 | m_Color: {r: 0, g: 0, b: 0, a: 0.2509804} 398 | m_RaycastTarget: 1 399 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 400 | m_Maskable: 1 401 | m_OnCullStateChanged: 402 | m_PersistentCalls: 403 | m_Calls: [] 404 | m_Sprite: {fileID: 0} 405 | m_Type: 0 406 | m_PreserveAspect: 0 407 | m_FillCenter: 1 408 | m_FillMethod: 4 409 | m_FillAmount: 1 410 | m_FillClockwise: 1 411 | m_FillOrigin: 0 412 | m_UseSpriteMesh: 0 413 | m_PixelsPerUnitMultiplier: 1 414 | --- !u!222 &542762351 415 | CanvasRenderer: 416 | m_ObjectHideFlags: 0 417 | m_CorrespondingSourceObject: {fileID: 0} 418 | m_PrefabInstance: {fileID: 0} 419 | m_PrefabAsset: {fileID: 0} 420 | m_GameObject: {fileID: 542762348} 421 | m_CullTransparentMesh: 0 422 | --- !u!114 &542762352 423 | MonoBehaviour: 424 | m_ObjectHideFlags: 0 425 | m_CorrespondingSourceObject: {fileID: 0} 426 | m_PrefabInstance: {fileID: 0} 427 | m_PrefabAsset: {fileID: 0} 428 | m_GameObject: {fileID: 542762348} 429 | m_Enabled: 1 430 | m_EditorHideFlags: 0 431 | m_Script: {fileID: 11500000, guid: 7d3c731ce855a4745aee79e1634abb0b, type: 3} 432 | m_Name: 433 | m_EditorClassIdentifier: 434 | _position: 0 435 | --- !u!114 &542762353 436 | MonoBehaviour: 437 | m_ObjectHideFlags: 0 438 | m_CorrespondingSourceObject: {fileID: 0} 439 | m_PrefabInstance: {fileID: 0} 440 | m_PrefabAsset: {fileID: 0} 441 | m_GameObject: {fileID: 542762348} 442 | m_Enabled: 1 443 | m_EditorHideFlags: 0 444 | m_Script: {fileID: 11500000, guid: 5fc15d043ab524fe98fc239415aa9c8e, type: 3} 445 | m_Name: 446 | m_EditorClassIdentifier: 447 | --- !u!1 &637596074 448 | GameObject: 449 | m_ObjectHideFlags: 0 450 | m_CorrespondingSourceObject: {fileID: 0} 451 | m_PrefabInstance: {fileID: 0} 452 | m_PrefabAsset: {fileID: 0} 453 | serializedVersion: 6 454 | m_Component: 455 | - component: {fileID: 637596075} 456 | - component: {fileID: 637596076} 457 | - component: {fileID: 637596077} 458 | m_Layer: 5 459 | m_Name: SafeArea 460 | m_TagString: Untagged 461 | m_Icon: {fileID: 0} 462 | m_NavMeshLayer: 0 463 | m_StaticEditorFlags: 0 464 | m_IsActive: 1 465 | --- !u!224 &637596075 466 | RectTransform: 467 | m_ObjectHideFlags: 8 468 | m_CorrespondingSourceObject: {fileID: 0} 469 | m_PrefabInstance: {fileID: 0} 470 | m_PrefabAsset: {fileID: 0} 471 | m_GameObject: {fileID: 637596074} 472 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 473 | m_LocalPosition: {x: 0, y: 0, z: 0} 474 | m_LocalScale: {x: 1, y: 1, z: 1} 475 | m_Children: 476 | - {fileID: 820700907} 477 | - {fileID: 1208069481} 478 | - {fileID: 838011704} 479 | - {fileID: 1464979074} 480 | - {fileID: 828185025} 481 | m_Father: {fileID: 214129588} 482 | m_RootOrder: 0 483 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 484 | m_AnchorMin: {x: 0, y: 0} 485 | m_AnchorMax: {x: 1, y: 1} 486 | m_AnchoredPosition: {x: 0, y: 0} 487 | m_SizeDelta: {x: 0, y: 0} 488 | m_Pivot: {x: 0.5, y: 0.5} 489 | --- !u!114 &637596076 490 | MonoBehaviour: 491 | m_ObjectHideFlags: 0 492 | m_CorrespondingSourceObject: {fileID: 0} 493 | m_PrefabInstance: {fileID: 0} 494 | m_PrefabAsset: {fileID: 0} 495 | m_GameObject: {fileID: 637596074} 496 | m_Enabled: 1 497 | m_EditorHideFlags: 0 498 | m_Script: {fileID: 11500000, guid: 865b60587044f4c76b6c73c92c99be6a, type: 3} 499 | m_Name: 500 | m_EditorClassIdentifier: 501 | _padding: -1 502 | --- !u!114 &637596077 503 | MonoBehaviour: 504 | m_ObjectHideFlags: 0 505 | m_CorrespondingSourceObject: {fileID: 0} 506 | m_PrefabInstance: {fileID: 0} 507 | m_PrefabAsset: {fileID: 0} 508 | m_GameObject: {fileID: 637596074} 509 | m_Enabled: 1 510 | m_EditorHideFlags: 0 511 | m_Script: {fileID: 11500000, guid: 5fc15d043ab524fe98fc239415aa9c8e, type: 3} 512 | m_Name: 513 | m_EditorClassIdentifier: 514 | --- !u!1 &670930745 515 | GameObject: 516 | m_ObjectHideFlags: 0 517 | m_CorrespondingSourceObject: {fileID: 0} 518 | m_PrefabInstance: {fileID: 0} 519 | m_PrefabAsset: {fileID: 0} 520 | serializedVersion: 6 521 | m_Component: 522 | - component: {fileID: 670930748} 523 | - component: {fileID: 670930747} 524 | - component: {fileID: 670930746} 525 | m_Layer: 0 526 | m_Name: EventSystem 527 | m_TagString: Untagged 528 | m_Icon: {fileID: 0} 529 | m_NavMeshLayer: 0 530 | m_StaticEditorFlags: 0 531 | m_IsActive: 1 532 | --- !u!114 &670930746 533 | MonoBehaviour: 534 | m_ObjectHideFlags: 0 535 | m_CorrespondingSourceObject: {fileID: 0} 536 | m_PrefabInstance: {fileID: 0} 537 | m_PrefabAsset: {fileID: 0} 538 | m_GameObject: {fileID: 670930745} 539 | m_Enabled: 1 540 | m_EditorHideFlags: 0 541 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 542 | m_Name: 543 | m_EditorClassIdentifier: 544 | m_HorizontalAxis: Horizontal 545 | m_VerticalAxis: Vertical 546 | m_SubmitButton: Submit 547 | m_CancelButton: Cancel 548 | m_InputActionsPerSecond: 10 549 | m_RepeatDelay: 0.5 550 | m_ForceModuleActive: 0 551 | --- !u!114 &670930747 552 | MonoBehaviour: 553 | m_ObjectHideFlags: 0 554 | m_CorrespondingSourceObject: {fileID: 0} 555 | m_PrefabInstance: {fileID: 0} 556 | m_PrefabAsset: {fileID: 0} 557 | m_GameObject: {fileID: 670930745} 558 | m_Enabled: 1 559 | m_EditorHideFlags: 0 560 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 561 | m_Name: 562 | m_EditorClassIdentifier: 563 | m_FirstSelected: {fileID: 0} 564 | m_sendNavigationEvents: 1 565 | m_DragThreshold: 10 566 | --- !u!4 &670930748 567 | Transform: 568 | m_ObjectHideFlags: 0 569 | m_CorrespondingSourceObject: {fileID: 0} 570 | m_PrefabInstance: {fileID: 0} 571 | m_PrefabAsset: {fileID: 0} 572 | m_GameObject: {fileID: 670930745} 573 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 574 | m_LocalPosition: {x: 0, y: 0, z: 0} 575 | m_LocalScale: {x: 1, y: 1, z: 1} 576 | m_Children: [] 577 | m_Father: {fileID: 0} 578 | m_RootOrder: 2 579 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 580 | --- !u!1 &722230454 581 | GameObject: 582 | m_ObjectHideFlags: 0 583 | m_CorrespondingSourceObject: {fileID: 0} 584 | m_PrefabInstance: {fileID: 0} 585 | m_PrefabAsset: {fileID: 0} 586 | serializedVersion: 6 587 | m_Component: 588 | - component: {fileID: 722230455} 589 | - component: {fileID: 722230458} 590 | - component: {fileID: 722230459} 591 | - component: {fileID: 722230457} 592 | - component: {fileID: 722230456} 593 | m_Layer: 5 594 | m_Name: Bottom 595 | m_TagString: Untagged 596 | m_Icon: {fileID: 0} 597 | m_NavMeshLayer: 0 598 | m_StaticEditorFlags: 0 599 | m_IsActive: 1 600 | --- !u!224 &722230455 601 | RectTransform: 602 | m_ObjectHideFlags: 8 603 | m_CorrespondingSourceObject: {fileID: 0} 604 | m_PrefabInstance: {fileID: 0} 605 | m_PrefabAsset: {fileID: 0} 606 | m_GameObject: {fileID: 722230454} 607 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 608 | m_LocalPosition: {x: 0, y: 0, z: 0} 609 | m_LocalScale: {x: 1, y: 1, z: 1} 610 | m_Children: [] 611 | m_Father: {fileID: 485179867} 612 | m_RootOrder: 1 613 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 614 | m_AnchorMin: {x: 0.5, y: 0.5} 615 | m_AnchorMax: {x: 0.5, y: 0.5} 616 | m_AnchoredPosition: {x: 0, y: 0} 617 | m_SizeDelta: {x: 0, y: 0} 618 | m_Pivot: {x: 0.5, y: 0.5} 619 | --- !u!114 &722230456 620 | MonoBehaviour: 621 | m_ObjectHideFlags: 0 622 | m_CorrespondingSourceObject: {fileID: 0} 623 | m_PrefabInstance: {fileID: 0} 624 | m_PrefabAsset: {fileID: 0} 625 | m_GameObject: {fileID: 722230454} 626 | m_Enabled: 1 627 | m_EditorHideFlags: 0 628 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 629 | m_Name: 630 | m_EditorClassIdentifier: 631 | m_Material: {fileID: 0} 632 | m_Color: {r: 0, g: 0, b: 0, a: 0.2509804} 633 | m_RaycastTarget: 1 634 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 635 | m_Maskable: 1 636 | m_OnCullStateChanged: 637 | m_PersistentCalls: 638 | m_Calls: [] 639 | m_Sprite: {fileID: 0} 640 | m_Type: 0 641 | m_PreserveAspect: 0 642 | m_FillCenter: 1 643 | m_FillMethod: 4 644 | m_FillAmount: 1 645 | m_FillClockwise: 1 646 | m_FillOrigin: 0 647 | m_UseSpriteMesh: 0 648 | m_PixelsPerUnitMultiplier: 1 649 | --- !u!222 &722230457 650 | CanvasRenderer: 651 | m_ObjectHideFlags: 0 652 | m_CorrespondingSourceObject: {fileID: 0} 653 | m_PrefabInstance: {fileID: 0} 654 | m_PrefabAsset: {fileID: 0} 655 | m_GameObject: {fileID: 722230454} 656 | m_CullTransparentMesh: 0 657 | --- !u!114 &722230458 658 | MonoBehaviour: 659 | m_ObjectHideFlags: 0 660 | m_CorrespondingSourceObject: {fileID: 0} 661 | m_PrefabInstance: {fileID: 0} 662 | m_PrefabAsset: {fileID: 0} 663 | m_GameObject: {fileID: 722230454} 664 | m_Enabled: 1 665 | m_EditorHideFlags: 0 666 | m_Script: {fileID: 11500000, guid: 7d3c731ce855a4745aee79e1634abb0b, type: 3} 667 | m_Name: 668 | m_EditorClassIdentifier: 669 | _position: 1 670 | --- !u!114 &722230459 671 | MonoBehaviour: 672 | m_ObjectHideFlags: 0 673 | m_CorrespondingSourceObject: {fileID: 0} 674 | m_PrefabInstance: {fileID: 0} 675 | m_PrefabAsset: {fileID: 0} 676 | m_GameObject: {fileID: 722230454} 677 | m_Enabled: 1 678 | m_EditorHideFlags: 0 679 | m_Script: {fileID: 11500000, guid: 5fc15d043ab524fe98fc239415aa9c8e, type: 3} 680 | m_Name: 681 | m_EditorClassIdentifier: 682 | --- !u!1 &738671943 683 | GameObject: 684 | m_ObjectHideFlags: 0 685 | m_CorrespondingSourceObject: {fileID: 0} 686 | m_PrefabInstance: {fileID: 0} 687 | m_PrefabAsset: {fileID: 0} 688 | serializedVersion: 6 689 | m_Component: 690 | - component: {fileID: 738671944} 691 | - component: {fileID: 738671947} 692 | - component: {fileID: 738671948} 693 | - component: {fileID: 738671946} 694 | - component: {fileID: 738671945} 695 | m_Layer: 5 696 | m_Name: Left 697 | m_TagString: Untagged 698 | m_Icon: {fileID: 0} 699 | m_NavMeshLayer: 0 700 | m_StaticEditorFlags: 0 701 | m_IsActive: 1 702 | --- !u!224 &738671944 703 | RectTransform: 704 | m_ObjectHideFlags: 8 705 | m_CorrespondingSourceObject: {fileID: 0} 706 | m_PrefabInstance: {fileID: 0} 707 | m_PrefabAsset: {fileID: 0} 708 | m_GameObject: {fileID: 738671943} 709 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 710 | m_LocalPosition: {x: 0, y: 0, z: 0} 711 | m_LocalScale: {x: 1, y: 1, z: 1} 712 | m_Children: [] 713 | m_Father: {fileID: 485179867} 714 | m_RootOrder: 2 715 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 716 | m_AnchorMin: {x: 0.5, y: 0.5} 717 | m_AnchorMax: {x: 0.5, y: 0.5} 718 | m_AnchoredPosition: {x: 0, y: 0} 719 | m_SizeDelta: {x: 0, y: 0} 720 | m_Pivot: {x: 0.5, y: 0.5} 721 | --- !u!114 &738671945 722 | MonoBehaviour: 723 | m_ObjectHideFlags: 0 724 | m_CorrespondingSourceObject: {fileID: 0} 725 | m_PrefabInstance: {fileID: 0} 726 | m_PrefabAsset: {fileID: 0} 727 | m_GameObject: {fileID: 738671943} 728 | m_Enabled: 1 729 | m_EditorHideFlags: 0 730 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 731 | m_Name: 732 | m_EditorClassIdentifier: 733 | m_Material: {fileID: 0} 734 | m_Color: {r: 0, g: 0, b: 0, a: 0.2509804} 735 | m_RaycastTarget: 1 736 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 737 | m_Maskable: 1 738 | m_OnCullStateChanged: 739 | m_PersistentCalls: 740 | m_Calls: [] 741 | m_Sprite: {fileID: 0} 742 | m_Type: 0 743 | m_PreserveAspect: 0 744 | m_FillCenter: 1 745 | m_FillMethod: 4 746 | m_FillAmount: 1 747 | m_FillClockwise: 1 748 | m_FillOrigin: 0 749 | m_UseSpriteMesh: 0 750 | m_PixelsPerUnitMultiplier: 1 751 | --- !u!222 &738671946 752 | CanvasRenderer: 753 | m_ObjectHideFlags: 0 754 | m_CorrespondingSourceObject: {fileID: 0} 755 | m_PrefabInstance: {fileID: 0} 756 | m_PrefabAsset: {fileID: 0} 757 | m_GameObject: {fileID: 738671943} 758 | m_CullTransparentMesh: 0 759 | --- !u!114 &738671947 760 | MonoBehaviour: 761 | m_ObjectHideFlags: 0 762 | m_CorrespondingSourceObject: {fileID: 0} 763 | m_PrefabInstance: {fileID: 0} 764 | m_PrefabAsset: {fileID: 0} 765 | m_GameObject: {fileID: 738671943} 766 | m_Enabled: 1 767 | m_EditorHideFlags: 0 768 | m_Script: {fileID: 11500000, guid: 7d3c731ce855a4745aee79e1634abb0b, type: 3} 769 | m_Name: 770 | m_EditorClassIdentifier: 771 | _position: 2 772 | --- !u!114 &738671948 773 | MonoBehaviour: 774 | m_ObjectHideFlags: 0 775 | m_CorrespondingSourceObject: {fileID: 0} 776 | m_PrefabInstance: {fileID: 0} 777 | m_PrefabAsset: {fileID: 0} 778 | m_GameObject: {fileID: 738671943} 779 | m_Enabled: 1 780 | m_EditorHideFlags: 0 781 | m_Script: {fileID: 11500000, guid: 5fc15d043ab524fe98fc239415aa9c8e, type: 3} 782 | m_Name: 783 | m_EditorClassIdentifier: 784 | --- !u!1 &820700906 785 | GameObject: 786 | m_ObjectHideFlags: 0 787 | m_CorrespondingSourceObject: {fileID: 0} 788 | m_PrefabInstance: {fileID: 0} 789 | m_PrefabAsset: {fileID: 0} 790 | serializedVersion: 6 791 | m_Component: 792 | - component: {fileID: 820700907} 793 | - component: {fileID: 820700909} 794 | - component: {fileID: 820700908} 795 | m_Layer: 5 796 | m_Name: TopLeft 797 | m_TagString: Untagged 798 | m_Icon: {fileID: 0} 799 | m_NavMeshLayer: 0 800 | m_StaticEditorFlags: 0 801 | m_IsActive: 1 802 | --- !u!224 &820700907 803 | RectTransform: 804 | m_ObjectHideFlags: 0 805 | m_CorrespondingSourceObject: {fileID: 0} 806 | m_PrefabInstance: {fileID: 0} 807 | m_PrefabAsset: {fileID: 0} 808 | m_GameObject: {fileID: 820700906} 809 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 810 | m_LocalPosition: {x: 0, y: 0, z: 0} 811 | m_LocalScale: {x: 1, y: 1, z: 1} 812 | m_Children: [] 813 | m_Father: {fileID: 637596075} 814 | m_RootOrder: 0 815 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 816 | m_AnchorMin: {x: 0, y: 1} 817 | m_AnchorMax: {x: 0, y: 1} 818 | m_AnchoredPosition: {x: 50, y: -50} 819 | m_SizeDelta: {x: 100, y: 100} 820 | m_Pivot: {x: 0.5, y: 0.5} 821 | --- !u!114 &820700908 822 | MonoBehaviour: 823 | m_ObjectHideFlags: 0 824 | m_CorrespondingSourceObject: {fileID: 0} 825 | m_PrefabInstance: {fileID: 0} 826 | m_PrefabAsset: {fileID: 0} 827 | m_GameObject: {fileID: 820700906} 828 | m_Enabled: 1 829 | m_EditorHideFlags: 0 830 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 831 | m_Name: 832 | m_EditorClassIdentifier: 833 | m_Material: {fileID: 0} 834 | m_Color: {r: 1, g: 0, b: 0, a: 1} 835 | m_RaycastTarget: 1 836 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 837 | m_Maskable: 1 838 | m_OnCullStateChanged: 839 | m_PersistentCalls: 840 | m_Calls: [] 841 | m_Sprite: {fileID: 0} 842 | m_Type: 0 843 | m_PreserveAspect: 0 844 | m_FillCenter: 1 845 | m_FillMethod: 4 846 | m_FillAmount: 1 847 | m_FillClockwise: 1 848 | m_FillOrigin: 0 849 | m_UseSpriteMesh: 0 850 | m_PixelsPerUnitMultiplier: 1 851 | --- !u!222 &820700909 852 | CanvasRenderer: 853 | m_ObjectHideFlags: 0 854 | m_CorrespondingSourceObject: {fileID: 0} 855 | m_PrefabInstance: {fileID: 0} 856 | m_PrefabAsset: {fileID: 0} 857 | m_GameObject: {fileID: 820700906} 858 | m_CullTransparentMesh: 0 859 | --- !u!1 &828185024 860 | GameObject: 861 | m_ObjectHideFlags: 0 862 | m_CorrespondingSourceObject: {fileID: 0} 863 | m_PrefabInstance: {fileID: 0} 864 | m_PrefabAsset: {fileID: 0} 865 | serializedVersion: 6 866 | m_Component: 867 | - component: {fileID: 828185025} 868 | - component: {fileID: 828185027} 869 | - component: {fileID: 828185026} 870 | m_Layer: 5 871 | m_Name: BottomRight 872 | m_TagString: Untagged 873 | m_Icon: {fileID: 0} 874 | m_NavMeshLayer: 0 875 | m_StaticEditorFlags: 0 876 | m_IsActive: 1 877 | --- !u!224 &828185025 878 | RectTransform: 879 | m_ObjectHideFlags: 0 880 | m_CorrespondingSourceObject: {fileID: 0} 881 | m_PrefabInstance: {fileID: 0} 882 | m_PrefabAsset: {fileID: 0} 883 | m_GameObject: {fileID: 828185024} 884 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 885 | m_LocalPosition: {x: 0, y: 0, z: 0} 886 | m_LocalScale: {x: 1, y: 1, z: 1} 887 | m_Children: [] 888 | m_Father: {fileID: 637596075} 889 | m_RootOrder: 4 890 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 891 | m_AnchorMin: {x: 1, y: 0} 892 | m_AnchorMax: {x: 1, y: 0} 893 | m_AnchoredPosition: {x: -50, y: 50} 894 | m_SizeDelta: {x: 100, y: 100} 895 | m_Pivot: {x: 0.5, y: 0.5} 896 | --- !u!114 &828185026 897 | MonoBehaviour: 898 | m_ObjectHideFlags: 0 899 | m_CorrespondingSourceObject: {fileID: 0} 900 | m_PrefabInstance: {fileID: 0} 901 | m_PrefabAsset: {fileID: 0} 902 | m_GameObject: {fileID: 828185024} 903 | m_Enabled: 1 904 | m_EditorHideFlags: 0 905 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 906 | m_Name: 907 | m_EditorClassIdentifier: 908 | m_Material: {fileID: 0} 909 | m_Color: {r: 1, g: 0, b: 1, a: 1} 910 | m_RaycastTarget: 1 911 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 912 | m_Maskable: 1 913 | m_OnCullStateChanged: 914 | m_PersistentCalls: 915 | m_Calls: [] 916 | m_Sprite: {fileID: 0} 917 | m_Type: 0 918 | m_PreserveAspect: 0 919 | m_FillCenter: 1 920 | m_FillMethod: 4 921 | m_FillAmount: 1 922 | m_FillClockwise: 1 923 | m_FillOrigin: 0 924 | m_UseSpriteMesh: 0 925 | m_PixelsPerUnitMultiplier: 1 926 | --- !u!222 &828185027 927 | CanvasRenderer: 928 | m_ObjectHideFlags: 0 929 | m_CorrespondingSourceObject: {fileID: 0} 930 | m_PrefabInstance: {fileID: 0} 931 | m_PrefabAsset: {fileID: 0} 932 | m_GameObject: {fileID: 828185024} 933 | m_CullTransparentMesh: 0 934 | --- !u!1 &838011703 935 | GameObject: 936 | m_ObjectHideFlags: 0 937 | m_CorrespondingSourceObject: {fileID: 0} 938 | m_PrefabInstance: {fileID: 0} 939 | m_PrefabAsset: {fileID: 0} 940 | serializedVersion: 6 941 | m_Component: 942 | - component: {fileID: 838011704} 943 | - component: {fileID: 838011708} 944 | - component: {fileID: 838011707} 945 | - component: {fileID: 838011706} 946 | - component: {fileID: 838011705} 947 | m_Layer: 5 948 | m_Name: ScreenSampler 949 | m_TagString: Untagged 950 | m_Icon: {fileID: 0} 951 | m_NavMeshLayer: 0 952 | m_StaticEditorFlags: 0 953 | m_IsActive: 1 954 | --- !u!224 &838011704 955 | RectTransform: 956 | m_ObjectHideFlags: 0 957 | m_CorrespondingSourceObject: {fileID: 0} 958 | m_PrefabInstance: {fileID: 0} 959 | m_PrefabAsset: {fileID: 0} 960 | m_GameObject: {fileID: 838011703} 961 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 962 | m_LocalPosition: {x: 0, y: 0, z: 0} 963 | m_LocalScale: {x: 1, y: 1, z: 1} 964 | m_Children: 965 | - {fileID: 218075497} 966 | - {fileID: 2068938457} 967 | m_Father: {fileID: 637596075} 968 | m_RootOrder: 2 969 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 970 | m_AnchorMin: {x: 0, y: 0} 971 | m_AnchorMax: {x: 1, y: 1} 972 | m_AnchoredPosition: {x: 0, y: 0} 973 | m_SizeDelta: {x: 0, y: 0} 974 | m_Pivot: {x: 0.5, y: 0.5} 975 | --- !u!114 &838011705 976 | MonoBehaviour: 977 | m_ObjectHideFlags: 0 978 | m_CorrespondingSourceObject: {fileID: 0} 979 | m_PrefabInstance: {fileID: 0} 980 | m_PrefabAsset: {fileID: 0} 981 | m_GameObject: {fileID: 838011703} 982 | m_Enabled: 1 983 | m_EditorHideFlags: 0 984 | m_Script: {fileID: 11500000, guid: d199490a83bb2b844b9695cbf13b01ef, type: 3} 985 | m_Name: 986 | m_EditorClassIdentifier: 987 | m_Navigation: 988 | m_Mode: 3 989 | m_WrapAround: 0 990 | m_SelectOnUp: {fileID: 0} 991 | m_SelectOnDown: {fileID: 0} 992 | m_SelectOnLeft: {fileID: 0} 993 | m_SelectOnRight: {fileID: 0} 994 | m_Transition: 1 995 | m_Colors: 996 | m_NormalColor: {r: 1, g: 1, b: 1, a: 0} 997 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 0} 998 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0} 999 | m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 0} 1000 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0} 1001 | m_ColorMultiplier: 1 1002 | m_FadeDuration: 0.1 1003 | m_SpriteState: 1004 | m_HighlightedSprite: {fileID: 0} 1005 | m_PressedSprite: {fileID: 0} 1006 | m_SelectedSprite: {fileID: 0} 1007 | m_DisabledSprite: {fileID: 0} 1008 | m_AnimationTriggers: 1009 | m_NormalTrigger: Normal 1010 | m_HighlightedTrigger: Highlighted 1011 | m_PressedTrigger: Pressed 1012 | m_SelectedTrigger: Highlighted 1013 | m_DisabledTrigger: Disabled 1014 | m_Interactable: 1 1015 | m_TargetGraphic: {fileID: 838011706} 1016 | m_TextComponent: {fileID: 2068938458} 1017 | m_Placeholder: {fileID: 218075498} 1018 | m_ContentType: 0 1019 | m_InputType: 0 1020 | m_AsteriskChar: 42 1021 | m_KeyboardType: 0 1022 | m_LineType: 2 1023 | m_HideMobileInput: 0 1024 | m_CharacterValidation: 0 1025 | m_CharacterLimit: 0 1026 | m_OnEndEdit: 1027 | m_PersistentCalls: 1028 | m_Calls: [] 1029 | m_OnSubmit: 1030 | m_PersistentCalls: 1031 | m_Calls: [] 1032 | m_OnValueChanged: 1033 | m_PersistentCalls: 1034 | m_Calls: [] 1035 | m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 1036 | m_CustomCaretColor: 0 1037 | m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412} 1038 | m_Text: "Screen.size: (828.0, 1792.0)\nScreen.safeArea:\n(x:0.00, y:68.00, width:828.00, 1039 | height:1636.00)\nScreen.orientation: Portrait\nScreen.brightness: 1\nScreen.cutouts.Length: 1040 | 1\nScreen.cutouts: \n(x:184.00, y:1726.00, width:460.00, height:66.00)\n" 1041 | m_CaretBlinkRate: 0.85 1042 | m_CaretWidth: 1 1043 | m_ReadOnly: 0 1044 | m_ShouldActivateOnSelect: 1 1045 | --- !u!114 &838011706 1046 | MonoBehaviour: 1047 | m_ObjectHideFlags: 0 1048 | m_CorrespondingSourceObject: {fileID: 0} 1049 | m_PrefabInstance: {fileID: 0} 1050 | m_PrefabAsset: {fileID: 0} 1051 | m_GameObject: {fileID: 838011703} 1052 | m_Enabled: 1 1053 | m_EditorHideFlags: 0 1054 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 1055 | m_Name: 1056 | m_EditorClassIdentifier: 1057 | m_Material: {fileID: 0} 1058 | m_Color: {r: 1, g: 1, b: 1, a: 1} 1059 | m_RaycastTarget: 1 1060 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 1061 | m_Maskable: 1 1062 | m_OnCullStateChanged: 1063 | m_PersistentCalls: 1064 | m_Calls: [] 1065 | m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0} 1066 | m_Type: 1 1067 | m_PreserveAspect: 0 1068 | m_FillCenter: 1 1069 | m_FillMethod: 4 1070 | m_FillAmount: 1 1071 | m_FillClockwise: 1 1072 | m_FillOrigin: 0 1073 | m_UseSpriteMesh: 0 1074 | m_PixelsPerUnitMultiplier: 1 1075 | --- !u!222 &838011707 1076 | CanvasRenderer: 1077 | m_ObjectHideFlags: 0 1078 | m_CorrespondingSourceObject: {fileID: 0} 1079 | m_PrefabInstance: {fileID: 0} 1080 | m_PrefabAsset: {fileID: 0} 1081 | m_GameObject: {fileID: 838011703} 1082 | m_CullTransparentMesh: 0 1083 | --- !u!114 &838011708 1084 | MonoBehaviour: 1085 | m_ObjectHideFlags: 0 1086 | m_CorrespondingSourceObject: {fileID: 0} 1087 | m_PrefabInstance: {fileID: 0} 1088 | m_PrefabAsset: {fileID: 0} 1089 | m_GameObject: {fileID: 838011703} 1090 | m_Enabled: 1 1091 | m_EditorHideFlags: 0 1092 | m_Script: {fileID: 11500000, guid: 9555a2a8bb7b0487a8536d756747009a, type: 3} 1093 | m_Name: 1094 | m_EditorClassIdentifier: 1095 | _inputField: {fileID: 838011705} 1096 | --- !u!1 &1208069480 1097 | GameObject: 1098 | m_ObjectHideFlags: 0 1099 | m_CorrespondingSourceObject: {fileID: 0} 1100 | m_PrefabInstance: {fileID: 0} 1101 | m_PrefabAsset: {fileID: 0} 1102 | serializedVersion: 6 1103 | m_Component: 1104 | - component: {fileID: 1208069481} 1105 | - component: {fileID: 1208069483} 1106 | - component: {fileID: 1208069482} 1107 | m_Layer: 5 1108 | m_Name: TopRight 1109 | m_TagString: Untagged 1110 | m_Icon: {fileID: 0} 1111 | m_NavMeshLayer: 0 1112 | m_StaticEditorFlags: 0 1113 | m_IsActive: 1 1114 | --- !u!224 &1208069481 1115 | RectTransform: 1116 | m_ObjectHideFlags: 0 1117 | m_CorrespondingSourceObject: {fileID: 0} 1118 | m_PrefabInstance: {fileID: 0} 1119 | m_PrefabAsset: {fileID: 0} 1120 | m_GameObject: {fileID: 1208069480} 1121 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 1122 | m_LocalPosition: {x: 0, y: 0, z: 0} 1123 | m_LocalScale: {x: 1, y: 1, z: 1} 1124 | m_Children: [] 1125 | m_Father: {fileID: 637596075} 1126 | m_RootOrder: 1 1127 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1128 | m_AnchorMin: {x: 1, y: 1} 1129 | m_AnchorMax: {x: 1, y: 1} 1130 | m_AnchoredPosition: {x: -50, y: -50} 1131 | m_SizeDelta: {x: 100, y: 100} 1132 | m_Pivot: {x: 0.5, y: 0.5} 1133 | --- !u!114 &1208069482 1134 | MonoBehaviour: 1135 | m_ObjectHideFlags: 0 1136 | m_CorrespondingSourceObject: {fileID: 0} 1137 | m_PrefabInstance: {fileID: 0} 1138 | m_PrefabAsset: {fileID: 0} 1139 | m_GameObject: {fileID: 1208069480} 1140 | m_Enabled: 1 1141 | m_EditorHideFlags: 0 1142 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 1143 | m_Name: 1144 | m_EditorClassIdentifier: 1145 | m_Material: {fileID: 0} 1146 | m_Color: {r: 0, g: 0, b: 1, a: 1} 1147 | m_RaycastTarget: 1 1148 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 1149 | m_Maskable: 1 1150 | m_OnCullStateChanged: 1151 | m_PersistentCalls: 1152 | m_Calls: [] 1153 | m_Sprite: {fileID: 0} 1154 | m_Type: 0 1155 | m_PreserveAspect: 0 1156 | m_FillCenter: 1 1157 | m_FillMethod: 4 1158 | m_FillAmount: 1 1159 | m_FillClockwise: 1 1160 | m_FillOrigin: 0 1161 | m_UseSpriteMesh: 0 1162 | m_PixelsPerUnitMultiplier: 1 1163 | --- !u!222 &1208069483 1164 | CanvasRenderer: 1165 | m_ObjectHideFlags: 0 1166 | m_CorrespondingSourceObject: {fileID: 0} 1167 | m_PrefabInstance: {fileID: 0} 1168 | m_PrefabAsset: {fileID: 0} 1169 | m_GameObject: {fileID: 1208069480} 1170 | m_CullTransparentMesh: 0 1171 | --- !u!1 &1464979073 1172 | GameObject: 1173 | m_ObjectHideFlags: 0 1174 | m_CorrespondingSourceObject: {fileID: 0} 1175 | m_PrefabInstance: {fileID: 0} 1176 | m_PrefabAsset: {fileID: 0} 1177 | serializedVersion: 6 1178 | m_Component: 1179 | - component: {fileID: 1464979074} 1180 | - component: {fileID: 1464979076} 1181 | - component: {fileID: 1464979075} 1182 | m_Layer: 5 1183 | m_Name: BottomLeft 1184 | m_TagString: Untagged 1185 | m_Icon: {fileID: 0} 1186 | m_NavMeshLayer: 0 1187 | m_StaticEditorFlags: 0 1188 | m_IsActive: 1 1189 | --- !u!224 &1464979074 1190 | RectTransform: 1191 | m_ObjectHideFlags: 0 1192 | m_CorrespondingSourceObject: {fileID: 0} 1193 | m_PrefabInstance: {fileID: 0} 1194 | m_PrefabAsset: {fileID: 0} 1195 | m_GameObject: {fileID: 1464979073} 1196 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 1197 | m_LocalPosition: {x: 0, y: 0, z: 0} 1198 | m_LocalScale: {x: 1, y: 1, z: 1} 1199 | m_Children: [] 1200 | m_Father: {fileID: 637596075} 1201 | m_RootOrder: 3 1202 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1203 | m_AnchorMin: {x: 0, y: 0} 1204 | m_AnchorMax: {x: 0, y: 0} 1205 | m_AnchoredPosition: {x: 50, y: 50} 1206 | m_SizeDelta: {x: 100, y: 100} 1207 | m_Pivot: {x: 0.5, y: 0.5} 1208 | --- !u!114 &1464979075 1209 | MonoBehaviour: 1210 | m_ObjectHideFlags: 0 1211 | m_CorrespondingSourceObject: {fileID: 0} 1212 | m_PrefabInstance: {fileID: 0} 1213 | m_PrefabAsset: {fileID: 0} 1214 | m_GameObject: {fileID: 1464979073} 1215 | m_Enabled: 1 1216 | m_EditorHideFlags: 0 1217 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 1218 | m_Name: 1219 | m_EditorClassIdentifier: 1220 | m_Material: {fileID: 0} 1221 | m_Color: {r: 1, g: 1, b: 0, a: 1} 1222 | m_RaycastTarget: 1 1223 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 1224 | m_Maskable: 1 1225 | m_OnCullStateChanged: 1226 | m_PersistentCalls: 1227 | m_Calls: [] 1228 | m_Sprite: {fileID: 0} 1229 | m_Type: 0 1230 | m_PreserveAspect: 0 1231 | m_FillCenter: 1 1232 | m_FillMethod: 4 1233 | m_FillAmount: 1 1234 | m_FillClockwise: 1 1235 | m_FillOrigin: 0 1236 | m_UseSpriteMesh: 0 1237 | m_PixelsPerUnitMultiplier: 1 1238 | --- !u!222 &1464979076 1239 | CanvasRenderer: 1240 | m_ObjectHideFlags: 0 1241 | m_CorrespondingSourceObject: {fileID: 0} 1242 | m_PrefabInstance: {fileID: 0} 1243 | m_PrefabAsset: {fileID: 0} 1244 | m_GameObject: {fileID: 1464979073} 1245 | m_CullTransparentMesh: 0 1246 | --- !u!1 &1577109241 1247 | GameObject: 1248 | m_ObjectHideFlags: 0 1249 | m_CorrespondingSourceObject: {fileID: 0} 1250 | m_PrefabInstance: {fileID: 0} 1251 | m_PrefabAsset: {fileID: 0} 1252 | serializedVersion: 6 1253 | m_Component: 1254 | - component: {fileID: 1577109244} 1255 | - component: {fileID: 1577109243} 1256 | - component: {fileID: 1577109242} 1257 | m_Layer: 0 1258 | m_Name: Main Camera 1259 | m_TagString: MainCamera 1260 | m_Icon: {fileID: 0} 1261 | m_NavMeshLayer: 0 1262 | m_StaticEditorFlags: 0 1263 | m_IsActive: 1 1264 | --- !u!81 &1577109242 1265 | AudioListener: 1266 | m_ObjectHideFlags: 0 1267 | m_CorrespondingSourceObject: {fileID: 0} 1268 | m_PrefabInstance: {fileID: 0} 1269 | m_PrefabAsset: {fileID: 0} 1270 | m_GameObject: {fileID: 1577109241} 1271 | m_Enabled: 1 1272 | --- !u!20 &1577109243 1273 | Camera: 1274 | m_ObjectHideFlags: 0 1275 | m_CorrespondingSourceObject: {fileID: 0} 1276 | m_PrefabInstance: {fileID: 0} 1277 | m_PrefabAsset: {fileID: 0} 1278 | m_GameObject: {fileID: 1577109241} 1279 | m_Enabled: 1 1280 | serializedVersion: 2 1281 | m_ClearFlags: 1 1282 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 1283 | m_projectionMatrixMode: 1 1284 | m_GateFitMode: 2 1285 | m_FOVAxisMode: 0 1286 | m_SensorSize: {x: 36, y: 24} 1287 | m_LensShift: {x: 0, y: 0} 1288 | m_FocalLength: 50 1289 | m_NormalizedViewPortRect: 1290 | serializedVersion: 2 1291 | x: 0 1292 | y: 0 1293 | width: 1 1294 | height: 1 1295 | near clip plane: 0.3 1296 | far clip plane: 1000 1297 | field of view: 60 1298 | orthographic: 1 1299 | orthographic size: 5 1300 | m_Depth: -1 1301 | m_CullingMask: 1302 | serializedVersion: 2 1303 | m_Bits: 4294967295 1304 | m_RenderingPath: -1 1305 | m_TargetTexture: {fileID: 0} 1306 | m_TargetDisplay: 0 1307 | m_TargetEye: 3 1308 | m_HDR: 1 1309 | m_AllowMSAA: 1 1310 | m_AllowDynamicResolution: 0 1311 | m_ForceIntoRT: 0 1312 | m_OcclusionCulling: 1 1313 | m_StereoConvergence: 10 1314 | m_StereoSeparation: 0.022 1315 | --- !u!4 &1577109244 1316 | Transform: 1317 | m_ObjectHideFlags: 0 1318 | m_CorrespondingSourceObject: {fileID: 0} 1319 | m_PrefabInstance: {fileID: 0} 1320 | m_PrefabAsset: {fileID: 0} 1321 | m_GameObject: {fileID: 1577109241} 1322 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1323 | m_LocalPosition: {x: 0, y: 0, z: -10} 1324 | m_LocalScale: {x: 1, y: 1, z: 1} 1325 | m_Children: [] 1326 | m_Father: {fileID: 0} 1327 | m_RootOrder: 0 1328 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1329 | --- !u!1 &1924300563 1330 | GameObject: 1331 | m_ObjectHideFlags: 0 1332 | m_CorrespondingSourceObject: {fileID: 0} 1333 | m_PrefabInstance: {fileID: 0} 1334 | m_PrefabAsset: {fileID: 0} 1335 | serializedVersion: 6 1336 | m_Component: 1337 | - component: {fileID: 1924300564} 1338 | - component: {fileID: 1924300567} 1339 | - component: {fileID: 1924300568} 1340 | - component: {fileID: 1924300566} 1341 | - component: {fileID: 1924300565} 1342 | m_Layer: 5 1343 | m_Name: Right 1344 | m_TagString: Untagged 1345 | m_Icon: {fileID: 0} 1346 | m_NavMeshLayer: 0 1347 | m_StaticEditorFlags: 0 1348 | m_IsActive: 1 1349 | --- !u!224 &1924300564 1350 | RectTransform: 1351 | m_ObjectHideFlags: 8 1352 | m_CorrespondingSourceObject: {fileID: 0} 1353 | m_PrefabInstance: {fileID: 0} 1354 | m_PrefabAsset: {fileID: 0} 1355 | m_GameObject: {fileID: 1924300563} 1356 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1357 | m_LocalPosition: {x: 0, y: 0, z: 0} 1358 | m_LocalScale: {x: 1, y: 1, z: 1} 1359 | m_Children: [] 1360 | m_Father: {fileID: 485179867} 1361 | m_RootOrder: 3 1362 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1363 | m_AnchorMin: {x: 0.5, y: 0.5} 1364 | m_AnchorMax: {x: 0.5, y: 0.5} 1365 | m_AnchoredPosition: {x: 0, y: 0} 1366 | m_SizeDelta: {x: 0, y: 0} 1367 | m_Pivot: {x: 0.5, y: 0.5} 1368 | --- !u!114 &1924300565 1369 | MonoBehaviour: 1370 | m_ObjectHideFlags: 0 1371 | m_CorrespondingSourceObject: {fileID: 0} 1372 | m_PrefabInstance: {fileID: 0} 1373 | m_PrefabAsset: {fileID: 0} 1374 | m_GameObject: {fileID: 1924300563} 1375 | m_Enabled: 1 1376 | m_EditorHideFlags: 0 1377 | m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} 1378 | m_Name: 1379 | m_EditorClassIdentifier: 1380 | m_Material: {fileID: 0} 1381 | m_Color: {r: 0, g: 0, b: 0, a: 0.2509804} 1382 | m_RaycastTarget: 1 1383 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 1384 | m_Maskable: 1 1385 | m_OnCullStateChanged: 1386 | m_PersistentCalls: 1387 | m_Calls: [] 1388 | m_Sprite: {fileID: 0} 1389 | m_Type: 0 1390 | m_PreserveAspect: 0 1391 | m_FillCenter: 1 1392 | m_FillMethod: 4 1393 | m_FillAmount: 1 1394 | m_FillClockwise: 1 1395 | m_FillOrigin: 0 1396 | m_UseSpriteMesh: 0 1397 | m_PixelsPerUnitMultiplier: 1 1398 | --- !u!222 &1924300566 1399 | CanvasRenderer: 1400 | m_ObjectHideFlags: 0 1401 | m_CorrespondingSourceObject: {fileID: 0} 1402 | m_PrefabInstance: {fileID: 0} 1403 | m_PrefabAsset: {fileID: 0} 1404 | m_GameObject: {fileID: 1924300563} 1405 | m_CullTransparentMesh: 0 1406 | --- !u!114 &1924300567 1407 | MonoBehaviour: 1408 | m_ObjectHideFlags: 0 1409 | m_CorrespondingSourceObject: {fileID: 0} 1410 | m_PrefabInstance: {fileID: 0} 1411 | m_PrefabAsset: {fileID: 0} 1412 | m_GameObject: {fileID: 1924300563} 1413 | m_Enabled: 1 1414 | m_EditorHideFlags: 0 1415 | m_Script: {fileID: 11500000, guid: 7d3c731ce855a4745aee79e1634abb0b, type: 3} 1416 | m_Name: 1417 | m_EditorClassIdentifier: 1418 | _position: 3 1419 | --- !u!114 &1924300568 1420 | MonoBehaviour: 1421 | m_ObjectHideFlags: 0 1422 | m_CorrespondingSourceObject: {fileID: 0} 1423 | m_PrefabInstance: {fileID: 0} 1424 | m_PrefabAsset: {fileID: 0} 1425 | m_GameObject: {fileID: 1924300563} 1426 | m_Enabled: 1 1427 | m_EditorHideFlags: 0 1428 | m_Script: {fileID: 11500000, guid: 5fc15d043ab524fe98fc239415aa9c8e, type: 3} 1429 | m_Name: 1430 | m_EditorClassIdentifier: 1431 | --- !u!1 &2068938456 1432 | GameObject: 1433 | m_ObjectHideFlags: 0 1434 | m_CorrespondingSourceObject: {fileID: 0} 1435 | m_PrefabInstance: {fileID: 0} 1436 | m_PrefabAsset: {fileID: 0} 1437 | serializedVersion: 6 1438 | m_Component: 1439 | - component: {fileID: 2068938457} 1440 | - component: {fileID: 2068938459} 1441 | - component: {fileID: 2068938458} 1442 | m_Layer: 5 1443 | m_Name: Text 1444 | m_TagString: Untagged 1445 | m_Icon: {fileID: 0} 1446 | m_NavMeshLayer: 0 1447 | m_StaticEditorFlags: 0 1448 | m_IsActive: 1 1449 | --- !u!224 &2068938457 1450 | RectTransform: 1451 | m_ObjectHideFlags: 0 1452 | m_CorrespondingSourceObject: {fileID: 0} 1453 | m_PrefabInstance: {fileID: 0} 1454 | m_PrefabAsset: {fileID: 0} 1455 | m_GameObject: {fileID: 2068938456} 1456 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 1457 | m_LocalPosition: {x: 0, y: 0, z: 0} 1458 | m_LocalScale: {x: 1, y: 1, z: 1} 1459 | m_Children: [] 1460 | m_Father: {fileID: 838011704} 1461 | m_RootOrder: 1 1462 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 1463 | m_AnchorMin: {x: 0, y: 0} 1464 | m_AnchorMax: {x: 1, y: 1} 1465 | m_AnchoredPosition: {x: 0, y: -0.5} 1466 | m_SizeDelta: {x: -20, y: -13} 1467 | m_Pivot: {x: 0.5, y: 0.5} 1468 | --- !u!114 &2068938458 1469 | MonoBehaviour: 1470 | m_ObjectHideFlags: 0 1471 | m_CorrespondingSourceObject: {fileID: 0} 1472 | m_PrefabInstance: {fileID: 0} 1473 | m_PrefabAsset: {fileID: 0} 1474 | m_GameObject: {fileID: 2068938456} 1475 | m_Enabled: 1 1476 | m_EditorHideFlags: 0 1477 | m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} 1478 | m_Name: 1479 | m_EditorClassIdentifier: 1480 | m_Material: {fileID: 0} 1481 | m_Color: {r: 1, g: 1, b: 1, a: 1} 1482 | m_RaycastTarget: 1 1483 | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} 1484 | m_Maskable: 1 1485 | m_OnCullStateChanged: 1486 | m_PersistentCalls: 1487 | m_Calls: [] 1488 | m_FontData: 1489 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 1490 | m_FontSize: 14 1491 | m_FontStyle: 0 1492 | m_BestFit: 1 1493 | m_MinSize: 10 1494 | m_MaxSize: 30 1495 | m_Alignment: 3 1496 | m_AlignByGeometry: 0 1497 | m_RichText: 0 1498 | m_HorizontalOverflow: 0 1499 | m_VerticalOverflow: 0 1500 | m_LineSpacing: 1 1501 | m_Text: "Screen.size: (828.0, 1792.0)\nScreen.safeArea:\n(x:0.00, y:68.00, width:828.00, 1502 | height:1636.00)\nScreen.orientation: Portrait\nScreen.brightness: 1\nScreen.cutouts.Length: 1503 | 1\nScreen.cutouts: \n(x:184.00, y:1726.00, width:460.00, height:66.00)\n" 1504 | --- !u!222 &2068938459 1505 | CanvasRenderer: 1506 | m_ObjectHideFlags: 0 1507 | m_CorrespondingSourceObject: {fileID: 0} 1508 | m_PrefabInstance: {fileID: 0} 1509 | m_PrefabAsset: {fileID: 0} 1510 | m_GameObject: {fileID: 2068938456} 1511 | m_CullTransparentMesh: 0 1512 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Samples~/Demo/Demo.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ed363cef7b41484a83669fbb18e175f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Samples~/Demo/ScreenSampler.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using System.Text; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace Jagapippi.AutoScreen.Demos 7 | { 8 | [ExecuteAlways] 9 | public class ScreenSampler : MonoBehaviour 10 | { 11 | [SerializeField] private InputField _inputField = null; 12 | 13 | void Update() 14 | { 15 | var builder = new StringBuilder(); 16 | 17 | builder.Append($"Screen.size: {new Vector2(Screen.width, Screen.height)}\n"); 18 | builder.Append($"Screen.safeArea:\n{Screen.safeArea}\n"); 19 | builder.Append($"Screen.orientation: {Screen.orientation}\n"); 20 | builder.Append($"Screen.brightness: {Screen.brightness}\n"); // 1 in editor 21 | builder.Append($"Screen.cutouts.Length: {Screen.cutouts.Length}\n"); 22 | builder.Append($"Screen.cutouts: \n{string.Join(",\n", Screen.cutouts.Select(c => c.ToString()).ToList())}\n"); 23 | 24 | _inputField.text = builder.ToString(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Samples~/Demo/ScreenSampler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9555a2a8bb7b0487a8536d756747009a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb552929bc489416a9f6a9226a36eb35 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15b446e0a585a411285bb32f953f9ada 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/EnumFlagsAttributeDrawer.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace Jagapippi.AutoScreen 6 | { 7 | [CustomPropertyDrawer(typeof(EnumFlagsAttribute))] 8 | public class EnumFlagsAttributeDrawer : PropertyDrawer 9 | { 10 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) 11 | { 12 | property.intValue = EditorGUI.MaskField(position, label, property.intValue, property.enumNames); 13 | } 14 | } 15 | } 16 | #endif 17 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/EnumFlagsAttributeDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fb65e521c8474085ae40af40f832605 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/SafeAreaPrefabPostprocessor.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using System.IO; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace Jagapippi.AutoScreen 7 | { 8 | class SafeAreaPrefabPostprocessor : AssetPostprocessor 9 | { 10 | static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) 11 | { 12 | foreach (var path in importedAssets) 13 | { 14 | if (Path.GetExtension(path) != ".prefab") continue; 15 | 16 | var prefab = AssetDatabase.LoadAssetAtPath(path); 17 | var isDirty = false; 18 | 19 | foreach (var safeArea in prefab.GetComponentsInChildren(true)) 20 | { 21 | safeArea.ResetRect(); 22 | isDirty = true; 23 | } 24 | 25 | if (isDirty) 26 | { 27 | EditorUtility.SetDirty(prefab); 28 | #if UNITY_2021_2_OR_NEWER 29 | AssetDatabase.SaveAssetIfDirty(prefab); 30 | #else 31 | AssetDatabase.SaveAssets(); 32 | #endif 33 | } 34 | } 35 | } 36 | } 37 | } 38 | #endif 39 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/SafeAreaPrefabPostprocessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 344de7226826847c1b3c79af204971df 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/ShimManagerEvent.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using System; 3 | using UnityEditor; 4 | using UnityScreen = UnityEngine.Screen; 5 | 6 | namespace Jagapippi.AutoScreen 7 | { 8 | internal static class ShimManagerEvent 9 | { 10 | public static event Action onActiveShimChanged; 11 | 12 | private static object _activeScreenShim; 13 | 14 | [InitializeOnLoadMethod] 15 | static void Initialize() 16 | { 17 | _activeScreenShim = ShimManagerProxy.GetActiveScreenShim(); 18 | 19 | EditorApplication.update -= OnUpdate; 20 | EditorApplication.update += OnUpdate; 21 | } 22 | 23 | private static void OnUpdate() 24 | { 25 | var currentActiveScreenShim = ShimManagerProxy.GetActiveScreenShim(); 26 | 27 | if (_activeScreenShim != currentActiveScreenShim) 28 | { 29 | _activeScreenShim = currentActiveScreenShim; 30 | onActiveShimChanged?.Invoke(); 31 | } 32 | } 33 | } 34 | } 35 | #endif 36 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/ShimManagerEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a71de629d98f4d388d2d6a81e83a3330 3 | timeCreated: 1663230226 -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/ShimManagerProxy.cs: -------------------------------------------------------------------------------- 1 | #if !UNITY_2021_1 && !UNITY_2021_2_0 && !UNITY_2021_2_1 && !UNITY_2021_2_2 && !UNITY_2021_2_3 && !UNITY_2021_2_4 && !UNITY_2021_2_5 && !UNITY_2021_2_6 && !UNITY_2021_2_7 2 | #define UNITY_2021_2_8_OR_NEWER 3 | #endif 4 | 5 | #if UNITY_EDITOR 6 | using System; 7 | using System.Linq; 8 | using System.Reflection; 9 | using UnityScreen = UnityEngine.Screen; 10 | 11 | namespace Jagapippi.AutoScreen 12 | { 13 | internal static class ShimManagerProxy 14 | { 15 | private const string AssemblyName = "UnityEditor.DeviceSimulatorModule"; 16 | 17 | private static readonly Type ShimManagerType = Assembly.Load("UnityEngine.dll").GetType("UnityEngine.ShimManager"); 18 | private static readonly FieldInfo ActiveScreenShimFieldInfo = ShimManagerType.GetField("s_ActiveScreenShim", BindingFlags.Static | BindingFlags.NonPublic); 19 | private static readonly PropertyInfo WidthPropertyInfo; 20 | private static readonly PropertyInfo HeightPropertyInfo; 21 | 22 | static ShimManagerProxy() 23 | { 24 | var screenSimulationType = AppDomain.CurrentDomain.GetAssemblies() 25 | .Where(assembly => assembly.GetName().Name == AssemblyName) 26 | .Select(assembly => assembly.GetType("UnityEditor.DeviceSimulation.ScreenSimulation")) 27 | .First(); 28 | 29 | WidthPropertyInfo = screenSimulationType.GetProperty( 30 | #if UNITY_2021_2_8_OR_NEWER 31 | "width" 32 | #else 33 | "Width" 34 | #endif 35 | ); 36 | 37 | HeightPropertyInfo = screenSimulationType.GetProperty( 38 | #if UNITY_2021_2_8_OR_NEWER 39 | "height" 40 | #else 41 | "Height" 42 | #endif 43 | ); 44 | } 45 | 46 | public static object GetActiveScreenShim() => ActiveScreenShimFieldInfo.GetValue(null); 47 | 48 | // NOTE: ScreenSimulation#widthの値がおかしい場合があるのでScreenSimulation#Widthを参照する 49 | public static int width 50 | { 51 | get 52 | { 53 | var activeScreenShim = GetActiveScreenShim(); 54 | if (activeScreenShim == null) return UnityScreen.width; 55 | return (int)WidthPropertyInfo.GetValue(activeScreenShim); 56 | } 57 | } 58 | 59 | // NOTE: ScreenSimulation#heightの値がおかしい場合があるのでScreenSimulation#Heightを参照する 60 | public static int height 61 | { 62 | get 63 | { 64 | var activeScreenShim = GetActiveScreenShim(); 65 | if (activeScreenShim == null) return UnityScreen.height; 66 | return (int)HeightPropertyInfo.GetValue(activeScreenShim); 67 | } 68 | } 69 | } 70 | } 71 | #endif 72 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/ShimManagerProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 723de9c003614bab9fcffa7647b29225 3 | timeCreated: 1628447912 -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/SimulatorWindowEvent.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using System; 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | namespace Jagapippi.AutoScreen 7 | { 8 | public static class SimulatorWindowEvent 9 | { 10 | public static event Action onOpen; 11 | public static event Action onClose; 12 | public static event Action onFocus; 13 | public static event Action onLostFocus; 14 | public static event Action onOrientationChanged; 15 | 16 | private static bool _isOpen; 17 | private static bool _hasFocus; 18 | private static ScreenOrientation _orientation; 19 | 20 | [InitializeOnLoadMethod] 21 | static void Initialize() 22 | { 23 | _isOpen = SimulatorWindowProxy.isOpen; 24 | _hasFocus = SimulatorWindowProxy.hasFocus; 25 | _orientation = Screen.orientation; 26 | 27 | EditorApplication.update -= OnUpdate; 28 | EditorApplication.update += OnUpdate; 29 | } 30 | 31 | private static void OnUpdate() 32 | { 33 | if (_isOpen == false && SimulatorWindowProxy.isOpen) 34 | { 35 | onOpen?.Invoke(); 36 | _isOpen = true; 37 | } 38 | 39 | if (_isOpen && SimulatorWindowProxy.isOpen == false) 40 | { 41 | onClose?.Invoke(); 42 | _isOpen = false; 43 | } 44 | 45 | if ((_hasFocus == false) && SimulatorWindowProxy.hasFocus) 46 | { 47 | onFocus?.Invoke(); 48 | _hasFocus = true; 49 | } 50 | 51 | if (_hasFocus && (SimulatorWindowProxy.hasFocus == false)) 52 | { 53 | onLostFocus?.Invoke(); 54 | _hasFocus = false; 55 | } 56 | 57 | if (_orientation != Screen.orientation) 58 | { 59 | onOrientationChanged?.Invoke(Screen.orientation); 60 | _orientation = Screen.orientation; 61 | } 62 | } 63 | } 64 | } 65 | #endif 66 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/SimulatorWindowEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fe84b4611307410a8fce88d16abf1b5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/SimulatorWindowProxy.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using System; 3 | using System.Collections; 4 | using System.Linq; 5 | using System.Reflection; 6 | using UnityEditor; 7 | 8 | namespace Jagapippi.AutoScreen 9 | { 10 | public static class SimulatorWindowProxy 11 | { 12 | private const string AssemblyName = "UnityEditor.DeviceSimulatorModule"; 13 | private const string SimulatorWindowTypeName = "UnityEditor.DeviceSimulation.SimulatorWindow"; 14 | 15 | private static readonly Type SimulatorWindow; 16 | private static readonly FieldInfo PlayModeViewsFieldInfo; 17 | #if !UNITY_2021_1 18 | private static readonly MethodInfo RepaintImmediatelyMethodInfo; 19 | #endif 20 | 21 | // NOTE: なぜか宣言時に初期化するとアセンブリが参照できない 22 | static SimulatorWindowProxy() 23 | { 24 | SimulatorWindow = AppDomain.CurrentDomain.GetAssemblies() 25 | .Where(assembly => assembly.GetName().Name == AssemblyName) 26 | .Select(assembly => assembly.GetType(SimulatorWindowTypeName)) 27 | .First(); 28 | 29 | PlayModeViewsFieldInfo = Assembly.Load("UnityEditor.dll") 30 | .GetType("UnityEditor.PlayModeView") 31 | .GetField("s_PlayModeViews", BindingFlags.Static | BindingFlags.NonPublic); 32 | 33 | #if !UNITY_2021_1 34 | RepaintImmediatelyMethodInfo = typeof(EditorWindow).GetMethod("RepaintImmediately", BindingFlags.Instance | BindingFlags.NonPublic); 35 | #endif 36 | 37 | EditorApplication.update -= OnUpdate; 38 | EditorApplication.update += OnUpdate; 39 | } 40 | 41 | private static void OnUpdate() 42 | { 43 | var playModeViews = (IEnumerable)PlayModeViewsFieldInfo.GetValue(null); 44 | 45 | isOpen = false; 46 | 47 | foreach (var playModeView in playModeViews) 48 | { 49 | if ((UnityEngine.Object)playModeView == null) continue; 50 | if (playModeView.GetType() != SimulatorWindow) continue; 51 | 52 | isOpen = true; 53 | break; 54 | } 55 | 56 | if (_shouldBeRepaint) Repaint(); 57 | } 58 | 59 | public static bool isOpen { get; private set; } 60 | public static bool hasFocus => (isOpen && EditorWindow.focusedWindow && (EditorWindow.focusedWindow.GetType() == SimulatorWindow)); 61 | 62 | private static bool _shouldBeRepaint; 63 | #if !UNITY_2021_1 64 | public static void RepaintWithDelay() => _shouldBeRepaint = true; 65 | #endif 66 | 67 | public static void Repaint() 68 | { 69 | if (isOpen == false) return; 70 | 71 | var playModeViews = (IEnumerable)PlayModeViewsFieldInfo.GetValue(null); 72 | 73 | foreach (EditorWindow playModeView in playModeViews) 74 | { 75 | if (playModeView == null) continue; 76 | if (playModeView.GetType() != SimulatorWindow) continue; 77 | 78 | #if UNITY_2021_1 79 | playModeView.Repaint(); 80 | #else 81 | RepaintImmediately(playModeView); 82 | #endif 83 | } 84 | } 85 | 86 | #if !UNITY_2021_1 87 | private static void RepaintImmediately(EditorWindow window) 88 | { 89 | if (window == null) return; 90 | 91 | RepaintImmediatelyMethodInfo.Invoke(window, null); 92 | } 93 | #endif 94 | } 95 | } 96 | #endif 97 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Editor/SimulatorWindowProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8caf94b9b85a4c468cea50179e8bd2ef 3 | timeCreated: 1628361055 -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/EnumFlagsAttribute.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Jagapippi.AutoScreen 4 | { 5 | internal sealed class EnumFlagsAttribute : PropertyAttribute 6 | { 7 | public EnumFlagsAttribute() 8 | { 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/EnumFlagsAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48049414f5f31456699e764b92226a58 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/ISafeAreaUpdatable.cs: -------------------------------------------------------------------------------- 1 | namespace Jagapippi.AutoScreen 2 | { 3 | public interface ISafeAreaUpdatable 4 | { 5 | void ResetRect(); 6 | void UpdateRect(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/ISafeAreaUpdatable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0e7bc9aa8f6a4b6eb815345aaa4bd6b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/RuntimeSafeAreaUpdater.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Jagapippi.AutoScreen 4 | { 5 | [DisallowMultipleComponent] 6 | [RequireComponent(typeof(ISafeAreaUpdatable))] 7 | public class RuntimeSafeAreaUpdater : MonoBehaviour 8 | { 9 | private ISafeAreaUpdatable _target; 10 | private Rect _safeArea; 11 | 12 | void Start() 13 | { 14 | _target = this.GetComponent(); 15 | 16 | _safeArea = Screen.safeArea; 17 | _target.UpdateRect(); 18 | } 19 | 20 | void Update() 21 | { 22 | if (_safeArea == Screen.safeArea) return; 23 | 24 | _safeArea = Screen.safeArea; 25 | _target.UpdateRect(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/RuntimeSafeAreaUpdater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fc15d043ab524fe98fc239415aa9c8e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/SafeArea.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace Jagapippi.AutoScreen 5 | { 6 | public sealed class SafeArea : SafeAreaBase 7 | { 8 | [Flags] 9 | public enum Padding 10 | { 11 | Top = 1 << 0, 12 | Bottom = 1 << 1, 13 | Left = 1 << 2, 14 | Right = 1 << 3, 15 | } 16 | 17 | [SerializeField, EnumFlags] private Padding _padding = (Padding)Enum.Parse(typeof(Padding), (-1).ToString()); 18 | 19 | public Padding padding 20 | { 21 | get { return _padding; } 22 | set { _padding = value; } 23 | } 24 | 25 | public override void ResetRect() 26 | { 27 | base.ResetRect(); 28 | 29 | this.rectTransform.anchorMin = Vector2.zero; 30 | this.rectTransform.anchorMax = Vector2.one; 31 | } 32 | 33 | public override void UpdateRect(Rect safeArea, int width, int height) 34 | { 35 | if ((safeArea.width == width) && (safeArea.height == height)) 36 | { 37 | this.ResetRect(); 38 | return; 39 | } 40 | 41 | var paddingTop = 0f; 42 | var paddingRight = 0f; 43 | var paddingLeft = 0f; 44 | var paddingBottom = 0f; 45 | 46 | if (this.padding.HasFlag(Padding.Top)) paddingTop = height - (safeArea.height + safeArea.y); 47 | if (this.padding.HasFlag(Padding.Right)) paddingRight = width - (safeArea.width + safeArea.x); 48 | if (this.padding.HasFlag(Padding.Bottom)) paddingBottom = safeArea.y; 49 | if (this.padding.HasFlag(Padding.Left)) paddingLeft = safeArea.x; 50 | 51 | this.rectTransform.sizeDelta = this.rectTransform.anchoredPosition = Vector3.zero; 52 | this.rectTransform.anchorMin = new Vector2(paddingLeft / width, paddingBottom / height); 53 | this.rectTransform.anchorMax = new Vector2((width - paddingRight) / width, (height - paddingTop) / height); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/SafeArea.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 865b60587044f4c76b6c73c92c99be6a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/SafeAreaBase.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.SceneManagement; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | using UnityEditor.Experimental.SceneManagement; 6 | using UnityEditor.SceneManagement; 7 | #endif 8 | 9 | namespace Jagapippi.AutoScreen 10 | { 11 | [ExecuteAlways] 12 | [DisallowMultipleComponent] 13 | public abstract class SafeAreaBase : MonoBehaviour, ISafeAreaUpdatable 14 | { 15 | private RectTransform _rectTransform; 16 | protected RectTransform rectTransform => (_rectTransform != null) ? _rectTransform : _rectTransform = this.GetComponent(); 17 | 18 | void Reset() 19 | { 20 | this.ResetRect(); 21 | this.UpdateRect(); 22 | 23 | if (this.GetComponent() == false) 24 | { 25 | this.gameObject.AddComponent(); 26 | } 27 | } 28 | 29 | public virtual void ResetRect() 30 | { 31 | this.rectTransform.sizeDelta = Vector3.zero; 32 | this.rectTransform.anchoredPosition = Vector3.zero; 33 | this.rectTransform.anchorMin = new Vector2(0.5f, 0.5f); 34 | this.rectTransform.anchorMax = new Vector2(0.5f, 0.5f); 35 | this.rectTransform.pivot = new Vector2(0.5f, 0.5f); 36 | this.rectTransform.localRotation = Quaternion.identity; 37 | this.rectTransform.localScale = Vector3.one; 38 | } 39 | 40 | #if UNITY_EDITOR 41 | private void LockRect() => this.rectTransform.hideFlags = HideFlags.NotEditable; 42 | private void UnlockRect() => this.rectTransform.hideFlags = HideFlags.None; 43 | 44 | void OnEnable() 45 | { 46 | SimulatorWindowEvent.onOpen += this.SetDirty; 47 | SimulatorWindowEvent.onClose += this.SetDirty; 48 | SimulatorWindowEvent.onOrientationChanged += this.OnOrientationChanged; 49 | ShimManagerEvent.onActiveShimChanged += this.SetDirty; 50 | EditorSceneManager.sceneSaving += this.OnSceneSaving; 51 | EditorSceneManager.sceneSaved += this.OnSceneSaved; 52 | PrefabStage.prefabSaving += this.OnPrefabSaving; 53 | PrefabStage.prefabSaved += this.OnPrefabSaved; 54 | 55 | this.LockRect(); 56 | this.TryUpdateRect(); 57 | } 58 | 59 | void OnDisable() 60 | { 61 | SimulatorWindowEvent.onOpen -= this.SetDirty; 62 | SimulatorWindowEvent.onClose -= this.SetDirty; 63 | SimulatorWindowEvent.onOrientationChanged -= this.OnOrientationChanged; 64 | ShimManagerEvent.onActiveShimChanged -= this.SetDirty; 65 | EditorSceneManager.sceneSaving -= this.OnSceneSaving; 66 | EditorSceneManager.sceneSaved -= this.OnSceneSaved; 67 | PrefabStage.prefabSaving -= this.OnPrefabSaving; 68 | PrefabStage.prefabSaved -= this.OnPrefabSaved; 69 | 70 | this.UnlockRect(); 71 | } 72 | 73 | private void OnOrientationChanged(ScreenOrientation orientation) 74 | { 75 | if (EditorApplication.isPlaying == false) 76 | { 77 | this.SetDirty(); 78 | } 79 | } 80 | 81 | private void OnSceneSaving(Scene scene, string path) => this.TryResetRect(); 82 | private void OnSceneSaved(Scene scene) => this.TryUpdateRect(); 83 | private void OnPrefabSaving(GameObject prefabContentsRoot) => this.TryResetRect(); 84 | private void OnPrefabSaved(GameObject prefabContentsRoot) => this.TryUpdateRect(); 85 | 86 | private void TryResetRect() 87 | { 88 | if (this.rectTransform) this.ResetRect(); 89 | } 90 | 91 | private void TryUpdateRect() 92 | { 93 | if (this.rectTransform) this.UpdateRect(); 94 | } 95 | 96 | private bool _isDirty; 97 | 98 | private void SetDirty() => _isDirty = true; 99 | 100 | void OnValidate() 101 | { 102 | if (EditorApplication.isPlaying == false) 103 | { 104 | this.SetDirty(); 105 | } 106 | } 107 | 108 | void OnGUI() 109 | { 110 | EditorApplication.delayCall += () => 111 | { 112 | if (_isDirty == false) return; 113 | 114 | _isDirty = false; 115 | this.TryUpdateRect(); 116 | 117 | if (EditorApplication.isPlaying == false) 118 | { 119 | #if UNITY_2021_1 120 | SimulatorWindowProxy.Repaint(); 121 | #else 122 | SimulatorWindowProxy.RepaintWithDelay(); 123 | #endif 124 | } 125 | }; 126 | } 127 | #endif 128 | void Start() 129 | { 130 | #if UNITY_EDITOR 131 | this.SetDirty(); 132 | #else 133 | this.UpdateRect(); 134 | #endif 135 | } 136 | 137 | public void UpdateRect() => this.UpdateRect(Screen.safeArea, Screen.width, Screen.height); 138 | public abstract void UpdateRect(Rect safeArea, int width, int height); 139 | } 140 | 141 | #if UNITY_EDITOR 142 | [CustomEditor(typeof(SafeAreaBase), true)] 143 | public class SafeAreaBaseEditor : Editor 144 | { 145 | public override void OnInspectorGUI() 146 | { 147 | base.OnInspectorGUI(); 148 | 149 | var safeArea = this.target as SafeAreaBase; 150 | 151 | using (new EditorGUI.DisabledScope(Application.isPlaying == false)) 152 | { 153 | if (GUILayout.Button("Update Rect")) 154 | { 155 | safeArea.UpdateRect(); 156 | SimulatorWindowProxy.Repaint(); 157 | } 158 | } 159 | } 160 | } 161 | #endif 162 | } 163 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/SafeAreaBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db5eeef66da70485b9b7c0976d71ddf3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Screen.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | using UnityScreen = UnityEngine.Screen; 4 | 5 | namespace Jagapippi.AutoScreen 6 | { 7 | internal static class Screen 8 | { 9 | public static int width 10 | { 11 | get 12 | { 13 | #if UNITY_EDITOR 14 | return ShimManagerProxy.width; 15 | #else 16 | return UnityScreen.width; 17 | #endif 18 | } 19 | } 20 | 21 | public static int height 22 | { 23 | get 24 | { 25 | #if UNITY_EDITOR 26 | return ShimManagerProxy.height; 27 | #else 28 | return UnityScreen.height; 29 | #endif 30 | } 31 | } 32 | 33 | public static float dpi => UnityScreen.dpi; 34 | public static Resolution currentResolution => UnityScreen.currentResolution; 35 | public static Resolution[] resolutions => UnityScreen.resolutions; 36 | 37 | public static void SetResolution(int width, int height, FullScreenMode fullscreenMode, int preferredRefreshRate = 0) 38 | { 39 | UnityScreen.SetResolution(width, height, fullscreenMode, preferredRefreshRate); 40 | } 41 | 42 | public static void SetResolution(int width, int height, bool fullscreen, int preferredRefreshRate = 0) 43 | { 44 | UnityScreen.SetResolution(width, height, fullscreen, preferredRefreshRate); 45 | } 46 | 47 | public static bool fullScreen 48 | { 49 | get => UnityScreen.fullScreen; 50 | set => UnityScreen.fullScreen = value; 51 | } 52 | 53 | public static FullScreenMode fullScreenMode 54 | { 55 | get => UnityScreen.fullScreenMode; 56 | set => UnityScreen.fullScreenMode = value; 57 | } 58 | 59 | public static Rect safeArea => UnityScreen.safeArea; 60 | public static Rect[] cutouts => UnityScreen.cutouts; 61 | 62 | public static bool autorotateToPortrait 63 | { 64 | get => UnityScreen.autorotateToPortrait; 65 | set => UnityScreen.autorotateToPortrait = value; 66 | } 67 | 68 | public static bool autorotateToPortraitUpsideDown 69 | { 70 | get => UnityScreen.autorotateToPortraitUpsideDown; 71 | set => UnityScreen.autorotateToPortraitUpsideDown = value; 72 | } 73 | 74 | public static bool autorotateToLandscapeLeft 75 | { 76 | get => UnityScreen.autorotateToLandscapeLeft; 77 | set => UnityScreen.autorotateToLandscapeLeft = value; 78 | } 79 | 80 | public static bool autorotateToLandscapeRight 81 | { 82 | get => UnityScreen.autorotateToLandscapeRight; 83 | set => UnityScreen.autorotateToLandscapeRight = value; 84 | } 85 | 86 | public static ScreenOrientation orientation 87 | { 88 | get => UnityScreen.orientation; 89 | set => UnityScreen.orientation = value; 90 | } 91 | 92 | public static int sleepTimeout 93 | { 94 | get => UnityScreen.sleepTimeout; 95 | set => UnityScreen.sleepTimeout = value; 96 | } 97 | 98 | public static float brightness 99 | { 100 | get => UnityScreen.brightness; 101 | set => UnityScreen.brightness = value; 102 | } 103 | } 104 | } 105 | #endif 106 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/Screen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7385b5b1c728e477e8dafc071b1c7695 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/UnsafeArea.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace Jagapippi.AutoScreen 5 | { 6 | public sealed class UnsafeArea : SafeAreaBase 7 | { 8 | public enum Position 9 | { 10 | Top, 11 | Bottom, 12 | Left, 13 | Right, 14 | } 15 | 16 | [SerializeField] private Position _position; 17 | 18 | public Position position 19 | { 20 | get { return _position; } 21 | set { _position = value; } 22 | } 23 | 24 | public override void UpdateRect(Rect safeArea, int width, int height) 25 | { 26 | if ((safeArea.width == width) && (safeArea.height == height)) 27 | { 28 | this.ResetRect(); 29 | return; 30 | } 31 | 32 | var anchorMin = Vector2.zero; 33 | var anchorMax = Vector2.one; 34 | 35 | switch (this.position) 36 | { 37 | case Position.Top: 38 | anchorMin = new Vector2(0, safeArea.height + safeArea.y) / height; 39 | break; 40 | case Position.Bottom: 41 | anchorMax = new Vector2(1, safeArea.y / height); 42 | break; 43 | case Position.Left: 44 | anchorMax = new Vector2(safeArea.x / width, 1); 45 | break; 46 | case Position.Right: 47 | anchorMin = new Vector2(safeArea.width + safeArea.x, 0) / width; 48 | break; 49 | default: 50 | throw new ArgumentOutOfRangeException(); 51 | } 52 | 53 | this.rectTransform.anchorMin = anchorMin; 54 | this.rectTransform.anchorMax = anchorMax; 55 | this.rectTransform.anchoredPosition = Vector3.zero; 56 | this.rectTransform.sizeDelta = Vector2.zero; 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/Scripts/UnsafeArea.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d3c731ce855a4745aee79e1634abb0b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.jagapippi.auto-screen", 3 | "version": "3.0.0", 4 | "displayName": "AutoScreen for Unity2021", 5 | "description": "This plugin provide a smart solution for Safe Area.\nBy using the provided components, you can quickly check the safe area in simulator window.\nThis is achieved by transforming the RectTransform, but the changes are not saved, so version control systems such as git will not make any difference.", 6 | "unity": "2021.1", 7 | "license": "MIT", 8 | "licensesUrl": "https://github.com/su10/AutoScreen-for-Unity2021/blob/main/LICENSE", 9 | "documentationUrl": "https://github.com/su10/AutoScreen-for-Unity2021", 10 | "keywords": [ 11 | "safearea" 12 | ], 13 | "author": { 14 | "name": "su10", 15 | "url": "https://github.com/su10" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "git+https://github.com/su10/AutoScreen-for-Unity2021.git" 20 | }, 21 | "samples": [ 22 | { 23 | "displayName": "Demo", 24 | "description": "Demo Scene", 25 | "path": "Samples~/Demo" 26 | } 27 | ] 28 | } -------------------------------------------------------------------------------- /Packages/com.jagapippi.auto-screen/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 963456bf691541eab1125bded2a1f13c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ide.rider": "3.0.15", 4 | "com.unity.test-framework": "1.1.22", 5 | "com.unity.ugui": "1.0.0", 6 | "com.unity.modules.ai": "1.0.0", 7 | "com.unity.modules.androidjni": "1.0.0", 8 | "com.unity.modules.animation": "1.0.0", 9 | "com.unity.modules.assetbundle": "1.0.0", 10 | "com.unity.modules.audio": "1.0.0", 11 | "com.unity.modules.cloth": "1.0.0", 12 | "com.unity.modules.director": "1.0.0", 13 | "com.unity.modules.imageconversion": "1.0.0", 14 | "com.unity.modules.imgui": "1.0.0", 15 | "com.unity.modules.jsonserialize": "1.0.0", 16 | "com.unity.modules.particlesystem": "1.0.0", 17 | "com.unity.modules.physics": "1.0.0", 18 | "com.unity.modules.physics2d": "1.0.0", 19 | "com.unity.modules.screencapture": "1.0.0", 20 | "com.unity.modules.terrain": "1.0.0", 21 | "com.unity.modules.terrainphysics": "1.0.0", 22 | "com.unity.modules.tilemap": "1.0.0", 23 | "com.unity.modules.ui": "1.0.0", 24 | "com.unity.modules.uielements": "1.0.0", 25 | "com.unity.modules.umbra": "1.0.0", 26 | "com.unity.modules.unityanalytics": "1.0.0", 27 | "com.unity.modules.unitywebrequest": "1.0.0", 28 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 29 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 30 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 31 | "com.unity.modules.unitywebrequestwww": "1.0.0", 32 | "com.unity.modules.vehicles": "1.0.0", 33 | "com.unity.modules.video": "1.0.0", 34 | "com.unity.modules.vr": "1.0.0", 35 | "com.unity.modules.wind": "1.0.0", 36 | "com.unity.modules.xr": "1.0.0" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.jagapippi.auto-screen": { 4 | "version": "file:com.jagapippi.auto-screen", 5 | "depth": 0, 6 | "source": "embedded", 7 | "dependencies": {} 8 | }, 9 | "com.unity.ext.nunit": { 10 | "version": "1.0.6", 11 | "depth": 1, 12 | "source": "registry", 13 | "dependencies": {}, 14 | "url": "https://packages.unity.com" 15 | }, 16 | "com.unity.ide.rider": { 17 | "version": "3.0.15", 18 | "depth": 0, 19 | "source": "registry", 20 | "dependencies": { 21 | "com.unity.ext.nunit": "1.0.6" 22 | }, 23 | "url": "https://packages.unity.com" 24 | }, 25 | "com.unity.test-framework": { 26 | "version": "1.1.22", 27 | "depth": 0, 28 | "source": "registry", 29 | "dependencies": { 30 | "com.unity.ext.nunit": "1.0.6", 31 | "com.unity.modules.imgui": "1.0.0", 32 | "com.unity.modules.jsonserialize": "1.0.0" 33 | }, 34 | "url": "https://packages.unity.com" 35 | }, 36 | "com.unity.ugui": { 37 | "version": "1.0.0", 38 | "depth": 0, 39 | "source": "builtin", 40 | "dependencies": { 41 | "com.unity.modules.ui": "1.0.0", 42 | "com.unity.modules.imgui": "1.0.0" 43 | } 44 | }, 45 | "com.unity.modules.ai": { 46 | "version": "1.0.0", 47 | "depth": 0, 48 | "source": "builtin", 49 | "dependencies": {} 50 | }, 51 | "com.unity.modules.androidjni": { 52 | "version": "1.0.0", 53 | "depth": 0, 54 | "source": "builtin", 55 | "dependencies": {} 56 | }, 57 | "com.unity.modules.animation": { 58 | "version": "1.0.0", 59 | "depth": 0, 60 | "source": "builtin", 61 | "dependencies": {} 62 | }, 63 | "com.unity.modules.assetbundle": { 64 | "version": "1.0.0", 65 | "depth": 0, 66 | "source": "builtin", 67 | "dependencies": {} 68 | }, 69 | "com.unity.modules.audio": { 70 | "version": "1.0.0", 71 | "depth": 0, 72 | "source": "builtin", 73 | "dependencies": {} 74 | }, 75 | "com.unity.modules.cloth": { 76 | "version": "1.0.0", 77 | "depth": 0, 78 | "source": "builtin", 79 | "dependencies": { 80 | "com.unity.modules.physics": "1.0.0" 81 | } 82 | }, 83 | "com.unity.modules.director": { 84 | "version": "1.0.0", 85 | "depth": 0, 86 | "source": "builtin", 87 | "dependencies": { 88 | "com.unity.modules.audio": "1.0.0", 89 | "com.unity.modules.animation": "1.0.0" 90 | } 91 | }, 92 | "com.unity.modules.imageconversion": { 93 | "version": "1.0.0", 94 | "depth": 0, 95 | "source": "builtin", 96 | "dependencies": {} 97 | }, 98 | "com.unity.modules.imgui": { 99 | "version": "1.0.0", 100 | "depth": 0, 101 | "source": "builtin", 102 | "dependencies": {} 103 | }, 104 | "com.unity.modules.jsonserialize": { 105 | "version": "1.0.0", 106 | "depth": 0, 107 | "source": "builtin", 108 | "dependencies": {} 109 | }, 110 | "com.unity.modules.particlesystem": { 111 | "version": "1.0.0", 112 | "depth": 0, 113 | "source": "builtin", 114 | "dependencies": {} 115 | }, 116 | "com.unity.modules.physics": { 117 | "version": "1.0.0", 118 | "depth": 0, 119 | "source": "builtin", 120 | "dependencies": {} 121 | }, 122 | "com.unity.modules.physics2d": { 123 | "version": "1.0.0", 124 | "depth": 0, 125 | "source": "builtin", 126 | "dependencies": {} 127 | }, 128 | "com.unity.modules.screencapture": { 129 | "version": "1.0.0", 130 | "depth": 0, 131 | "source": "builtin", 132 | "dependencies": { 133 | "com.unity.modules.imageconversion": "1.0.0" 134 | } 135 | }, 136 | "com.unity.modules.subsystems": { 137 | "version": "1.0.0", 138 | "depth": 1, 139 | "source": "builtin", 140 | "dependencies": { 141 | "com.unity.modules.jsonserialize": "1.0.0" 142 | } 143 | }, 144 | "com.unity.modules.terrain": { 145 | "version": "1.0.0", 146 | "depth": 0, 147 | "source": "builtin", 148 | "dependencies": {} 149 | }, 150 | "com.unity.modules.terrainphysics": { 151 | "version": "1.0.0", 152 | "depth": 0, 153 | "source": "builtin", 154 | "dependencies": { 155 | "com.unity.modules.physics": "1.0.0", 156 | "com.unity.modules.terrain": "1.0.0" 157 | } 158 | }, 159 | "com.unity.modules.tilemap": { 160 | "version": "1.0.0", 161 | "depth": 0, 162 | "source": "builtin", 163 | "dependencies": { 164 | "com.unity.modules.physics2d": "1.0.0" 165 | } 166 | }, 167 | "com.unity.modules.ui": { 168 | "version": "1.0.0", 169 | "depth": 0, 170 | "source": "builtin", 171 | "dependencies": {} 172 | }, 173 | "com.unity.modules.uielements": { 174 | "version": "1.0.0", 175 | "depth": 0, 176 | "source": "builtin", 177 | "dependencies": { 178 | "com.unity.modules.ui": "1.0.0", 179 | "com.unity.modules.imgui": "1.0.0", 180 | "com.unity.modules.jsonserialize": "1.0.0", 181 | "com.unity.modules.uielementsnative": "1.0.0" 182 | } 183 | }, 184 | "com.unity.modules.uielementsnative": { 185 | "version": "1.0.0", 186 | "depth": 1, 187 | "source": "builtin", 188 | "dependencies": { 189 | "com.unity.modules.ui": "1.0.0", 190 | "com.unity.modules.imgui": "1.0.0", 191 | "com.unity.modules.jsonserialize": "1.0.0" 192 | } 193 | }, 194 | "com.unity.modules.umbra": { 195 | "version": "1.0.0", 196 | "depth": 0, 197 | "source": "builtin", 198 | "dependencies": {} 199 | }, 200 | "com.unity.modules.unityanalytics": { 201 | "version": "1.0.0", 202 | "depth": 0, 203 | "source": "builtin", 204 | "dependencies": { 205 | "com.unity.modules.unitywebrequest": "1.0.0", 206 | "com.unity.modules.jsonserialize": "1.0.0" 207 | } 208 | }, 209 | "com.unity.modules.unitywebrequest": { 210 | "version": "1.0.0", 211 | "depth": 0, 212 | "source": "builtin", 213 | "dependencies": {} 214 | }, 215 | "com.unity.modules.unitywebrequestassetbundle": { 216 | "version": "1.0.0", 217 | "depth": 0, 218 | "source": "builtin", 219 | "dependencies": { 220 | "com.unity.modules.assetbundle": "1.0.0", 221 | "com.unity.modules.unitywebrequest": "1.0.0" 222 | } 223 | }, 224 | "com.unity.modules.unitywebrequestaudio": { 225 | "version": "1.0.0", 226 | "depth": 0, 227 | "source": "builtin", 228 | "dependencies": { 229 | "com.unity.modules.unitywebrequest": "1.0.0", 230 | "com.unity.modules.audio": "1.0.0" 231 | } 232 | }, 233 | "com.unity.modules.unitywebrequesttexture": { 234 | "version": "1.0.0", 235 | "depth": 0, 236 | "source": "builtin", 237 | "dependencies": { 238 | "com.unity.modules.unitywebrequest": "1.0.0", 239 | "com.unity.modules.imageconversion": "1.0.0" 240 | } 241 | }, 242 | "com.unity.modules.unitywebrequestwww": { 243 | "version": "1.0.0", 244 | "depth": 0, 245 | "source": "builtin", 246 | "dependencies": { 247 | "com.unity.modules.unitywebrequest": "1.0.0", 248 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 249 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 250 | "com.unity.modules.audio": "1.0.0", 251 | "com.unity.modules.assetbundle": "1.0.0", 252 | "com.unity.modules.imageconversion": "1.0.0" 253 | } 254 | }, 255 | "com.unity.modules.vehicles": { 256 | "version": "1.0.0", 257 | "depth": 0, 258 | "source": "builtin", 259 | "dependencies": { 260 | "com.unity.modules.physics": "1.0.0" 261 | } 262 | }, 263 | "com.unity.modules.video": { 264 | "version": "1.0.0", 265 | "depth": 0, 266 | "source": "builtin", 267 | "dependencies": { 268 | "com.unity.modules.audio": "1.0.0", 269 | "com.unity.modules.ui": "1.0.0", 270 | "com.unity.modules.unitywebrequest": "1.0.0" 271 | } 272 | }, 273 | "com.unity.modules.vr": { 274 | "version": "1.0.0", 275 | "depth": 0, 276 | "source": "builtin", 277 | "dependencies": { 278 | "com.unity.modules.jsonserialize": "1.0.0", 279 | "com.unity.modules.physics": "1.0.0", 280 | "com.unity.modules.xr": "1.0.0" 281 | } 282 | }, 283 | "com.unity.modules.wind": { 284 | "version": "1.0.0", 285 | "depth": 0, 286 | "source": "builtin", 287 | "dependencies": {} 288 | }, 289 | "com.unity.modules.xr": { 290 | "version": "1.0.0", 291 | "depth": 0, 292 | "source": "builtin", 293 | "dependencies": { 294 | "com.unity.modules.physics": "1.0.0", 295 | "com.unity.modules.jsonserialize": "1.0.0", 296 | "com.unity.modules.subsystems": "1.0.0" 297 | } 298 | } 299 | } 300 | } 301 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /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/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: 8 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 | -------------------------------------------------------------------------------- /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: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 4 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;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: 1 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /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: 12 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: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 37 | m_PreloadedShaders: [] 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 39 | type: 0} 40 | m_CustomRenderPipeline: {fileID: 0} 41 | m_TransparencySortMode: 0 42 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 43 | m_DefaultRenderingPath: 1 44 | m_DefaultMobileRenderingPath: 1 45 | m_TierSettings: [] 46 | m_LightmapStripping: 0 47 | m_FogStripping: 0 48 | m_InstancingStripping: 0 49 | m_LightmapKeepPlain: 1 50 | m_LightmapKeepDirCombined: 1 51 | m_LightmapKeepDynamicPlain: 1 52 | m_LightmapKeepDynamicDirCombined: 1 53 | m_LightmapKeepShadowMask: 1 54 | m_LightmapKeepSubtractive: 1 55 | m_FogKeepLinear: 1 56 | m_FogKeepExp: 1 57 | m_FogKeepExp2: 1 58 | m_AlbedoSwatchInfos: [] 59 | m_LightsUseLinearIntensity: 0 60 | m_LightsUseColorTemperature: 0 61 | -------------------------------------------------------------------------------- /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/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/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /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_ErrorMessage: 32 | m_Original: 33 | m_Id: 34 | m_Name: 35 | m_Url: 36 | m_Scopes: [] 37 | m_IsDefault: 0 38 | m_Capabilities: 0 39 | m_Modified: 0 40 | m_Name: 41 | m_Url: 42 | m_Scopes: 43 | - 44 | m_SelectedScopeIndex: 0 45 | m_LoadAssets: 0 46 | -------------------------------------------------------------------------------- /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 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 20 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: bfcfc320427f8224bbb7a96f3d3aebad, 13 | type: 2} 14 | -------------------------------------------------------------------------------- /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: 15 7 | productGUID: 9d7114eb9fba040a296ed03075407ce2 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: AutoScreen 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 1 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | resizableWindow: 0 83 | useMacAppStoreValidation: 0 84 | macAppStoreCategory: public.app-category.games 85 | gpuSkinning: 0 86 | graphicsJobs: 0 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 1 93 | allowFullscreenSwitch: 1 94 | graphicsJobMode: 0 95 | fullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | xboxOneResolution: 0 102 | xboxOneSResolution: 0 103 | xboxOneXResolution: 3 104 | xboxOneMonoLoggingLevel: 0 105 | xboxOneLoggingLevel: 1 106 | xboxOneDisableEsram: 0 107 | xboxOnePresentImmediateThreshold: 0 108 | switchQueueCommandMemory: 0 109 | switchQueueControlMemory: 16384 110 | switchQueueComputeMemory: 262144 111 | switchNVNShaderPoolsGranularity: 33554432 112 | switchNVNDefaultPoolsGranularity: 16777216 113 | switchNVNOtherPoolsGranularity: 16777216 114 | vulkanEnableSetSRGBWrite: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleVersion: 0.1 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 1 127 | xboxOneEnable7thCore: 1 128 | isWsaHolographicRemotingEnabled: 0 129 | vrSettings: 130 | cardboard: 131 | depthFormat: 0 132 | enableTransitionView: 0 133 | daydream: 134 | depthFormat: 0 135 | useSustainedPerformanceMode: 0 136 | enableVideoLayer: 0 137 | useProtectedVideoMemory: 0 138 | minimumSupportedHeadTracking: 0 139 | maximumSupportedHeadTracking: 1 140 | hololens: 141 | depthFormat: 1 142 | depthBufferSharingEnabled: 1 143 | oculus: 144 | sharedDepthBuffer: 1 145 | dashSupport: 1 146 | enable360StereoCapture: 0 147 | protectGraphicsMemory: 0 148 | enableFrameTimingStats: 0 149 | useHDRDisplay: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: 156 | Standalone: com.Company.ProductName 157 | buildNumber: {} 158 | AndroidBundleVersionCode: 1 159 | AndroidMinSdkVersion: 16 160 | AndroidTargetSdkVersion: 0 161 | AndroidPreferredInstallLocation: 1 162 | aotOptions: 163 | stripEngineCode: 1 164 | iPhoneStrippingLevel: 0 165 | iPhoneScriptCallOptimization: 0 166 | ForceInternetPermission: 0 167 | ForceSDCardPermission: 0 168 | CreateWallpaper: 0 169 | APKExpansionFiles: 0 170 | keepLoadedShadersAlive: 0 171 | StripUnusedMeshComponents: 1 172 | VertexChannelCompressionMask: 4054 173 | iPhoneSdkVersion: 989 174 | iOSTargetOSVersionString: 9.0 175 | tvOSSdkVersion: 0 176 | tvOSRequireExtendedGameController: 0 177 | tvOSTargetOSVersionString: 9.0 178 | uIPrerenderedIcon: 0 179 | uIRequiresPersistentWiFi: 0 180 | uIRequiresFullScreen: 1 181 | uIStatusBarHidden: 1 182 | uIExitOnSuspend: 0 183 | uIStatusBarStyle: 0 184 | iPhoneSplashScreen: {fileID: 0} 185 | iPhoneHighResSplashScreen: {fileID: 0} 186 | iPhoneTallHighResSplashScreen: {fileID: 0} 187 | iPhone47inSplashScreen: {fileID: 0} 188 | iPhone55inPortraitSplashScreen: {fileID: 0} 189 | iPhone55inLandscapeSplashScreen: {fileID: 0} 190 | iPhone58inPortraitSplashScreen: {fileID: 0} 191 | iPhone58inLandscapeSplashScreen: {fileID: 0} 192 | iPadPortraitSplashScreen: {fileID: 0} 193 | iPadHighResPortraitSplashScreen: {fileID: 0} 194 | iPadLandscapeSplashScreen: {fileID: 0} 195 | iPadHighResLandscapeSplashScreen: {fileID: 0} 196 | appleTVSplashScreen: {fileID: 0} 197 | appleTVSplashScreen2x: {fileID: 0} 198 | tvOSSmallIconLayers: [] 199 | tvOSSmallIconLayers2x: [] 200 | tvOSLargeIconLayers: [] 201 | tvOSLargeIconLayers2x: [] 202 | tvOSTopShelfImageLayers: [] 203 | tvOSTopShelfImageLayers2x: [] 204 | tvOSTopShelfImageWideLayers: [] 205 | tvOSTopShelfImageWideLayers2x: [] 206 | iOSLaunchScreenType: 0 207 | iOSLaunchScreenPortrait: {fileID: 0} 208 | iOSLaunchScreenLandscape: {fileID: 0} 209 | iOSLaunchScreenBackgroundColor: 210 | serializedVersion: 2 211 | rgba: 0 212 | iOSLaunchScreenFillPct: 100 213 | iOSLaunchScreenSize: 100 214 | iOSLaunchScreenCustomXibPath: 215 | iOSLaunchScreeniPadType: 0 216 | iOSLaunchScreeniPadImage: {fileID: 0} 217 | iOSLaunchScreeniPadBackgroundColor: 218 | serializedVersion: 2 219 | rgba: 0 220 | iOSLaunchScreeniPadFillPct: 100 221 | iOSLaunchScreeniPadSize: 100 222 | iOSLaunchScreeniPadCustomXibPath: 223 | iOSUseLaunchScreenStoryboard: 0 224 | iOSLaunchScreenCustomStoryboardPath: 225 | iOSDeviceRequirements: [] 226 | iOSURLSchemes: [] 227 | iOSBackgroundModes: 0 228 | iOSMetalForceHardShadows: 0 229 | metalEditorSupport: 1 230 | metalAPIValidation: 1 231 | iOSRenderExtraFrameOnPause: 0 232 | appleDeveloperTeamID: 233 | iOSManualSigningProvisioningProfileID: 234 | tvOSManualSigningProvisioningProfileID: 235 | iOSManualSigningProvisioningProfileType: 0 236 | tvOSManualSigningProvisioningProfileType: 0 237 | appleEnableAutomaticSigning: 0 238 | iOSRequireARKit: 0 239 | iOSAutomaticallyDetectAndAddCapabilities: 1 240 | appleEnableProMotion: 0 241 | clonedFromGUID: 5f34be1353de5cf4398729fda238591b 242 | templatePackageId: com.unity.template.2d@1.3.0 243 | templateDefaultScene: Assets/Scenes/SampleScene.unity 244 | AndroidTargetArchitectures: 5 245 | AndroidSplashScreenScale: 0 246 | androidSplashScreen: {fileID: 0} 247 | AndroidKeystoreName: 248 | AndroidKeyaliasName: 249 | AndroidBuildApkPerCpuArchitecture: 0 250 | AndroidTVCompatibility: 1 251 | AndroidIsGame: 1 252 | AndroidEnableTango: 0 253 | androidEnableBanner: 1 254 | androidUseLowAccuracyLocation: 0 255 | m_AndroidBanners: 256 | - width: 320 257 | height: 180 258 | banner: {fileID: 0} 259 | androidGamepadSupportLevel: 0 260 | resolutionDialogBanner: {fileID: 0} 261 | m_BuildTargetIcons: [] 262 | m_BuildTargetPlatformIcons: [] 263 | m_BuildTargetBatching: [] 264 | m_BuildTargetGraphicsAPIs: 265 | - m_BuildTarget: iOSSupport 266 | m_APIs: 1000000008000000 267 | m_Automatic: 0 268 | m_BuildTargetVRSettings: [] 269 | m_BuildTargetEnableVuforiaSettings: [] 270 | openGLRequireES31: 0 271 | openGLRequireES31AEP: 0 272 | m_TemplateCustomTags: {} 273 | mobileMTRendering: 274 | Android: 1 275 | iPhone: 1 276 | tvOS: 1 277 | m_BuildTargetGroupLightmapEncodingQuality: [] 278 | m_BuildTargetGroupLightmapSettings: [] 279 | playModeTestRunnerEnabled: 0 280 | runPlayModeTestAsEditModeTest: 0 281 | actionOnDotNetUnhandledException: 1 282 | enableInternalProfiler: 0 283 | logObjCUncaughtExceptions: 1 284 | enableCrashReportAPI: 0 285 | cameraUsageDescription: 286 | locationUsageDescription: 287 | microphoneUsageDescription: 288 | switchNetLibKey: 289 | switchSocketMemoryPoolSize: 6144 290 | switchSocketAllocatorPoolSize: 128 291 | switchSocketConcurrencyLimit: 14 292 | switchScreenResolutionBehavior: 2 293 | switchUseCPUProfiler: 0 294 | switchApplicationID: 0x01004b9000490000 295 | switchNSODependencies: 296 | switchTitleNames_0: 297 | switchTitleNames_1: 298 | switchTitleNames_2: 299 | switchTitleNames_3: 300 | switchTitleNames_4: 301 | switchTitleNames_5: 302 | switchTitleNames_6: 303 | switchTitleNames_7: 304 | switchTitleNames_8: 305 | switchTitleNames_9: 306 | switchTitleNames_10: 307 | switchTitleNames_11: 308 | switchTitleNames_12: 309 | switchTitleNames_13: 310 | switchTitleNames_14: 311 | switchPublisherNames_0: 312 | switchPublisherNames_1: 313 | switchPublisherNames_2: 314 | switchPublisherNames_3: 315 | switchPublisherNames_4: 316 | switchPublisherNames_5: 317 | switchPublisherNames_6: 318 | switchPublisherNames_7: 319 | switchPublisherNames_8: 320 | switchPublisherNames_9: 321 | switchPublisherNames_10: 322 | switchPublisherNames_11: 323 | switchPublisherNames_12: 324 | switchPublisherNames_13: 325 | switchPublisherNames_14: 326 | switchIcons_0: {fileID: 0} 327 | switchIcons_1: {fileID: 0} 328 | switchIcons_2: {fileID: 0} 329 | switchIcons_3: {fileID: 0} 330 | switchIcons_4: {fileID: 0} 331 | switchIcons_5: {fileID: 0} 332 | switchIcons_6: {fileID: 0} 333 | switchIcons_7: {fileID: 0} 334 | switchIcons_8: {fileID: 0} 335 | switchIcons_9: {fileID: 0} 336 | switchIcons_10: {fileID: 0} 337 | switchIcons_11: {fileID: 0} 338 | switchIcons_12: {fileID: 0} 339 | switchIcons_13: {fileID: 0} 340 | switchIcons_14: {fileID: 0} 341 | switchSmallIcons_0: {fileID: 0} 342 | switchSmallIcons_1: {fileID: 0} 343 | switchSmallIcons_2: {fileID: 0} 344 | switchSmallIcons_3: {fileID: 0} 345 | switchSmallIcons_4: {fileID: 0} 346 | switchSmallIcons_5: {fileID: 0} 347 | switchSmallIcons_6: {fileID: 0} 348 | switchSmallIcons_7: {fileID: 0} 349 | switchSmallIcons_8: {fileID: 0} 350 | switchSmallIcons_9: {fileID: 0} 351 | switchSmallIcons_10: {fileID: 0} 352 | switchSmallIcons_11: {fileID: 0} 353 | switchSmallIcons_12: {fileID: 0} 354 | switchSmallIcons_13: {fileID: 0} 355 | switchSmallIcons_14: {fileID: 0} 356 | switchManualHTML: 357 | switchAccessibleURLs: 358 | switchLegalInformation: 359 | switchMainThreadStackSize: 1048576 360 | switchPresenceGroupId: 361 | switchLogoHandling: 0 362 | switchReleaseVersion: 0 363 | switchDisplayVersion: 1.0.0 364 | switchStartupUserAccount: 0 365 | switchTouchScreenUsage: 0 366 | switchSupportedLanguagesMask: 0 367 | switchLogoType: 0 368 | switchApplicationErrorCodeCategory: 369 | switchUserAccountSaveDataSize: 0 370 | switchUserAccountSaveDataJournalSize: 0 371 | switchApplicationAttribute: 0 372 | switchCardSpecSize: -1 373 | switchCardSpecClock: -1 374 | switchRatingsMask: 0 375 | switchRatingsInt_0: 0 376 | switchRatingsInt_1: 0 377 | switchRatingsInt_2: 0 378 | switchRatingsInt_3: 0 379 | switchRatingsInt_4: 0 380 | switchRatingsInt_5: 0 381 | switchRatingsInt_6: 0 382 | switchRatingsInt_7: 0 383 | switchRatingsInt_8: 0 384 | switchRatingsInt_9: 0 385 | switchRatingsInt_10: 0 386 | switchRatingsInt_11: 0 387 | switchLocalCommunicationIds_0: 388 | switchLocalCommunicationIds_1: 389 | switchLocalCommunicationIds_2: 390 | switchLocalCommunicationIds_3: 391 | switchLocalCommunicationIds_4: 392 | switchLocalCommunicationIds_5: 393 | switchLocalCommunicationIds_6: 394 | switchLocalCommunicationIds_7: 395 | switchParentalControl: 0 396 | switchAllowsScreenshot: 1 397 | switchAllowsVideoCapturing: 1 398 | switchAllowsRuntimeAddOnContentInstall: 0 399 | switchDataLossConfirmation: 0 400 | switchUserAccountLockEnabled: 0 401 | switchSystemResourceMemory: 16777216 402 | switchSupportedNpadStyles: 3 403 | switchNativeFsCacheSize: 32 404 | switchIsHoldTypeHorizontal: 0 405 | switchSupportedNpadCount: 8 406 | switchSocketConfigEnabled: 0 407 | switchTcpInitialSendBufferSize: 32 408 | switchTcpInitialReceiveBufferSize: 64 409 | switchTcpAutoSendBufferSizeMax: 256 410 | switchTcpAutoReceiveBufferSizeMax: 256 411 | switchUdpSendBufferSize: 9 412 | switchUdpReceiveBufferSize: 42 413 | switchSocketBufferEfficiency: 4 414 | switchSocketInitializeEnabled: 1 415 | switchNetworkInterfaceManagerInitializeEnabled: 1 416 | switchPlayerConnectionEnabled: 1 417 | ps4NPAgeRating: 12 418 | ps4NPTitleSecret: 419 | ps4NPTrophyPackPath: 420 | ps4ParentalLevel: 11 421 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 422 | ps4Category: 0 423 | ps4MasterVersion: 01.00 424 | ps4AppVersion: 01.00 425 | ps4AppType: 0 426 | ps4ParamSfxPath: 427 | ps4VideoOutPixelFormat: 0 428 | ps4VideoOutInitialWidth: 1920 429 | ps4VideoOutBaseModeInitialWidth: 1920 430 | ps4VideoOutReprojectionRate: 60 431 | ps4PronunciationXMLPath: 432 | ps4PronunciationSIGPath: 433 | ps4BackgroundImagePath: 434 | ps4StartupImagePath: 435 | ps4StartupImagesFolder: 436 | ps4IconImagesFolder: 437 | ps4SaveDataImagePath: 438 | ps4SdkOverride: 439 | ps4BGMPath: 440 | ps4ShareFilePath: 441 | ps4ShareOverlayImagePath: 442 | ps4PrivacyGuardImagePath: 443 | ps4NPtitleDatPath: 444 | ps4RemotePlayKeyAssignment: -1 445 | ps4RemotePlayKeyMappingDir: 446 | ps4PlayTogetherPlayerCount: 0 447 | ps4EnterButtonAssignment: 1 448 | ps4ApplicationParam1: 0 449 | ps4ApplicationParam2: 0 450 | ps4ApplicationParam3: 0 451 | ps4ApplicationParam4: 0 452 | ps4DownloadDataSize: 0 453 | ps4GarlicHeapSize: 2048 454 | ps4ProGarlicHeapSize: 2560 455 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 456 | ps4pnSessions: 1 457 | ps4pnPresence: 1 458 | ps4pnFriends: 1 459 | ps4pnGameCustomData: 1 460 | playerPrefsSupport: 0 461 | enableApplicationExit: 0 462 | resetTempFolder: 1 463 | restrictedAudioUsageRights: 0 464 | ps4UseResolutionFallback: 0 465 | ps4ReprojectionSupport: 0 466 | ps4UseAudio3dBackend: 0 467 | ps4SocialScreenEnabled: 0 468 | ps4ScriptOptimizationLevel: 0 469 | ps4Audio3dVirtualSpeakerCount: 14 470 | ps4attribCpuUsage: 0 471 | ps4PatchPkgPath: 472 | ps4PatchLatestPkgPath: 473 | ps4PatchChangeinfoPath: 474 | ps4PatchDayOne: 0 475 | ps4attribUserManagement: 0 476 | ps4attribMoveSupport: 0 477 | ps4attrib3DSupport: 0 478 | ps4attribShareSupport: 0 479 | ps4attribExclusiveVR: 0 480 | ps4disableAutoHideSplash: 0 481 | ps4videoRecordingFeaturesUsed: 0 482 | ps4contentSearchFeaturesUsed: 0 483 | ps4attribEyeToEyeDistanceSettingVR: 0 484 | ps4IncludedModules: [] 485 | monoEnv: 486 | splashScreenBackgroundSourceLandscape: {fileID: 0} 487 | splashScreenBackgroundSourcePortrait: {fileID: 0} 488 | spritePackerPolicy: 489 | webGLMemorySize: 256 490 | webGLExceptionSupport: 1 491 | webGLNameFilesAsHashes: 0 492 | webGLDataCaching: 1 493 | webGLDebugSymbols: 0 494 | webGLEmscriptenArgs: 495 | webGLModulesDirectory: 496 | webGLTemplate: APPLICATION:Default 497 | webGLAnalyzeBuildSize: 0 498 | webGLUseEmbeddedResources: 0 499 | webGLCompressionFormat: 1 500 | webGLLinkerTarget: 1 501 | webGLThreadsSupport: 0 502 | scriptingDefineSymbols: {} 503 | platformArchitecture: {} 504 | scriptingBackend: {} 505 | il2cppCompilerConfiguration: {} 506 | managedStrippingLevel: {} 507 | incrementalIl2cppBuild: {} 508 | allowUnsafeCode: 0 509 | additionalIl2CppArgs: 510 | scriptingRuntimeVersion: 1 511 | apiCompatibilityLevelPerPlatform: {} 512 | m_RenderingPath: 1 513 | m_MobileRenderingPath: 1 514 | metroPackageName: Template_2D 515 | metroPackageVersion: 516 | metroCertificatePath: 517 | metroCertificatePassword: 518 | metroCertificateSubject: 519 | metroCertificateIssuer: 520 | metroCertificateNotAfter: 0000000000000000 521 | metroApplicationDescription: Template_2D 522 | wsaImages: {} 523 | metroTileShortName: 524 | metroTileShowName: 0 525 | metroMediumTileShowName: 0 526 | metroLargeTileShowName: 0 527 | metroWideTileShowName: 0 528 | metroSupportStreamingInstall: 0 529 | metroLastRequiredScene: 0 530 | metroDefaultTileSize: 1 531 | metroTileForegroundText: 2 532 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 533 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 534 | a: 1} 535 | metroSplashScreenUseBackgroundColor: 0 536 | platformCapabilities: {} 537 | metroTargetDeviceFamilies: {} 538 | metroFTAName: 539 | metroFTAFileTypes: [] 540 | metroProtocolName: 541 | metroCompilationOverrides: 1 542 | XboxOneProductId: 543 | XboxOneUpdateKey: 544 | XboxOneSandboxId: 545 | XboxOneContentId: 546 | XboxOneTitleId: 547 | XboxOneSCId: 548 | XboxOneGameOsOverridePath: 549 | XboxOnePackagingOverridePath: 550 | XboxOneAppManifestOverridePath: 551 | XboxOneVersion: 1.0.0.0 552 | XboxOnePackageEncryption: 0 553 | XboxOnePackageUpdateGranularity: 2 554 | XboxOneDescription: 555 | XboxOneLanguage: 556 | - enus 557 | XboxOneCapability: [] 558 | XboxOneGameRating: {} 559 | XboxOneIsContentPackage: 0 560 | XboxOneEnableGPUVariability: 1 561 | XboxOneSockets: {} 562 | XboxOneSplashScreen: {fileID: 0} 563 | XboxOneAllowedProductIds: [] 564 | XboxOnePersistentLocalStorageSize: 0 565 | XboxOneXTitleMemory: 8 566 | xboxOneScriptCompiler: 1 567 | XboxOneOverrideIdentityName: 568 | vrEditorSettings: 569 | daydream: 570 | daydreamIconForeground: {fileID: 0} 571 | daydreamIconBackground: {fileID: 0} 572 | cloudServicesEnabled: 573 | UNet: 1 574 | luminIcon: 575 | m_Name: 576 | m_ModelFolderPath: 577 | m_PortalFolderPath: 578 | luminCert: 579 | m_CertPath: 580 | m_PrivateKeyPath: 581 | luminIsChannelApp: 0 582 | luminVersion: 583 | m_VersionCode: 1 584 | m_VersionName: 585 | facebookSdkVersion: 7.9.4 586 | facebookAppId: 587 | facebookCookies: 1 588 | facebookLogging: 1 589 | facebookStatus: 1 590 | facebookXfbml: 0 591 | facebookFrictionlessRequests: 1 592 | apiCompatibilityLevel: 6 593 | cloudProjectId: 594 | framebufferDepthMemorylessMode: 0 595 | projectName: 596 | organizationId: 597 | cloudEnabled: 0 598 | enableNativePlatformBackendsForNewInputSystem: 0 599 | disableOldInputManagerSupport: 0 600 | legacyClampBlendShapeWeights: 0 601 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.1.0f1 2 | m_EditorVersionWithRevision: 2021.1.0f1 (61a549675243) 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: 3 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 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 16 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 16 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 0 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 0 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 16 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 0 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 0 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 0 112 | billboardsFaceCameraPosition: 0 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 16 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 0 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 0 136 | antiAliasing: 0 137 | softParticles: 0 138 | softVegetation: 1 139 | realtimeReflectionProbes: 0 140 | billboardsFaceCameraPosition: 0 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 16 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 0 153 | shadowResolution: 0 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 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: 0 164 | antiAliasing: 0 165 | softParticles: 0 166 | softVegetation: 1 167 | realtimeReflectionProbes: 0 168 | billboardsFaceCameraPosition: 0 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 16 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Standalone: 5 185 | Tizen: 2 186 | WebGL: 3 187 | WiiU: 5 188 | Windows Store Apps: 5 189 | XboxOne: 5 190 | iPhone: 2 191 | tvOS: 2 192 | -------------------------------------------------------------------------------- /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.1 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: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/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_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /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 | # AutoScreen for Unity2021 2 | 3 | AutoScreen provides a smart solution for Safe Area in Unity. 4 | 5 | ![Demo](https://user-images.githubusercontent.com/47236995/129486823-d767ad45-5f12-4799-a747-820441f437ff.gif) 6 | 7 | ## Description 8 | 9 | Unity's Device Simulator has a lot of information about Safe Area, but there is no feature to use them to support Safe Areas or to preview them comfortably in the Unity Editor. 10 | 11 | By using components such as `SafeArea` provided by AutoScreen, you can support and quickly check the Safe Area with simulator window regardless of whether it's playing or not. 12 | 13 | This is done by transforming the RectTransform, but the changes are not saved in the file, so it makes no difference in the version control system. 14 | 15 | ## Installation 16 | 17 | ### Requirement 18 | 19 | * Unity: 2021.1 or higher 20 | 21 | ### Install 22 | 23 | 1. Open the Package Manager 24 | 1. Press \[+▼\] button and click `Add package from git URL...` 25 | 1. Enter the following: 26 | * https://github.com/su10/AutoScreen-for-Unity2021.git?path=Packages/com.jagapippi.auto-screen 27 | 28 | or add a following line to `dependencies` field of your Packages/manifest.json. 29 | 30 | * `"com.jagapippi.auto-screen": "https://github.com/su10/AutoScreen-for-Unity2021.git?path=Packages/com.jagapippi.auto-screen"` 31 | 32 | ## License 33 | MIT 34 | --------------------------------------------------------------------------------