├── .gitignore ├── Assets ├── Editor.meta └── Editor │ ├── GameViewSizeHelper.cs │ ├── GameViewSizeHelper.cs.meta │ ├── GameViewSizePreset.cs │ ├── GameViewSizePreset.cs.meta │ ├── GameViewSizeSettings.cs │ └── GameViewSizeSettings.cs.meta ├── GameViewSizeSettings.unitypackage ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md ├── example1.png └── example2.png /.gitignore: -------------------------------------------------------------------------------- 1 | ### https://raw.github.com/github/gitignore/300be202df4d2bc4824249407fb617df64750627/Unity.gitignore 2 | 3 | [Ll]ibrary/ 4 | [Tt]emp/ 5 | [Oo]bj/ 6 | [Bb]uild/ 7 | [Bb]uilds/ 8 | Assets/AssetStoreTools* 9 | 10 | # Visual Studio cache directory 11 | .vs/ 12 | .vscode/ 13 | 14 | # Autogenerated VS/MD/Consulo solution and project files 15 | ExportedObj/ 16 | .consulo/ 17 | *.csproj 18 | *.unityproj 19 | *.sln 20 | *.suo 21 | *.tmp 22 | *.user 23 | *.userprefs 24 | *.pidb 25 | *.booproj 26 | *.svd 27 | *.pdb 28 | *.opendb 29 | 30 | # Unity3D generated meta files 31 | *.pidb.meta 32 | *.pdb.meta 33 | 34 | # Unity3D Generated File On Crash Reports 35 | sysinfo.txt 36 | 37 | # Builds 38 | *.apk 39 | 40 | ### https://raw.github.com/github/gitignore/300be202df4d2bc4824249407fb617df64750627/Global/macOS.gitignore 41 | 42 | # General 43 | .DS_Store 44 | .AppleDouble 45 | .LSOverride 46 | 47 | # Icon must end with two \r 48 | Icon 49 | 50 | 51 | # Thumbnails 52 | ._* 53 | 54 | # Files that might appear in the root of a volume 55 | .DocumentRevisions-V100 56 | .fseventsd 57 | .Spotlight-V100 58 | .TemporaryItems 59 | .Trashes 60 | .VolumeIcon.icns 61 | .com.apple.timemachine.donotpresent 62 | 63 | # Directories potentially created on remote AFP share 64 | .AppleDB 65 | .AppleDesktop 66 | Network Trash Folder 67 | Temporary Items 68 | .apdisk 69 | 70 | 71 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f3e0c7c6543f4a5c8424e2021fd0681 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/GameViewSizeHelper.cs: -------------------------------------------------------------------------------- 1 | //from https://github.com/anchan828/unity-GameViewSizeHelper 2 | //partial changed 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Reflection; 7 | using UnityEditor; 8 | using UnityEngine; 9 | 10 | namespace Kyusyukeigo.Helper 11 | { 12 | public class GameViewSizeHelper 13 | { 14 | #region public enum 15 | 16 | public enum GameViewSizeType 17 | { 18 | FixedResolution, 19 | AspectRatio 20 | } 21 | 22 | #endregion public enum 23 | 24 | #region private Fiald 25 | 26 | 27 | 28 | static BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance; 29 | 30 | #endregion private Fiald 31 | 32 | #region private Class 33 | 34 | private static GameViewSize _gameViewSize; 35 | public class GameViewSize 36 | { 37 | public GameViewSizeType type; 38 | public int width; 39 | public int height; 40 | public string baseText; 41 | } 42 | 43 | #endregion private Class 44 | 45 | #region public Method 46 | 47 | public static void AddCustomSize(GameViewSizeGroupType groupType, GameViewSize gameViewSize) 48 | { 49 | _gameViewSize = gameViewSize; 50 | object sizeType = Enum.Parse(Types.gameViewSizeType, gameViewSize.type.ToString()); 51 | 52 | ConstructorInfo ctor = Types.gameViewSize.GetConstructor(new Type[] 53 | { 54 | Types.gameViewSizeType, 55 | typeof(int), 56 | typeof(int), 57 | typeof(string) 58 | }); 59 | 60 | object instance_gameViewSize = ctor.Invoke(new object[] 61 | { 62 | sizeType, 63 | gameViewSize.width, 64 | gameViewSize.height, 65 | gameViewSize.baseText 66 | }); 67 | 68 | object instance_gameViewSizeGroup = GetGroup(groupType, instance); 69 | 70 | if (!Contains(instance_gameViewSizeGroup)) 71 | { 72 | AddCustomSize(instance_gameViewSizeGroup, instance_gameViewSize); 73 | } 74 | } 75 | 76 | public static void AddCustomSize(GameViewSizeGroupType groupType, GameViewSizeType type, int width, int height, string baseText) 77 | { 78 | AddCustomSize(groupType, new GameViewSize { type = type, width = width, height = height, baseText = baseText }); 79 | } 80 | 81 | public static bool RemoveCustomSize(GameViewSizeGroupType groupType, GameViewSizeType type, int width, int height, string baseText) 82 | { 83 | _gameViewSize = new GameViewSize { type = type, width = width, height = height, baseText = baseText }; 84 | return Remove(GetGroup(groupType, instance)); 85 | } 86 | public static bool RemoveCustomSize(GameViewSizeGroupType groupType, GameViewSize gameViewSize) 87 | { 88 | _gameViewSize = gameViewSize; 89 | return Remove(GetGroup(groupType, instance)); 90 | } 91 | public static bool Contains(GameViewSizeGroupType groupType, GameViewSizeType type, int width, int height, string baseText) 92 | { 93 | _gameViewSize = new GameViewSize { type = type, width = width, height = height, baseText = baseText }; 94 | return Contains(GetGroup(groupType, instance)); 95 | } 96 | public static bool Contains(GameViewSizeGroupType groupType, GameViewSize gameViewSize) 97 | { 98 | _gameViewSize = gameViewSize; 99 | return Contains(GetGroup(groupType, instance)); 100 | } 101 | 102 | 103 | public static void ChangeGameViewSize(GameViewSizeGroupType groupType, GameViewSizeType type, int width, int height, string baseText) 104 | { 105 | ChangeGameViewSize(groupType, new GameViewSize { type = type, width = width, height = height, baseText = baseText }); 106 | } 107 | 108 | public static void ChangeGameViewSize(GameViewSizeGroupType groupType, GameViewSize gameViewSize) 109 | { 110 | _gameViewSize = gameViewSize; 111 | EditorWindow gameView = EditorWindow.GetWindow(Types.gameView); 112 | PropertyInfo currentSizeGroupType = Types.gameView.GetProperty("currentSizeGroupType", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static); 113 | GameViewSizeGroupType currentType = (GameViewSizeGroupType)currentSizeGroupType.GetValue(gameView, null); 114 | if (groupType != currentType) 115 | { 116 | Debug.LogError(string.Format("GameViewSizeGroupType is {0}. but Current GameViewSizeGroupType is {1}.", groupType, currentType)); 117 | return; 118 | } 119 | object group = GetGroup(groupType, instance); 120 | int totalCount = GetTotalCount(group); 121 | int gameViewSizeLength = GetCustomCount(group); 122 | int index = -1; 123 | for (int i = totalCount - gameViewSizeLength; i < totalCount; i++) 124 | { 125 | object other_gameViewSize = GetGameViewSize(group, i); 126 | if (GameViewSize_Equals(_gameViewSize, other_gameViewSize)) 127 | { 128 | index = i; 129 | break; 130 | } 131 | } 132 | if (index != -1) 133 | { 134 | PropertyInfo selectedSizeIndex = Types.gameView.GetProperty("selectedSizeIndex", BindingFlags.Instance | BindingFlags.NonPublic); 135 | selectedSizeIndex.SetValue(gameView, index, null); 136 | } 137 | } 138 | 139 | public static GameViewSize[] GetAllCustomGameViewSize(GameViewSizeGroupType groupType) 140 | { 141 | object group = GetGroup(groupType, instance); 142 | int totalCount = GetTotalCount(group); 143 | int gameViewSizeLength = GetCustomCount(group); 144 | List allCustomGameViewSize = new List(); 145 | for (int i = totalCount - gameViewSizeLength; i < totalCount; i++) 146 | { 147 | object gameViewSize = GetGameViewSize(group, i); 148 | allCustomGameViewSize.Add(Convert(gameViewSize)); 149 | } 150 | return allCustomGameViewSize.ToArray(); 151 | } 152 | 153 | #endregion public Method 154 | 155 | #region private Method 156 | 157 | static bool Remove(object instance_gameViewSizeGroup) 158 | { 159 | int gameViewSizeLength = GetCustomCount(instance_gameViewSizeGroup); 160 | int totalCount = GetTotalCount(instance_gameViewSizeGroup); 161 | for (int i = totalCount - gameViewSizeLength; i < totalCount; i++) 162 | { 163 | object other_gameViewSize = GetGameViewSize(instance_gameViewSizeGroup, i); 164 | if (GameViewSize_Equals(_gameViewSize, other_gameViewSize)) 165 | { 166 | RemoveCustomSize(instance_gameViewSizeGroup, i); 167 | return true; 168 | } 169 | } 170 | return false; 171 | } 172 | 173 | static bool Contains(object instance_gameViewSizeGroup) 174 | { 175 | int gameViewSizeLength = GetCustomCount(instance_gameViewSizeGroup); 176 | int totalCount = GetTotalCount(instance_gameViewSizeGroup); 177 | for (int i = totalCount - gameViewSizeLength; i < totalCount; i++) 178 | { 179 | if (GameViewSize_Equals(_gameViewSize, GetGameViewSize(instance_gameViewSizeGroup, i))) 180 | { 181 | return true; 182 | } 183 | } 184 | return false; 185 | } 186 | 187 | private static bool GameViewSize_Equals(GameViewSize a, object b) 188 | { 189 | int b_width = (int)GetGameSizeProperty(b, "width"); 190 | int b_height = (int)GetGameSizeProperty(b, "height"); 191 | string b_baseText = (string)GetGameSizeProperty(b, "baseText"); 192 | GameViewSizeType b_sizeType = (GameViewSizeType)Enum.Parse(typeof(GameViewSizeType), GetGameSizeProperty(b, "sizeType").ToString()); 193 | 194 | return a.type == b_sizeType && a.width == b_width && a.height == b_height && a.baseText == b_baseText; 195 | } 196 | 197 | private static GameViewSize Convert(object instance) 198 | { 199 | int width = (int)GetGameSizeProperty(instance, "width"); 200 | int height = (int)GetGameSizeProperty(instance, "height"); 201 | string baseText = (string)GetGameSizeProperty(instance, "baseText"); 202 | GameViewSizeType type = (GameViewSizeType)Enum.Parse(typeof(GameViewSizeType), GetGameSizeProperty(instance, "sizeType").ToString()); 203 | return new GameViewSize { type = type, width = width, height = height, baseText = baseText }; 204 | } 205 | 206 | static object GetGameSizeProperty(object instance, string name) 207 | { 208 | return instance.GetType().GetProperty(name).GetValue(instance, new object[0]); 209 | } 210 | 211 | static object m_instance; 212 | 213 | static object instance 214 | { 215 | get 216 | { 217 | if (m_instance == null) 218 | { 219 | PropertyInfo propertyInfo_gameViewSizes = Types.gameViewSizes.GetProperty("instance"); 220 | m_instance = propertyInfo_gameViewSizes.GetValue(null, new object[0]); 221 | } 222 | return m_instance; 223 | } 224 | } 225 | 226 | static object GetGroup(GameViewSizeGroupType groupType, object instance_gameViewSizes) 227 | { 228 | Type[] returnTypes = new Type[] { groupType.GetType() }; 229 | object[] parameters = new object[] { groupType }; 230 | return instance_gameViewSizes.GetType().GetMethod("GetGroup", 231 | bindingFlags, 232 | null, 233 | returnTypes, 234 | null).Invoke(instance_gameViewSizes, parameters); 235 | } 236 | 237 | static object GetGameViewSize(object instance_gameViewSizeGroup, int i) 238 | { 239 | Type[] returnTypes = new Type[] { typeof(int) }; 240 | object[] parameters = new object[] { i }; 241 | return instance_gameViewSizeGroup.GetType().GetMethod("GetGameViewSize", 242 | bindingFlags, 243 | null, 244 | returnTypes, 245 | null).Invoke(instance_gameViewSizeGroup, parameters); 246 | } 247 | 248 | static int GetCustomCount(object instance_gameViewSizeGroup) 249 | { 250 | return (int)instance_gameViewSizeGroup.GetType().GetMethod("GetCustomCount", 251 | bindingFlags, 252 | null, 253 | new Type[0], 254 | null).Invoke(instance_gameViewSizeGroup, new object[0]); 255 | } 256 | 257 | static int GetTotalCount(object instance_gameViewSizeGroup) 258 | { 259 | return (int)instance_gameViewSizeGroup.GetType().GetMethod("GetTotalCount", 260 | bindingFlags, 261 | null, 262 | new Type[0], 263 | null).Invoke(instance_gameViewSizeGroup, new object[0]); 264 | } 265 | 266 | static void AddCustomSize(object instance_gameViewSizeGroup, object instance_gameViewSize) 267 | { 268 | Type[] returnTypes = new Type[] { Types.gameViewSize }; 269 | object[] parameters = new object[] { instance_gameViewSize }; 270 | instance_gameViewSizeGroup.GetType().GetMethod("AddCustomSize", 271 | bindingFlags, 272 | null, 273 | returnTypes, 274 | null).Invoke(instance_gameViewSizeGroup, parameters); 275 | } 276 | 277 | static void RemoveCustomSize(object instance_gameViewSizeGroup, int index) 278 | { 279 | Type[] returnTypes = new Type[] { typeof(int) }; 280 | object[] parameters = new object[] { index }; 281 | instance_gameViewSizeGroup.GetType().GetMethod("RemoveCustomSize", 282 | bindingFlags, 283 | null, 284 | returnTypes, 285 | null).Invoke(instance_gameViewSizeGroup, parameters); 286 | } 287 | 288 | #endregion private Method 289 | 290 | #region types 291 | 292 | private static class Types 293 | { 294 | private static string assemblyName = "UnityEditor.dll"; 295 | private static Assembly assembly = Assembly.Load(assemblyName); 296 | 297 | public static Type gameView = assembly.GetType("UnityEditor.GameView"); 298 | 299 | public static Type gameViewSizeType = assembly.GetType("UnityEditor.GameViewSizeType"); 300 | public static Type gameViewSize = assembly.GetType("UnityEditor.GameViewSize"); 301 | public static Type gameViewSizes = assembly.GetType("UnityEditor.ScriptableSingleton`1").MakeGenericType(assembly.GetType("UnityEditor.GameViewSizes")); 302 | } 303 | 304 | #endregion types 305 | 306 | } 307 | } 308 | -------------------------------------------------------------------------------- /Assets/Editor/GameViewSizeHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78355ac50ddcf46cd91478fa20e49133 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/GameViewSizePreset.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEditor; 3 | using Kyusyukeigo.Helper; 4 | 5 | namespace Syy.GameViewSizeControl 6 | { 7 | public static class GameViewSizePreset 8 | { 9 | private static Dictionary presets = new Dictionary(){ 10 | { 11 | GameViewSizeGroupType.Standalone,new GameViewSizeHelper.GameViewSize[] { 12 | // some preset 13 | } 14 | }, 15 | { 16 | GameViewSizeGroupType.iOS,new GameViewSizeHelper.GameViewSize[] { 17 | // iPhone 18 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPhone 5 5s 5c SE", width = 640, height = 1136, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 19 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPhone 5 5s 5c SE", width = 1136, height = 640, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 20 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPhone 6 6s 7 8", width = 750, height = 1334, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 21 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPhone 6 6s 7 8", width = 1334, height = 750, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 22 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPhone 6Plus 6sPlus 7Plus 8Plus", width = 1242, height = 2208, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 23 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPhone 6Plus 6sPlus 7Plus 8Plus", width = 2208, height = 1242, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 24 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPhone X", width = 1125, height = 2436, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 25 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPhone X", width = 2436, height = 1125, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 26 | // iPad 27 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPad Mini", width = 768, height = 1024, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 28 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPad Mini", width = 1024, height = 768, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 29 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPad Mini 2 3 4", width = 1536, height = 2048, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 30 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPad Mini 2 3 4", width = 2048, height = 1536, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 31 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPad iPad2", width = 768, height = 1024, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 32 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPad iPad2", width = 1024, height = 768, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 33 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPad 3 4,Air Air2,Pro9", width = 1536, height = 2048, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 34 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPad 3 4,Air Air2,Pro9", width = 2048, height = 1536, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 35 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPad Pro10.5", width = 1668, height = 2224, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 36 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPad Pro10.5", width = 2224, height = 1668, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 37 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 iPad Pro12.9", width = 2048, height = 2732, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 38 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 iPad Pro12.9", width = 2732, height = 2048, type = GameViewSizeHelper.GameViewSizeType.AspectRatio }, 39 | } 40 | }, 41 | { 42 | GameViewSizeGroupType.Android,new GameViewSizeHelper.GameViewSize[] { 43 | // some preset 44 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 Nexus 5X", width = 1080, height = 1920, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 45 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 Nexus 5X", width = 1920, height = 1080, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 46 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 Galaxy S4 S5 Note3", width = 1080, height = 1920, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 47 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 Galaxy S4 S5 Note3", width = 1920, height = 1080, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 48 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 Galaxy S6 S7", width = 1440, height = 2560, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 49 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 Galaxy S6 S7", width = 2560, height = 1440, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 50 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 Galaxy S8", width = 1440, height = 2960, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 51 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 Galaxy S8", width = 2960, height = 1440, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 52 | new GameViewSizeHelper.GameViewSize(){ baseText = "【↑】 Xperia XZ Z1 Z2 Z3", width = 1080, height = 1920, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 53 | new GameViewSizeHelper.GameViewSize(){ baseText = "【→】 Xperia XZ Z1 Z2 Z3", width = 1920, height = 1080, type = GameViewSizeHelper.GameViewSizeType.FixedResolution }, 54 | } 55 | }, 56 | { 57 | GameViewSizeGroupType.N3DS,new GameViewSizeHelper.GameViewSize[] { 58 | // some preset 59 | } 60 | }, 61 | { 62 | GameViewSizeGroupType.HMD,new GameViewSizeHelper.GameViewSize[] { 63 | // some preset 64 | } 65 | } 66 | }; 67 | public static GameViewSizeHelper.GameViewSize[] GetPresets(GameViewSizeGroupType groupType) 68 | { 69 | if(presets.ContainsKey(groupType)) 70 | { 71 | return presets[groupType]; 72 | } 73 | return new GameViewSizeHelper.GameViewSize[0]; 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Assets/Editor/GameViewSizePreset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c41b71943276420882ca119861f3df7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/GameViewSizeSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | using UnityEditor; 7 | using Kyusyukeigo.Helper; 8 | 9 | namespace Syy.GameViewSizeControl 10 | { 11 | public class GameViewSizeSettings : EditorWindow 12 | { 13 | [MenuItem("Window/GameViewSize Settings")] 14 | public static void Open() 15 | { 16 | var window = GetWindow("GameViewSize Settings"); 17 | var position = window.position; 18 | position.width = 710; 19 | position.height = 400; 20 | window.position = position; 21 | } 22 | 23 | Dictionary gameViewSizeMap = new Dictionary(); 24 | GameViewSizeGroupType selectedTab; 25 | string[] tabNames = new string[0]; 26 | Vector2 scrollPosition; 27 | void OnEnable() 28 | { 29 | #if UNITY_IPHONE 30 | selectedTab = GameViewSizeGroupType.iOS; 31 | #elif UNITY_ANDROID 32 | selectedTab = GameViewSizeGroupType.Android; 33 | #else 34 | selectedTab = GameViewSizeGroupType.Standalone; 35 | #endif 36 | tabNames = Enum.GetNames(typeof(GameViewSizeGroupType)); 37 | 38 | foreach (var type in Enum.GetValues(typeof(GameViewSizeGroupType))) 39 | { 40 | var groupType = (GameViewSizeGroupType) type; 41 | gameViewSizeMap[groupType] = GameViewSizeHelper.GetAllCustomGameViewSize((GameViewSizeGroupType)groupType); 42 | } 43 | } 44 | 45 | void OnGUI() 46 | { 47 | var removeTargets = new List(); 48 | var addTargets = new List(); 49 | 50 | selectedTab = (GameViewSizeGroupType)GUILayout.Toolbar((int)selectedTab, tabNames); 51 | var presets = GameViewSizePreset.GetPresets(selectedTab); 52 | var customSizes = gameViewSizeMap[selectedTab]; 53 | 54 | using (var scroll = new EditorGUILayout.ScrollViewScope(scrollPosition)) 55 | { 56 | scrollPosition = scroll.scrollPosition; 57 | EditorGUILayout.Space(); 58 | using (new EditorGUILayout.HorizontalScope()) 59 | { 60 | EditorGUILayout.LabelField("■■■PRESET■■■■■■■■■■■■■■■■■■■■■■■■", EditorStyles.boldLabel); 61 | if (GUILayout.Button("Add all preset", GUILayout.Width(140))) 62 | { 63 | addTargets.AddRange(presets); 64 | } 65 | if (GUILayout.Button("Remove all preset", GUILayout.Width(140))) 66 | { 67 | removeTargets.AddRange(presets); 68 | } 69 | } 70 | EditorGUILayout.Space(); 71 | if (presets.Length == 0) 72 | { 73 | EditorGUILayout.LabelField("Nothing preset GameViewSize. Please request https://github.com/Syy12345-Unity/GameViewSizeController"); 74 | } 75 | foreach (var gameViewSize in presets) 76 | { 77 | bool contains = customSizes.Any(data => GameViewSizeEqual(data,gameViewSize)); 78 | using (new EditorGUILayout.VerticalScope("ShurikenModuleTitle")) 79 | { 80 | using (new EditorGUILayout.HorizontalScope()) 81 | { 82 | if (contains) 83 | { 84 | if (GUILayout.Button("", EditorStyles.label, GUILayout.Width(55))) 85 | { 86 | } 87 | } 88 | else 89 | { 90 | if (GUILayout.Button("Add", EditorStyles.miniButton, GUILayout.Width(55))) 91 | { 92 | addTargets.Add(gameViewSize); 93 | } 94 | } 95 | EditorGUILayout.LabelField(gameViewSize.baseText, GUILayout.Width(300)); 96 | EditorGUILayout.LabelField(string.Format("{0} × {1}", gameViewSize.width, gameViewSize.height)); 97 | } 98 | } 99 | } 100 | 101 | EditorGUILayout.Space(); 102 | EditorGUILayout.Space(); 103 | EditorGUILayout.Space(); 104 | EditorGUILayout.LabelField("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■", EditorStyles.boldLabel); 105 | EditorGUILayout.LabelField("■■■REGISTERED■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■", EditorStyles.boldLabel); 106 | EditorGUILayout.LabelField("■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■", EditorStyles.boldLabel); 107 | EditorGUILayout.LabelField("Quick change GameViewSize by click title", EditorStyles.boldLabel); 108 | EditorGUILayout.Space(); 109 | if(customSizes.Length == 0) 110 | { 111 | EditorGUILayout.LabelField("Nothing registered custom GameViewSize"); 112 | } 113 | foreach (var gameViewSize in customSizes) 114 | { 115 | using (new EditorGUILayout.VerticalScope("ShurikenModuleTitle")) 116 | { 117 | using (new EditorGUILayout.HorizontalScope()) 118 | { 119 | if (GUILayout.Button("Remove", EditorStyles.miniButton, GUILayout.Width(55))) 120 | { 121 | removeTargets.Add(gameViewSize); 122 | } 123 | if(GUILayout.Button(gameViewSize.baseText, EditorStyles.label, GUILayout.Width(300))) 124 | { 125 | GameViewSizeHelper.ChangeGameViewSize(selectedTab, gameViewSize); 126 | } 127 | // EditorGUILayout.LabelField(gameViewSize.baseText); 128 | EditorGUILayout.LabelField(string.Format("{0} × {1}", gameViewSize.width, gameViewSize.height)); 129 | } 130 | } 131 | } 132 | 133 | if (removeTargets.Count != 0) 134 | { 135 | var list = customSizes.ToList(); 136 | foreach (var target in removeTargets) 137 | { 138 | GameViewSizeHelper.RemoveCustomSize(selectedTab, target); 139 | var findObj = list.FirstOrDefault(data => GameViewSizeEqual(data,target)); 140 | if(findObj != null) 141 | { 142 | list.Remove(findObj); 143 | } 144 | } 145 | gameViewSizeMap[selectedTab] = list.ToArray(); 146 | } 147 | 148 | if (addTargets.Count != 0) 149 | { 150 | var list = customSizes.ToList(); 151 | foreach (var target in addTargets) 152 | { 153 | var findObj = list.FirstOrDefault(data => GameViewSizeEqual(data, target)); 154 | if(findObj == null) 155 | { 156 | GameViewSizeHelper.AddCustomSize(selectedTab, target); 157 | list.Add(target); 158 | } 159 | } 160 | gameViewSizeMap[selectedTab] = list.ToArray(); 161 | } 162 | EditorGUILayout.Space(); 163 | } 164 | EditorGUILayout.Space(); 165 | } 166 | 167 | private bool GameViewSizeEqual(GameViewSizeHelper.GameViewSize a, GameViewSizeHelper.GameViewSize b) 168 | { 169 | return a.baseText == b.baseText && a.width == b.width && a.height == b.height && a.type == b.type; 170 | } 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /Assets/Editor/GameViewSizeSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ddf7d7a6d47c4e7f84eb3cd4d2bb9e0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /GameViewSizeSettings.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syy9/GameViewSizeSettings/7983470766b60f92f51dcd0e5b25463e4b4c1c4c/GameViewSizeSettings.unitypackage -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "2.0.16", 5 | "com.unity.package-manager-ui": "1.9.11", 6 | "com.unity.purchasing": "2.0.3", 7 | "com.unity.textmeshpro": "1.2.4", 8 | "com.unity.modules.ai": "1.0.0", 9 | "com.unity.modules.animation": "1.0.0", 10 | "com.unity.modules.assetbundle": "1.0.0", 11 | "com.unity.modules.audio": "1.0.0", 12 | "com.unity.modules.cloth": "1.0.0", 13 | "com.unity.modules.director": "1.0.0", 14 | "com.unity.modules.imageconversion": "1.0.0", 15 | "com.unity.modules.imgui": "1.0.0", 16 | "com.unity.modules.jsonserialize": "1.0.0", 17 | "com.unity.modules.particlesystem": "1.0.0", 18 | "com.unity.modules.physics": "1.0.0", 19 | "com.unity.modules.physics2d": "1.0.0", 20 | "com.unity.modules.screencapture": "1.0.0", 21 | "com.unity.modules.terrain": "1.0.0", 22 | "com.unity.modules.terrainphysics": "1.0.0", 23 | "com.unity.modules.tilemap": "1.0.0", 24 | "com.unity.modules.ui": "1.0.0", 25 | "com.unity.modules.uielements": "1.0.0", 26 | "com.unity.modules.umbra": "1.0.0", 27 | "com.unity.modules.unityanalytics": "1.0.0", 28 | "com.unity.modules.unitywebrequest": "1.0.0", 29 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 30 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 31 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 32 | "com.unity.modules.unitywebrequestwww": "1.0.0", 33 | "com.unity.modules.vehicles": "1.0.0", 34 | "com.unity.modules.video": "1.0.0", 35 | "com.unity.modules.vr": "1.0.0", 36 | "com.unity.modules.wind": "1.0.0", 37 | "com.unity.modules.xr": "1.0.0" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /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: 7 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: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /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 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 99c9720ab356a0642a771bea13969a05 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /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: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /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: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /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/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: 3 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_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /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: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /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: 0215dc69371184a5986be344c9bf65da 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: GameViewSizeController 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 | androidBlitType: 0 67 | defaultIsNativeResolution: 1 68 | macRetinaSupport: 1 69 | runInBackground: 1 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | Force IOS Speakers When Recording: 0 74 | deferSystemGesturesMode: 0 75 | hideHomeButton: 0 76 | submitAnalytics: 1 77 | usePlayerLog: 1 78 | bakeCollisionMeshes: 0 79 | forceSingleInstance: 0 80 | resizableWindow: 0 81 | useMacAppStoreValidation: 0 82 | macAppStoreCategory: public.app-category.games 83 | gpuSkinning: 1 84 | graphicsJobs: 0 85 | xboxPIXTextureCapture: 0 86 | xboxEnableAvatar: 0 87 | xboxEnableKinect: 0 88 | xboxEnableKinectAutoTracking: 0 89 | xboxEnableFitness: 0 90 | visibleInBackground: 1 91 | allowFullscreenSwitch: 1 92 | graphicsJobMode: 0 93 | fullscreenMode: 1 94 | xboxSpeechDB: 0 95 | xboxEnableHeadOrientation: 0 96 | xboxEnableGuest: 0 97 | xboxEnablePIXSampling: 0 98 | metalFramebufferOnly: 0 99 | n3dsDisableStereoscopicView: 0 100 | n3dsEnableSharedListOpt: 1 101 | n3dsEnableVSync: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOnePresentImmediateThreshold: 0 109 | switchQueueCommandMemory: 0 110 | videoMemoryForVertexBuffers: 0 111 | psp2PowerMode: 0 112 | psp2AcquireBGM: 1 113 | vulkanEnableSetSRGBWrite: 0 114 | vulkanUseSWCommandBuffers: 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: 0 127 | xboxOneEnable7thCore: 0 128 | vrSettings: 129 | cardboard: 130 | depthFormat: 0 131 | enableTransitionView: 0 132 | daydream: 133 | depthFormat: 0 134 | useSustainedPerformanceMode: 0 135 | enableVideoLayer: 0 136 | useProtectedVideoMemory: 0 137 | minimumSupportedHeadTracking: 0 138 | maximumSupportedHeadTracking: 1 139 | hololens: 140 | depthFormat: 1 141 | depthBufferSharingEnabled: 0 142 | oculus: 143 | sharedDepthBuffer: 0 144 | dashSupport: 0 145 | enable360StereoCapture: 0 146 | protectGraphicsMemory: 0 147 | useHDRDisplay: 0 148 | m_ColorGamuts: 00000000 149 | targetPixelDensity: 30 150 | resolutionScalingMode: 0 151 | androidSupportedAspectRatio: 1 152 | androidMaxAspectRatio: 2.1 153 | applicationIdentifier: {} 154 | buildNumber: {} 155 | AndroidBundleVersionCode: 1 156 | AndroidMinSdkVersion: 16 157 | AndroidTargetSdkVersion: 0 158 | AndroidPreferredInstallLocation: 1 159 | aotOptions: 160 | stripEngineCode: 1 161 | iPhoneStrippingLevel: 0 162 | iPhoneScriptCallOptimization: 0 163 | ForceInternetPermission: 0 164 | ForceSDCardPermission: 0 165 | CreateWallpaper: 0 166 | APKExpansionFiles: 0 167 | keepLoadedShadersAlive: 0 168 | StripUnusedMeshComponents: 1 169 | VertexChannelCompressionMask: 4054 170 | iPhoneSdkVersion: 988 171 | iOSTargetOSVersionString: 8.0 172 | tvOSSdkVersion: 0 173 | tvOSRequireExtendedGameController: 0 174 | tvOSTargetOSVersionString: 9.0 175 | uIPrerenderedIcon: 0 176 | uIRequiresPersistentWiFi: 0 177 | uIRequiresFullScreen: 1 178 | uIStatusBarHidden: 1 179 | uIExitOnSuspend: 0 180 | uIStatusBarStyle: 0 181 | iPhoneSplashScreen: {fileID: 0} 182 | iPhoneHighResSplashScreen: {fileID: 0} 183 | iPhoneTallHighResSplashScreen: {fileID: 0} 184 | iPhone47inSplashScreen: {fileID: 0} 185 | iPhone55inPortraitSplashScreen: {fileID: 0} 186 | iPhone55inLandscapeSplashScreen: {fileID: 0} 187 | iPhone58inPortraitSplashScreen: {fileID: 0} 188 | iPhone58inLandscapeSplashScreen: {fileID: 0} 189 | iPadPortraitSplashScreen: {fileID: 0} 190 | iPadHighResPortraitSplashScreen: {fileID: 0} 191 | iPadLandscapeSplashScreen: {fileID: 0} 192 | iPadHighResLandscapeSplashScreen: {fileID: 0} 193 | appleTVSplashScreen: {fileID: 0} 194 | appleTVSplashScreen2x: {fileID: 0} 195 | tvOSSmallIconLayers: [] 196 | tvOSSmallIconLayers2x: [] 197 | tvOSLargeIconLayers: [] 198 | tvOSLargeIconLayers2x: [] 199 | tvOSTopShelfImageLayers: [] 200 | tvOSTopShelfImageLayers2x: [] 201 | tvOSTopShelfImageWideLayers: [] 202 | tvOSTopShelfImageWideLayers2x: [] 203 | iOSLaunchScreenType: 0 204 | iOSLaunchScreenPortrait: {fileID: 0} 205 | iOSLaunchScreenLandscape: {fileID: 0} 206 | iOSLaunchScreenBackgroundColor: 207 | serializedVersion: 2 208 | rgba: 0 209 | iOSLaunchScreenFillPct: 100 210 | iOSLaunchScreenSize: 100 211 | iOSLaunchScreenCustomXibPath: 212 | iOSLaunchScreeniPadType: 0 213 | iOSLaunchScreeniPadImage: {fileID: 0} 214 | iOSLaunchScreeniPadBackgroundColor: 215 | serializedVersion: 2 216 | rgba: 0 217 | iOSLaunchScreeniPadFillPct: 100 218 | iOSLaunchScreeniPadSize: 100 219 | iOSLaunchScreeniPadCustomXibPath: 220 | iOSUseLaunchScreenStoryboard: 0 221 | iOSLaunchScreenCustomStoryboardPath: 222 | iOSDeviceRequirements: [] 223 | iOSURLSchemes: [] 224 | iOSBackgroundModes: 0 225 | iOSMetalForceHardShadows: 0 226 | metalEditorSupport: 1 227 | metalAPIValidation: 1 228 | iOSRenderExtraFrameOnPause: 0 229 | appleDeveloperTeamID: 230 | iOSManualSigningProvisioningProfileID: 231 | tvOSManualSigningProvisioningProfileID: 232 | iOSManualSigningProvisioningProfileType: 0 233 | tvOSManualSigningProvisioningProfileType: 0 234 | appleEnableAutomaticSigning: 0 235 | iOSRequireARKit: 0 236 | appleEnableProMotion: 0 237 | vulkanEditorSupport: 0 238 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 239 | templatePackageId: com.unity.3d@1.0.2 240 | templateDefaultScene: Assets/Scenes/SampleScene.unity 241 | AndroidTargetArchitectures: 5 242 | AndroidSplashScreenScale: 0 243 | androidSplashScreen: {fileID: 0} 244 | AndroidKeystoreName: 245 | AndroidKeyaliasName: 246 | AndroidBuildApkPerCpuArchitecture: 0 247 | AndroidTVCompatibility: 1 248 | AndroidIsGame: 1 249 | AndroidEnableTango: 0 250 | androidEnableBanner: 1 251 | androidUseLowAccuracyLocation: 0 252 | m_AndroidBanners: 253 | - width: 320 254 | height: 180 255 | banner: {fileID: 0} 256 | androidGamepadSupportLevel: 0 257 | resolutionDialogBanner: {fileID: 0} 258 | m_BuildTargetIcons: [] 259 | m_BuildTargetPlatformIcons: [] 260 | m_BuildTargetBatching: 261 | - m_BuildTarget: Standalone 262 | m_StaticBatching: 1 263 | m_DynamicBatching: 0 264 | - m_BuildTarget: tvOS 265 | m_StaticBatching: 1 266 | m_DynamicBatching: 0 267 | - m_BuildTarget: Android 268 | m_StaticBatching: 1 269 | m_DynamicBatching: 0 270 | - m_BuildTarget: iPhone 271 | m_StaticBatching: 1 272 | m_DynamicBatching: 0 273 | - m_BuildTarget: WebGL 274 | m_StaticBatching: 0 275 | m_DynamicBatching: 0 276 | m_BuildTargetGraphicsAPIs: 277 | - m_BuildTarget: AndroidPlayer 278 | m_APIs: 0b00000015000000 279 | m_Automatic: 1 280 | - m_BuildTarget: iOSSupport 281 | m_APIs: 10000000 282 | m_Automatic: 1 283 | - m_BuildTarget: AppleTVSupport 284 | m_APIs: 10000000 285 | m_Automatic: 0 286 | - m_BuildTarget: WebGLSupport 287 | m_APIs: 0b000000 288 | m_Automatic: 1 289 | m_BuildTargetVRSettings: 290 | - m_BuildTarget: Standalone 291 | m_Enabled: 0 292 | m_Devices: 293 | - Oculus 294 | - OpenVR 295 | m_BuildTargetEnableVuforiaSettings: [] 296 | openGLRequireES31: 0 297 | openGLRequireES31AEP: 0 298 | m_TemplateCustomTags: {} 299 | mobileMTRendering: 300 | Android: 1 301 | iPhone: 1 302 | tvOS: 1 303 | m_BuildTargetGroupLightmapEncodingQuality: [] 304 | m_BuildTargetGroupLightmapSettings: [] 305 | playModeTestRunnerEnabled: 0 306 | runPlayModeTestAsEditModeTest: 0 307 | actionOnDotNetUnhandledException: 1 308 | enableInternalProfiler: 0 309 | logObjCUncaughtExceptions: 1 310 | enableCrashReportAPI: 0 311 | cameraUsageDescription: 312 | locationUsageDescription: 313 | microphoneUsageDescription: 314 | switchNetLibKey: 315 | switchSocketMemoryPoolSize: 6144 316 | switchSocketAllocatorPoolSize: 128 317 | switchSocketConcurrencyLimit: 14 318 | switchScreenResolutionBehavior: 2 319 | switchUseCPUProfiler: 0 320 | switchApplicationID: 0x01004b9000490000 321 | switchNSODependencies: 322 | switchTitleNames_0: 323 | switchTitleNames_1: 324 | switchTitleNames_2: 325 | switchTitleNames_3: 326 | switchTitleNames_4: 327 | switchTitleNames_5: 328 | switchTitleNames_6: 329 | switchTitleNames_7: 330 | switchTitleNames_8: 331 | switchTitleNames_9: 332 | switchTitleNames_10: 333 | switchTitleNames_11: 334 | switchTitleNames_12: 335 | switchTitleNames_13: 336 | switchTitleNames_14: 337 | switchPublisherNames_0: 338 | switchPublisherNames_1: 339 | switchPublisherNames_2: 340 | switchPublisherNames_3: 341 | switchPublisherNames_4: 342 | switchPublisherNames_5: 343 | switchPublisherNames_6: 344 | switchPublisherNames_7: 345 | switchPublisherNames_8: 346 | switchPublisherNames_9: 347 | switchPublisherNames_10: 348 | switchPublisherNames_11: 349 | switchPublisherNames_12: 350 | switchPublisherNames_13: 351 | switchPublisherNames_14: 352 | switchIcons_0: {fileID: 0} 353 | switchIcons_1: {fileID: 0} 354 | switchIcons_2: {fileID: 0} 355 | switchIcons_3: {fileID: 0} 356 | switchIcons_4: {fileID: 0} 357 | switchIcons_5: {fileID: 0} 358 | switchIcons_6: {fileID: 0} 359 | switchIcons_7: {fileID: 0} 360 | switchIcons_8: {fileID: 0} 361 | switchIcons_9: {fileID: 0} 362 | switchIcons_10: {fileID: 0} 363 | switchIcons_11: {fileID: 0} 364 | switchIcons_12: {fileID: 0} 365 | switchIcons_13: {fileID: 0} 366 | switchIcons_14: {fileID: 0} 367 | switchSmallIcons_0: {fileID: 0} 368 | switchSmallIcons_1: {fileID: 0} 369 | switchSmallIcons_2: {fileID: 0} 370 | switchSmallIcons_3: {fileID: 0} 371 | switchSmallIcons_4: {fileID: 0} 372 | switchSmallIcons_5: {fileID: 0} 373 | switchSmallIcons_6: {fileID: 0} 374 | switchSmallIcons_7: {fileID: 0} 375 | switchSmallIcons_8: {fileID: 0} 376 | switchSmallIcons_9: {fileID: 0} 377 | switchSmallIcons_10: {fileID: 0} 378 | switchSmallIcons_11: {fileID: 0} 379 | switchSmallIcons_12: {fileID: 0} 380 | switchSmallIcons_13: {fileID: 0} 381 | switchSmallIcons_14: {fileID: 0} 382 | switchManualHTML: 383 | switchAccessibleURLs: 384 | switchLegalInformation: 385 | switchMainThreadStackSize: 1048576 386 | switchPresenceGroupId: 387 | switchLogoHandling: 0 388 | switchReleaseVersion: 0 389 | switchDisplayVersion: 1.0.0 390 | switchStartupUserAccount: 0 391 | switchTouchScreenUsage: 0 392 | switchSupportedLanguagesMask: 0 393 | switchLogoType: 0 394 | switchApplicationErrorCodeCategory: 395 | switchUserAccountSaveDataSize: 0 396 | switchUserAccountSaveDataJournalSize: 0 397 | switchApplicationAttribute: 0 398 | switchCardSpecSize: -1 399 | switchCardSpecClock: -1 400 | switchRatingsMask: 0 401 | switchRatingsInt_0: 0 402 | switchRatingsInt_1: 0 403 | switchRatingsInt_2: 0 404 | switchRatingsInt_3: 0 405 | switchRatingsInt_4: 0 406 | switchRatingsInt_5: 0 407 | switchRatingsInt_6: 0 408 | switchRatingsInt_7: 0 409 | switchRatingsInt_8: 0 410 | switchRatingsInt_9: 0 411 | switchRatingsInt_10: 0 412 | switchRatingsInt_11: 0 413 | switchLocalCommunicationIds_0: 414 | switchLocalCommunicationIds_1: 415 | switchLocalCommunicationIds_2: 416 | switchLocalCommunicationIds_3: 417 | switchLocalCommunicationIds_4: 418 | switchLocalCommunicationIds_5: 419 | switchLocalCommunicationIds_6: 420 | switchLocalCommunicationIds_7: 421 | switchParentalControl: 0 422 | switchAllowsScreenshot: 1 423 | switchAllowsVideoCapturing: 1 424 | switchAllowsRuntimeAddOnContentInstall: 0 425 | switchDataLossConfirmation: 0 426 | switchSupportedNpadStyles: 3 427 | switchNativeFsCacheSize: 32 428 | switchIsHoldTypeHorizontal: 0 429 | switchSupportedNpadCount: 8 430 | switchSocketConfigEnabled: 0 431 | switchTcpInitialSendBufferSize: 32 432 | switchTcpInitialReceiveBufferSize: 64 433 | switchTcpAutoSendBufferSizeMax: 256 434 | switchTcpAutoReceiveBufferSizeMax: 256 435 | switchUdpSendBufferSize: 9 436 | switchUdpReceiveBufferSize: 42 437 | switchSocketBufferEfficiency: 4 438 | switchSocketInitializeEnabled: 1 439 | switchNetworkInterfaceManagerInitializeEnabled: 1 440 | switchPlayerConnectionEnabled: 1 441 | ps4NPAgeRating: 12 442 | ps4NPTitleSecret: 443 | ps4NPTrophyPackPath: 444 | ps4ParentalLevel: 11 445 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 446 | ps4Category: 0 447 | ps4MasterVersion: 01.00 448 | ps4AppVersion: 01.00 449 | ps4AppType: 0 450 | ps4ParamSfxPath: 451 | ps4VideoOutPixelFormat: 0 452 | ps4VideoOutInitialWidth: 1920 453 | ps4VideoOutBaseModeInitialWidth: 1920 454 | ps4VideoOutReprojectionRate: 60 455 | ps4PronunciationXMLPath: 456 | ps4PronunciationSIGPath: 457 | ps4BackgroundImagePath: 458 | ps4StartupImagePath: 459 | ps4StartupImagesFolder: 460 | ps4IconImagesFolder: 461 | ps4SaveDataImagePath: 462 | ps4SdkOverride: 463 | ps4BGMPath: 464 | ps4ShareFilePath: 465 | ps4ShareOverlayImagePath: 466 | ps4PrivacyGuardImagePath: 467 | ps4NPtitleDatPath: 468 | ps4RemotePlayKeyAssignment: -1 469 | ps4RemotePlayKeyMappingDir: 470 | ps4PlayTogetherPlayerCount: 0 471 | ps4EnterButtonAssignment: 1 472 | ps4ApplicationParam1: 0 473 | ps4ApplicationParam2: 0 474 | ps4ApplicationParam3: 0 475 | ps4ApplicationParam4: 0 476 | ps4DownloadDataSize: 0 477 | ps4GarlicHeapSize: 2048 478 | ps4ProGarlicHeapSize: 2560 479 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 480 | ps4pnSessions: 1 481 | ps4pnPresence: 1 482 | ps4pnFriends: 1 483 | ps4pnGameCustomData: 1 484 | playerPrefsSupport: 0 485 | enableApplicationExit: 0 486 | restrictedAudioUsageRights: 0 487 | ps4UseResolutionFallback: 0 488 | ps4ReprojectionSupport: 0 489 | ps4UseAudio3dBackend: 0 490 | ps4SocialScreenEnabled: 0 491 | ps4ScriptOptimizationLevel: 0 492 | ps4Audio3dVirtualSpeakerCount: 14 493 | ps4attribCpuUsage: 0 494 | ps4PatchPkgPath: 495 | ps4PatchLatestPkgPath: 496 | ps4PatchChangeinfoPath: 497 | ps4PatchDayOne: 0 498 | ps4attribUserManagement: 0 499 | ps4attribMoveSupport: 0 500 | ps4attrib3DSupport: 0 501 | ps4attribShareSupport: 0 502 | ps4attribExclusiveVR: 0 503 | ps4disableAutoHideSplash: 0 504 | ps4videoRecordingFeaturesUsed: 0 505 | ps4contentSearchFeaturesUsed: 0 506 | ps4attribEyeToEyeDistanceSettingVR: 0 507 | ps4IncludedModules: [] 508 | monoEnv: 509 | psp2Splashimage: {fileID: 0} 510 | psp2NPTrophyPackPath: 511 | psp2NPSupportGBMorGJP: 0 512 | psp2NPAgeRating: 12 513 | psp2NPTitleDatPath: 514 | psp2NPCommsID: 515 | psp2NPCommunicationsID: 516 | psp2NPCommsPassphrase: 517 | psp2NPCommsSig: 518 | psp2ParamSfxPath: 519 | psp2ManualPath: 520 | psp2LiveAreaGatePath: 521 | psp2LiveAreaBackroundPath: 522 | psp2LiveAreaPath: 523 | psp2LiveAreaTrialPath: 524 | psp2PatchChangeInfoPath: 525 | psp2PatchOriginalPackage: 526 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 527 | psp2KeystoneFile: 528 | psp2MemoryExpansionMode: 0 529 | psp2DRMType: 0 530 | psp2StorageType: 0 531 | psp2MediaCapacity: 0 532 | psp2DLCConfigPath: 533 | psp2ThumbnailPath: 534 | psp2BackgroundPath: 535 | psp2SoundPath: 536 | psp2TrophyCommId: 537 | psp2TrophyPackagePath: 538 | psp2PackagedResourcesPath: 539 | psp2SaveDataQuota: 10240 540 | psp2ParentalLevel: 1 541 | psp2ShortTitle: Not Set 542 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 543 | psp2Category: 0 544 | psp2MasterVersion: 01.00 545 | psp2AppVersion: 01.00 546 | psp2TVBootMode: 0 547 | psp2EnterButtonAssignment: 2 548 | psp2TVDisableEmu: 0 549 | psp2AllowTwitterDialog: 1 550 | psp2Upgradable: 0 551 | psp2HealthWarning: 0 552 | psp2UseLibLocation: 0 553 | psp2InfoBarOnStartup: 0 554 | psp2InfoBarColor: 0 555 | psp2ScriptOptimizationLevel: 0 556 | splashScreenBackgroundSourceLandscape: {fileID: 0} 557 | splashScreenBackgroundSourcePortrait: {fileID: 0} 558 | spritePackerPolicy: 559 | webGLMemorySize: 256 560 | webGLExceptionSupport: 1 561 | webGLNameFilesAsHashes: 0 562 | webGLDataCaching: 1 563 | webGLDebugSymbols: 0 564 | webGLEmscriptenArgs: 565 | webGLModulesDirectory: 566 | webGLTemplate: APPLICATION:Default 567 | webGLAnalyzeBuildSize: 0 568 | webGLUseEmbeddedResources: 0 569 | webGLCompressionFormat: 1 570 | webGLLinkerTarget: 1 571 | scriptingDefineSymbols: {} 572 | platformArchitecture: {} 573 | scriptingBackend: {} 574 | il2cppCompilerConfiguration: {} 575 | incrementalIl2cppBuild: {} 576 | allowUnsafeCode: 0 577 | additionalIl2CppArgs: 578 | scriptingRuntimeVersion: 0 579 | apiCompatibilityLevelPerPlatform: {} 580 | m_RenderingPath: 1 581 | m_MobileRenderingPath: 1 582 | metroPackageName: Template_3D 583 | metroPackageVersion: 584 | metroCertificatePath: 585 | metroCertificatePassword: 586 | metroCertificateSubject: 587 | metroCertificateIssuer: 588 | metroCertificateNotAfter: 0000000000000000 589 | metroApplicationDescription: Template_3D 590 | wsaImages: {} 591 | metroTileShortName: 592 | metroTileShowName: 0 593 | metroMediumTileShowName: 0 594 | metroLargeTileShowName: 0 595 | metroWideTileShowName: 0 596 | metroDefaultTileSize: 1 597 | metroTileForegroundText: 2 598 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 599 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 600 | a: 1} 601 | metroSplashScreenUseBackgroundColor: 0 602 | platformCapabilities: {} 603 | metroFTAName: 604 | metroFTAFileTypes: [] 605 | metroProtocolName: 606 | metroCompilationOverrides: 1 607 | n3dsUseExtSaveData: 0 608 | n3dsCompressStaticMem: 1 609 | n3dsExtSaveDataNumber: 0x12345 610 | n3dsStackSize: 131072 611 | n3dsTargetPlatform: 2 612 | n3dsRegion: 7 613 | n3dsMediaSize: 0 614 | n3dsLogoStyle: 3 615 | n3dsTitle: GameName 616 | n3dsProductCode: 617 | n3dsApplicationId: 0xFF3FF 618 | XboxOneProductId: 619 | XboxOneUpdateKey: 620 | XboxOneSandboxId: 621 | XboxOneContentId: 622 | XboxOneTitleId: 623 | XboxOneSCId: 624 | XboxOneGameOsOverridePath: 625 | XboxOnePackagingOverridePath: 626 | XboxOneAppManifestOverridePath: 627 | XboxOneVersion: 1.0.0.0 628 | XboxOnePackageEncryption: 0 629 | XboxOnePackageUpdateGranularity: 2 630 | XboxOneDescription: 631 | XboxOneLanguage: 632 | - enus 633 | XboxOneCapability: [] 634 | XboxOneGameRating: {} 635 | XboxOneIsContentPackage: 0 636 | XboxOneEnableGPUVariability: 0 637 | XboxOneSockets: {} 638 | XboxOneSplashScreen: {fileID: 0} 639 | XboxOneAllowedProductIds: [] 640 | XboxOnePersistentLocalStorageSize: 0 641 | XboxOneXTitleMemory: 8 642 | xboxOneScriptCompiler: 0 643 | vrEditorSettings: 644 | daydream: 645 | daydreamIconForeground: {fileID: 0} 646 | daydreamIconBackground: {fileID: 0} 647 | cloudServicesEnabled: 648 | UNet: 1 649 | facebookSdkVersion: 7.9.4 650 | apiCompatibilityLevel: 2 651 | cloudProjectId: 17539421-3712-4c11-ae6b-337093cddc4f 652 | projectName: GameViewSizeController 653 | organizationId: syy12345 654 | cloudEnabled: 0 655 | enableNativePlatformBackendsForNewInputSystem: 0 656 | disableOldInputManagerSupport: 0 657 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.2.1f1 2 | -------------------------------------------------------------------------------- /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: 4 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: 4 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: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 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: 1 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: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 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: 1 108 | antiAliasing: 2 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 40 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: 1 136 | antiAliasing: 4 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 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: 1 164 | antiAliasing: 4 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSP2: 2 183 | Standalone: 5 184 | Tizen: 2 185 | WebGL: 3 186 | WiiU: 5 187 | Windows Store Apps: 5 188 | XboxOne: 5 189 | iPhone: 2 190 | tvOS: 2 191 | -------------------------------------------------------------------------------- /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 | - PostProcessing 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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 1 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GameViewSize Settings 2 | 3 | 4 | Easily register, delete and change GameViewSize in Unity 5 | 6 | ## Description 7 | 8 | It is troublesome to register, delete, or change GameViewSize using the default function of Unity. [GameViewSize Settings] is a tool that can do these easily. We prepare representative terminal sizes of iPhone and Android as presets. You can change GameViewSize with one button. If you want to easily incorporate the screen size necessary for development and debugging please try using this tool. 9 | 10 | ![](example1.png) 11 | ![](example2.png) 12 | 13 | ## Feature 14 | * Register the screen size of a representative smartphone terminal in GameViewSize. 15 | * Delete registered GameViewSize 16 | * Change GameViewSize 17 | 18 | ## Usage 19 | import GameViewSizeSettings.unitypackage 20 | 21 | #### Open EditorWindow 22 | 1. MenuItem "Window/GameViewSize Settings" 23 | 2. Switch Tab 24 | #### Add GameViewSize 25 | 1. Click the "Add" button of the required preset or click the "Add all preset" button 26 | #### Remove GameViewSize 27 | 1. Click the "Remove" button of the required preset or click the "Remove all preset" button 28 | #### Change GameViewSize 29 | 1. Click the title of each item displayed in the "REGISTERED" area 30 | 31 | ## Preset 32 | #### iPhone 33 | * 【↑】 iPhone 5 5s 5c SE width = 640, height = 1136 34 | * 【→】 iPhone 5 5s 5c SE width = 1136, height = 640 35 | * 【↑】 iPhone 6 6s 7 8 width = 750, height = 1334 36 | * 【→】 iPhone 6 6s 7 8 width = 1334, height = 750 37 | * 【↑】 iPhone 6Plus 6sPlus 7Plus 8Plus width = 1242, height = 2208 38 | * 【→】 iPhone 6Plus 6sPlus 7Plus 8Plus width = 2208, height = 1242 39 | * 【↑】 iPhone X width = 1125, height = 2436 40 | * 【→】 iPhone X width = 2436, height = 1125 41 | 42 | * 【↑】 iPad Mini width = 768, height = 1024 43 | * 【→】 iPad Mini width = 1024, height = 768 44 | * 【↑】 iPad Mini 2 3 4 width = 1536, height = 2048 45 | * 【→】 iPad Mini 2 3 4 width = 2048, height = 1536 46 | * 【↑】 iPad iPad2 width = 768, height = 1024 47 | * 【→】 iPad iPad2 width = 1024, height = 768 48 | * 【↑】 iPad 3 4,Air Air2,Pro9 width = 1536, height = 2048 49 | * 【→】 iPad 3 4,Air Air2,Pro9 width = 2048, height = 1536 50 | * 【↑】 iPad Pro10.5 width = 1668, height = 2224 51 | * 【→】 iPad Pro10.5 width = 2224, height = 1668 52 | * 【↑】 iPad Pro12.9 width = 2048, height = 2732 53 | * 【→】 iPad Pro12.9 width = 2732, height = 2048 54 | 55 | #### Android 56 | * 【↑】 Nexus 5X width = 1080, height = 1920 57 | * 【→】 Nexus 5X width = 1920, height = 1080 58 | * 【↑】 Galaxy S4 S5 Note3 width = 1080, height = 1920 59 | * 【→】 Galaxy S4 S5 Note3 width = 1920, height = 1080 60 | * 【↑】 Galaxy S6 S7 width = 1440, height = 2560 61 | * 【→】 Galaxy S6 S7 width = 2560, height = 1440 62 | * 【↑】 Galaxy S8 width = 1440, height = 2960 63 | * 【→】 Galaxy S8 width = 2960, height = 1440 64 | * 【↑】 Xperia XZ Z1 Z2 Z3 width = 1080, height = 1920 65 | * 【→】 Xperia XZ Z1 Z2 Z3 width = 1920, height = 1080 66 | 67 | ## Update Preset 68 | Please rewrite "GameViewSizePreset.cs" or Make a issue [GameViewSizeSettings issue](https://github.com/Syy12345-Unity/GameViewSizeSettings/issues) 69 | 70 | ## Use Library 71 | * [unity-GameViewSizeHelper](https://github.com/anchan828/unity-GameViewSizeHelper) 72 | 73 | ## Licence 74 | 75 | [MIT](https://github.com/tcnksm/tool/blob/master/LICENCE) 76 | 77 | ## Author 78 | 79 | [Syy9](https://github.com/Syy9) 80 | -------------------------------------------------------------------------------- /example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syy9/GameViewSizeSettings/7983470766b60f92f51dcd0e5b25463e4b4c1c4c/example1.png -------------------------------------------------------------------------------- /example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Syy9/GameViewSizeSettings/7983470766b60f92f51dcd0e5b25463e4b4c1c4c/example2.png --------------------------------------------------------------------------------