├── .gitignore ├── Assets ├── BinaryEgo.meta ├── BinaryEgo │ ├── Editor.meta │ ├── Editor │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── Popup.meta │ │ │ └── Popup │ │ │ ├── GenericMenuPopup.cs │ │ │ └── GenericMenuPopup.cs.meta │ ├── Runtime.meta │ └── Runtime │ │ ├── Resources.meta │ │ ├── Resources │ │ ├── MenuPopup.guiskin │ │ └── MenuPopup.guiskin.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ ├── Popup.meta │ │ └── Popup │ │ ├── AbstractPopup.cs │ │ ├── AbstractPopup.cs.meta │ │ ├── MenuPopup.cs │ │ ├── MenuPopup.cs.meta │ │ ├── PopupManager.cs │ │ ├── PopupManager.cs.meta │ │ ├── RuntimeGenericMenu.cs │ │ └── RuntimeGenericMenu.cs.meta ├── Resources.meta ├── Resources │ ├── BillingMode.json │ └── BillingMode.json.meta ├── Scenes.meta ├── Scenes │ ├── SampleScene.unity │ └── SampleScene.unity.meta ├── Scripts.meta └── Scripts │ ├── Editor.meta │ ├── Editor │ ├── SceneGUIGenericMenu.cs │ └── SceneGUIGenericMenu.cs.meta │ ├── RuntimeMenuPopupTest.cs │ └── RuntimeMenuPopupTest.cs.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Asset meta data should only be ignored when the corresponding asset is also ignored 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | /.idea 62 | -------------------------------------------------------------------------------- /Assets/BinaryEgo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bac72314c245ca43a5d138951057a01 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f69a57d75814040be696f4f2a41c49d 3 | timeCreated: 1637079077 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Editor/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0be553568304e2286cff9369d8628bc 3 | timeCreated: 1637084793 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Editor/Scripts/Popup.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57d43ea47ec577d4487bd65c303852ec 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Editor/Scripts/Popup/GenericMenuPopup.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by: Peter @sHTiF Stefcek 3 | */ 4 | 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using System.Reflection; 8 | using UnityEngine; 9 | using UnityEditor; 10 | 11 | namespace BinaryEgo.Editor.UI 12 | { 13 | public class MenuItemNode 14 | { 15 | public GUIContent content; 16 | public GenericMenu.MenuFunction func; 17 | public GenericMenu.MenuFunction2 func2; 18 | public object userData; 19 | public bool separator; 20 | public bool on; 21 | 22 | public string name { get; } 23 | public MenuItemNode parent { get; } 24 | 25 | public List Nodes { get; private set; } 26 | 27 | public MenuItemNode(string p_name = "", MenuItemNode p_parent = null) 28 | { 29 | name = p_name; 30 | parent = p_parent; 31 | Nodes = new List(); 32 | } 33 | 34 | public MenuItemNode CreateNode(string p_name) 35 | { 36 | var node = new MenuItemNode(p_name, this); 37 | Nodes.Add(node); 38 | return node; 39 | } 40 | 41 | // TODO Optimize 42 | public MenuItemNode GetOrCreateNode(string p_name) 43 | { 44 | var node = Nodes.Find(n => n.name == p_name); 45 | if (node == null) 46 | { 47 | node = CreateNode(p_name); 48 | } 49 | 50 | return node; 51 | } 52 | 53 | public List Search(string p_search) 54 | { 55 | p_search = p_search.ToLower(); 56 | List result = new List(); 57 | 58 | foreach (var node in Nodes) 59 | { 60 | if (node.Nodes.Count == 0 && node.name.ToLower().Contains(p_search)) 61 | { 62 | result.Add(node); 63 | } 64 | 65 | result.AddRange(node.Search(p_search)); 66 | } 67 | 68 | return result; 69 | } 70 | 71 | public string GetPath() 72 | { 73 | return parent == null ? "" : parent.GetPath() + "/" + name; 74 | } 75 | 76 | public void Execute() 77 | { 78 | if (func != null) 79 | { 80 | func?.Invoke(); 81 | } 82 | else 83 | { 84 | func2?.Invoke(userData); 85 | } 86 | } 87 | } 88 | 89 | public class GenericMenuPopup : PopupWindowContent 90 | { 91 | public static GenericMenuPopup Get(GenericMenu p_menu, string p_title) 92 | { 93 | var popup = new GenericMenuPopup(p_menu, p_title); 94 | return popup; 95 | } 96 | 97 | public static GenericMenuPopup Show(GenericMenu p_menu, string p_title, Vector2 p_position) { 98 | var popup = new GenericMenuPopup(p_menu, p_title); 99 | PopupWindow.Show(new Rect(p_position.x, p_position.y, 0, 0), popup); 100 | return popup; 101 | } 102 | 103 | private GUIStyle _backStyle; 104 | public GUIStyle BackStyle 105 | { 106 | get 107 | { 108 | if (_backStyle == null) 109 | { 110 | _backStyle = new GUIStyle(GUI.skin.button); 111 | _backStyle.alignment = TextAnchor.MiddleLeft; 112 | _backStyle.hover.background = Texture2D.grayTexture; 113 | _backStyle.normal.textColor = Color.black; 114 | } 115 | 116 | return _backStyle; 117 | } 118 | } 119 | 120 | private GUIStyle _plusStyle; 121 | public GUIStyle PlusStyle 122 | { 123 | get { 124 | if (_plusStyle == null) 125 | { 126 | _plusStyle = new GUIStyle(); 127 | _plusStyle.fontStyle = FontStyle.Bold; 128 | _plusStyle.normal.textColor = Color.white; 129 | _plusStyle.fontSize = 16; 130 | } 131 | 132 | return _plusStyle; 133 | } 134 | } 135 | 136 | private string _title; 137 | private Vector2 _scrollPosition; 138 | private MenuItemNode _rootNode; 139 | private MenuItemNode _currentNode; 140 | private MenuItemNode _hoverNode; 141 | private string _search; 142 | private bool _repaint = false; 143 | private int _contentHeight; 144 | private bool _useScroll; 145 | 146 | public int width = 200; 147 | public int height = 200; 148 | public int maxHeight = 300; 149 | public bool resizeToContent = false; 150 | public bool showOnStatus = true; 151 | public bool showSearch = true; 152 | public bool showTooltip = false; 153 | public bool showTitle = false; 154 | 155 | 156 | public GenericMenuPopup(GenericMenu p_menu, string p_title) 157 | { 158 | _title = p_title; 159 | showTitle = !string.IsNullOrWhiteSpace(_title); 160 | _currentNode = _rootNode = GenerateMenuItemNodeTree(p_menu); 161 | } 162 | 163 | public override Vector2 GetWindowSize() 164 | { 165 | return new Vector2(width, height); 166 | } 167 | 168 | public override void OnGUI(Rect p_rect) 169 | { 170 | if (Event.current.type == EventType.Layout) 171 | _useScroll = _contentHeight > maxHeight || (!resizeToContent && _contentHeight > height); 172 | 173 | _contentHeight = 0; 174 | GUIStyle style = new GUIStyle(); 175 | style.normal.background = Texture2D.whiteTexture; 176 | GUI.color = new Color(0.1f, 0.1f, 0.1f, 1); 177 | GUI.Box(p_rect, string.Empty, style); 178 | GUI.color = Color.white; 179 | 180 | if (showTitle) 181 | { 182 | DrawTitle(new Rect(p_rect.x, p_rect.y, p_rect.width, 24)); 183 | } 184 | 185 | if (showSearch) 186 | { 187 | DrawSearch(new Rect(p_rect.x, p_rect.y + (showTitle ? 24 : 0), p_rect.width, 20)); 188 | } 189 | 190 | DrawMenuItems(new Rect(p_rect.x, p_rect.y + (showTitle ? 24 : 0) + (showSearch ? 22 : 0), p_rect.width, p_rect.height - (showTooltip ? 60 : 0) - (showTitle ? 24 : 0) - (showSearch ? 22 : 0))); 191 | 192 | if (showTooltip) 193 | { 194 | DrawTooltip(new Rect(p_rect.x + 5, p_rect.y + p_rect.height - 58, p_rect.width - 10, 56)); 195 | } 196 | 197 | if (resizeToContent) 198 | { 199 | height = Mathf.Min(_contentHeight, maxHeight); 200 | } 201 | #if UNITY_EDITOR 202 | EditorGUI.FocusTextInControl("Search"); 203 | #else 204 | GUI.FocusControl("Search"); 205 | #endif 206 | } 207 | 208 | private void DrawTitle(Rect p_rect) 209 | { 210 | _contentHeight += 24; 211 | GUIStyle style = new GUIStyle(); 212 | style.normal.textColor = Color.white; 213 | style.fontStyle = FontStyle.Bold; 214 | style.fontSize = 16; 215 | style.alignment = TextAnchor.LowerCenter; 216 | GUI.Label(p_rect, _title, style); 217 | } 218 | 219 | private void DrawSearch(Rect p_rect) 220 | { 221 | _contentHeight += 22; 222 | GUI.SetNextControlName("Search"); 223 | _search = GUI.TextArea(p_rect, _search); 224 | } 225 | 226 | private void DrawTooltip(Rect p_rect) 227 | { 228 | _contentHeight += 60; 229 | if (_hoverNode == null || _hoverNode.content == null || string.IsNullOrWhiteSpace(_hoverNode.content.tooltip)) 230 | return; 231 | 232 | GUIStyle style = new GUIStyle(); 233 | style.fontSize = 9; 234 | style.wordWrap = true; 235 | style.normal.textColor = Color.white; 236 | GUI.Label(p_rect, _hoverNode.content.tooltip, style); 237 | } 238 | 239 | private void DrawMenuItems(Rect p_rect) 240 | { 241 | GUILayout.BeginArea(p_rect); 242 | if (_useScroll) 243 | { 244 | _scrollPosition = GUILayout.BeginScrollView(_scrollPosition, GUIStyle.none, GUI.skin.verticalScrollbar); 245 | } 246 | 247 | GUILayout.BeginVertical(); 248 | 249 | if (string.IsNullOrWhiteSpace(_search) || _search.Length<2) 250 | { 251 | DrawNodeTree(p_rect); 252 | } 253 | else 254 | { 255 | DrawNodeSearch(p_rect); 256 | } 257 | 258 | GUILayout.EndVertical(); 259 | if (_useScroll) 260 | { 261 | GUILayout.EndScrollView(); 262 | } 263 | 264 | GUILayout.EndArea(); 265 | } 266 | 267 | private void DrawNodeSearch(Rect p_rect) 268 | { 269 | List search = _rootNode.Search(_search); 270 | search.Sort((n1, n2) => 271 | { 272 | string p1 = n1.parent.GetPath(); 273 | string p2 = n2.parent.GetPath(); 274 | if (p1 == p2) 275 | return n1.name.CompareTo(n2.name); 276 | 277 | return p1.CompareTo(p2); 278 | }); 279 | 280 | string lastPath = ""; 281 | foreach (var node in search) 282 | { 283 | string nodePath = node.parent.GetPath(); 284 | if (nodePath != lastPath) 285 | { 286 | _contentHeight += 20; 287 | GUILayout.Label(nodePath, GUILayout.Height(20)); 288 | lastPath = nodePath; 289 | } 290 | 291 | _contentHeight += 20; 292 | GUI.color = _hoverNode == node ? Color.white : Color.gray; 293 | GUIStyle style = new GUIStyle(); 294 | style.normal.background = Texture2D.grayTexture; 295 | GUILayout.BeginHorizontal(style); 296 | 297 | if (showOnStatus) 298 | { 299 | style = new GUIStyle("box"); 300 | style.normal.background = Texture2D.whiteTexture; 301 | GUI.color = node.on ? new Color(0, .6f, .8f) : new Color(.2f, .2f, .2f); 302 | GUILayout.Box("", style, GUILayout.Width(14), GUILayout.Height(14)); 303 | } 304 | 305 | GUI.color = _hoverNode == node ? Color.white : Color.white; 306 | GUILayout.Label(node.name, GUILayout.Height(20)); 307 | 308 | GUILayout.EndHorizontal(); 309 | 310 | var nodeRect = GUILayoutUtility.GetLastRect(); 311 | if (Event.current.isMouse) 312 | { 313 | if (nodeRect.Contains(Event.current.mousePosition)) 314 | { 315 | if (Event.current.type == EventType.MouseDown && Event.current.button == 0) 316 | { 317 | if (node.Nodes.Count > 0) 318 | { 319 | _currentNode = node; 320 | _repaint = true; 321 | } 322 | else 323 | { 324 | node.Execute(); 325 | base.editorWindow.Close(); 326 | } 327 | 328 | break; 329 | } 330 | 331 | if (_hoverNode != node) 332 | { 333 | _hoverNode = node; 334 | _repaint = true; 335 | } 336 | } 337 | else if (_hoverNode == node) 338 | { 339 | _hoverNode = null; 340 | _repaint = true; 341 | } 342 | } 343 | } 344 | 345 | if (search.Count == 0) 346 | { 347 | GUILayout.Label("No result found for specified search."); 348 | } 349 | } 350 | 351 | private void DrawNodeTree(Rect p_rect) 352 | { 353 | if (_currentNode != _rootNode) 354 | { 355 | _contentHeight += 20; 356 | if (GUILayout.Button(_currentNode.GetPath(), BackStyle, GUILayout.Height(20))) 357 | { 358 | _currentNode = _currentNode.parent; 359 | } 360 | } 361 | 362 | foreach (var node in _currentNode.Nodes) 363 | { 364 | if (node.separator) 365 | { 366 | GUILayout.Space(4); 367 | _contentHeight += 4; 368 | continue; 369 | } 370 | 371 | _contentHeight += 20; 372 | GUI.color = _hoverNode == node ? Color.white : Color.gray; 373 | GUIStyle style = new GUIStyle(); 374 | style.normal.background = Texture2D.grayTexture; 375 | GUILayout.BeginHorizontal(style); 376 | 377 | if (showOnStatus) 378 | { 379 | style = new GUIStyle("box"); 380 | style.normal.background = Texture2D.whiteTexture; 381 | GUI.color = node.on ? new Color(0, .6f, .8f, .5f) : new Color(.2f, .2f, .2f, .2f); 382 | GUILayout.Box("", style, GUILayout.Width(14), GUILayout.Height(14)); 383 | } 384 | 385 | GUI.color = _hoverNode == node ? Color.white : Color.white; 386 | style = new GUIStyle("label"); 387 | style.fontStyle = node.Nodes.Count > 0 ? FontStyle.Bold : FontStyle.Normal; 388 | GUILayout.Label(node.name, style, GUILayout.Height(20)); 389 | 390 | GUILayout.EndHorizontal(); 391 | 392 | var nodeRect = GUILayoutUtility.GetLastRect(); 393 | if (Event.current.isMouse) 394 | { 395 | if (nodeRect.Contains(Event.current.mousePosition)) 396 | { 397 | if (Event.current.type == EventType.MouseDown && Event.current.button == 0) 398 | { 399 | if (node.Nodes.Count > 0) 400 | { 401 | _currentNode = node; 402 | _repaint = true; 403 | } 404 | else 405 | { 406 | node.Execute(); 407 | base.editorWindow.Close(); 408 | } 409 | 410 | break; 411 | } 412 | 413 | if (_hoverNode != node) 414 | { 415 | _hoverNode = node; 416 | _repaint = true; 417 | } 418 | } 419 | else if (_hoverNode == node) 420 | { 421 | _hoverNode = null; 422 | _repaint = true; 423 | } 424 | } 425 | 426 | if (node.Nodes.Count > 0) 427 | { 428 | Rect lastRect = GUILayoutUtility.GetLastRect(); 429 | GUI.Label(new Rect(lastRect.x+lastRect.width-16, lastRect.y-2, 20, 20), "+", PlusStyle); 430 | } 431 | } 432 | } 433 | 434 | // TODO Possible type caching? 435 | public static MenuItemNode GenerateMenuItemNodeTree(GenericMenu p_menu) 436 | { 437 | MenuItemNode rootNode = new MenuItemNode(); 438 | if (p_menu == null) 439 | return rootNode; 440 | 441 | var menuItems = TryGetMenuItems("menuItems") ?? TryGetMenuItems("m_MenuItems"); 442 | 443 | foreach (var menuItem in menuItems) 444 | { 445 | var menuItemType = menuItem.GetType(); 446 | GUIContent content = (GUIContent)menuItemType.GetField("content").GetValue(menuItem); 447 | 448 | bool separator = (bool)menuItemType.GetField("separator").GetValue(menuItem); 449 | string path = content.text; 450 | string[] splitPath = path.Split('/'); 451 | MenuItemNode currentNode = rootNode; 452 | for (int i = 0; i < splitPath.Length; i++) 453 | { 454 | currentNode = (i < splitPath.Length - 1) 455 | ? currentNode.GetOrCreateNode(splitPath[i]) 456 | : currentNode.CreateNode(splitPath[i]); 457 | } 458 | 459 | if (separator) 460 | { 461 | currentNode.separator = true; 462 | } 463 | else 464 | { 465 | currentNode.content = content; 466 | currentNode.func = (GenericMenu.MenuFunction) menuItemType.GetField("func").GetValue(menuItem); 467 | currentNode.func2 = (GenericMenu.MenuFunction2) menuItemType.GetField("func2").GetValue(menuItem); 468 | currentNode.userData = menuItemType.GetField("userData").GetValue(menuItem); 469 | currentNode.on = (bool) menuItemType.GetField("on").GetValue(menuItem); 470 | } 471 | } 472 | 473 | return rootNode; 474 | 475 | IEnumerable TryGetMenuItems(string fieldName) 476 | { 477 | var menuItemsField = p_menu.GetType().GetField(fieldName, BindingFlags.Instance | BindingFlags.NonPublic); 478 | return menuItemsField?.GetValue(p_menu) as IEnumerable; 479 | } 480 | } 481 | 482 | public void Show(float p_x, float p_y) 483 | { 484 | PopupWindow.Show(new Rect(p_x, p_y, 0, 0), this); 485 | } 486 | 487 | public void Show(Vector2 p_position) 488 | { 489 | PopupWindow.Show(new Rect(p_position.x, p_position.y, 0, 0), this); 490 | } 491 | 492 | void OnEditorUpdate() { 493 | if (_repaint) 494 | { 495 | _repaint = false; 496 | base.editorWindow.Repaint(); 497 | } 498 | } 499 | 500 | public override void OnOpen() 501 | { 502 | EditorApplication.update -= OnEditorUpdate; 503 | EditorApplication.update += OnEditorUpdate; 504 | } 505 | 506 | public override void OnClose() 507 | { 508 | EditorApplication.update -= OnEditorUpdate; 509 | } 510 | } 511 | } -------------------------------------------------------------------------------- /Assets/BinaryEgo/Editor/Scripts/Popup/GenericMenuPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac614320a0ae6a5479737c381ec8a8cc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42590a415c0e46f39dd8f6d462bfd330 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44c4054d87101184e863b75953fca956 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Resources/MenuPopup.guiskin: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 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: 1 12 | m_Script: {fileID: 12001, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: MenuPopup 14 | m_EditorClassIdentifier: 15 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 16 | m_box: 17 | m_Name: box 18 | m_Normal: 19 | m_Background: {fileID: 11001, guid: 0000000000000000e000000000000000, type: 0} 20 | m_ScaledBackgrounds: [] 21 | m_TextColor: {r: 0.79999995, g: 0.79999995, b: 0.79999995, a: 1} 22 | m_Hover: 23 | m_Background: {fileID: 0} 24 | m_ScaledBackgrounds: [] 25 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 26 | m_Active: 27 | m_Background: {fileID: 0} 28 | m_ScaledBackgrounds: [] 29 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 30 | m_Focused: 31 | m_Background: {fileID: 0} 32 | m_ScaledBackgrounds: [] 33 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 34 | m_OnNormal: 35 | m_Background: {fileID: 0} 36 | m_ScaledBackgrounds: [] 37 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 38 | m_OnHover: 39 | m_Background: {fileID: 0} 40 | m_ScaledBackgrounds: [] 41 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_OnActive: 43 | m_Background: {fileID: 0} 44 | m_ScaledBackgrounds: [] 45 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 46 | m_OnFocused: 47 | m_Background: {fileID: 0} 48 | m_ScaledBackgrounds: [] 49 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 50 | m_Border: 51 | m_Left: 6 52 | m_Right: 6 53 | m_Top: 6 54 | m_Bottom: 6 55 | m_Margin: 56 | m_Left: 4 57 | m_Right: 4 58 | m_Top: 4 59 | m_Bottom: 4 60 | m_Padding: 61 | m_Left: 4 62 | m_Right: 4 63 | m_Top: 4 64 | m_Bottom: 4 65 | m_Overflow: 66 | m_Left: 0 67 | m_Right: 0 68 | m_Top: 0 69 | m_Bottom: 0 70 | m_Font: {fileID: 0} 71 | m_FontSize: 0 72 | m_FontStyle: 0 73 | m_Alignment: 1 74 | m_WordWrap: 0 75 | m_RichText: 1 76 | m_TextClipping: 1 77 | m_ImagePosition: 0 78 | m_ContentOffset: {x: 0, y: 0} 79 | m_FixedWidth: 0 80 | m_FixedHeight: 0 81 | m_StretchWidth: 1 82 | m_StretchHeight: 0 83 | m_button: 84 | m_Name: button 85 | m_Normal: 86 | m_Background: {fileID: 11006, guid: 0000000000000000e000000000000000, type: 0} 87 | m_ScaledBackgrounds: [] 88 | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} 89 | m_Hover: 90 | m_Background: {fileID: 11003, guid: 0000000000000000e000000000000000, type: 0} 91 | m_ScaledBackgrounds: [] 92 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 93 | m_Active: 94 | m_Background: {fileID: 11002, guid: 0000000000000000e000000000000000, type: 0} 95 | m_ScaledBackgrounds: [] 96 | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} 97 | m_Focused: 98 | m_Background: {fileID: 0} 99 | m_ScaledBackgrounds: [] 100 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 101 | m_OnNormal: 102 | m_Background: {fileID: 11005, guid: 0000000000000000e000000000000000, type: 0} 103 | m_ScaledBackgrounds: [] 104 | m_TextColor: {r: 0.9019608, g: 0.9019608, b: 0.9019608, a: 1} 105 | m_OnHover: 106 | m_Background: {fileID: 11004, guid: 0000000000000000e000000000000000, type: 0} 107 | m_ScaledBackgrounds: [] 108 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 109 | m_OnActive: 110 | m_Background: {fileID: 11002, guid: 0000000000000000e000000000000000, type: 0} 111 | m_ScaledBackgrounds: [] 112 | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} 113 | m_OnFocused: 114 | m_Background: {fileID: 0} 115 | m_ScaledBackgrounds: [] 116 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 117 | m_Border: 118 | m_Left: 6 119 | m_Right: 6 120 | m_Top: 6 121 | m_Bottom: 4 122 | m_Margin: 123 | m_Left: 4 124 | m_Right: 4 125 | m_Top: 4 126 | m_Bottom: 4 127 | m_Padding: 128 | m_Left: 6 129 | m_Right: 6 130 | m_Top: 3 131 | m_Bottom: 3 132 | m_Overflow: 133 | m_Left: 0 134 | m_Right: 0 135 | m_Top: 0 136 | m_Bottom: 0 137 | m_Font: {fileID: 0} 138 | m_FontSize: 0 139 | m_FontStyle: 0 140 | m_Alignment: 4 141 | m_WordWrap: 0 142 | m_RichText: 1 143 | m_TextClipping: 1 144 | m_ImagePosition: 0 145 | m_ContentOffset: {x: 0, y: 0} 146 | m_FixedWidth: 0 147 | m_FixedHeight: 0 148 | m_StretchWidth: 1 149 | m_StretchHeight: 0 150 | m_toggle: 151 | m_Name: toggle 152 | m_Normal: 153 | m_Background: {fileID: 11018, guid: 0000000000000000e000000000000000, type: 0} 154 | m_ScaledBackgrounds: [] 155 | m_TextColor: {r: 0.89112896, g: 0.89112896, b: 0.89112896, a: 1} 156 | m_Hover: 157 | m_Background: {fileID: 11014, guid: 0000000000000000e000000000000000, type: 0} 158 | m_ScaledBackgrounds: [] 159 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 160 | m_Active: 161 | m_Background: {fileID: 11013, guid: 0000000000000000e000000000000000, type: 0} 162 | m_ScaledBackgrounds: [] 163 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 164 | m_Focused: 165 | m_Background: {fileID: 0} 166 | m_ScaledBackgrounds: [] 167 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 168 | m_OnNormal: 169 | m_Background: {fileID: 11016, guid: 0000000000000000e000000000000000, type: 0} 170 | m_ScaledBackgrounds: [] 171 | m_TextColor: {r: 0.8901961, g: 0.8901961, b: 0.8901961, a: 1} 172 | m_OnHover: 173 | m_Background: {fileID: 11015, guid: 0000000000000000e000000000000000, type: 0} 174 | m_ScaledBackgrounds: [] 175 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 176 | m_OnActive: 177 | m_Background: {fileID: 11017, guid: 0000000000000000e000000000000000, type: 0} 178 | m_ScaledBackgrounds: [] 179 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 180 | m_OnFocused: 181 | m_Background: {fileID: 0} 182 | m_ScaledBackgrounds: [] 183 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 184 | m_Border: 185 | m_Left: 14 186 | m_Right: 0 187 | m_Top: 14 188 | m_Bottom: 0 189 | m_Margin: 190 | m_Left: 4 191 | m_Right: 4 192 | m_Top: 4 193 | m_Bottom: 4 194 | m_Padding: 195 | m_Left: 15 196 | m_Right: 0 197 | m_Top: 3 198 | m_Bottom: 0 199 | m_Overflow: 200 | m_Left: -1 201 | m_Right: 0 202 | m_Top: -4 203 | m_Bottom: 0 204 | m_Font: {fileID: 0} 205 | m_FontSize: 0 206 | m_FontStyle: 0 207 | m_Alignment: 0 208 | m_WordWrap: 0 209 | m_RichText: 1 210 | m_TextClipping: 1 211 | m_ImagePosition: 0 212 | m_ContentOffset: {x: 0, y: 0} 213 | m_FixedWidth: 0 214 | m_FixedHeight: 0 215 | m_StretchWidth: 1 216 | m_StretchHeight: 0 217 | m_label: 218 | m_Name: label 219 | m_Normal: 220 | m_Background: {fileID: 0} 221 | m_ScaledBackgrounds: [] 222 | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} 223 | m_Hover: 224 | m_Background: {fileID: 0} 225 | m_ScaledBackgrounds: [] 226 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 227 | m_Active: 228 | m_Background: {fileID: 0} 229 | m_ScaledBackgrounds: [] 230 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 231 | m_Focused: 232 | m_Background: {fileID: 0} 233 | m_ScaledBackgrounds: [] 234 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 235 | m_OnNormal: 236 | m_Background: {fileID: 0} 237 | m_ScaledBackgrounds: [] 238 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 239 | m_OnHover: 240 | m_Background: {fileID: 0} 241 | m_ScaledBackgrounds: [] 242 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 243 | m_OnActive: 244 | m_Background: {fileID: 0} 245 | m_ScaledBackgrounds: [] 246 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 247 | m_OnFocused: 248 | m_Background: {fileID: 0} 249 | m_ScaledBackgrounds: [] 250 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 251 | m_Border: 252 | m_Left: 0 253 | m_Right: 0 254 | m_Top: 0 255 | m_Bottom: 0 256 | m_Margin: 257 | m_Left: 4 258 | m_Right: 4 259 | m_Top: 4 260 | m_Bottom: 4 261 | m_Padding: 262 | m_Left: 0 263 | m_Right: 0 264 | m_Top: 3 265 | m_Bottom: 3 266 | m_Overflow: 267 | m_Left: 0 268 | m_Right: 0 269 | m_Top: 0 270 | m_Bottom: 0 271 | m_Font: {fileID: 0} 272 | m_FontSize: 0 273 | m_FontStyle: 0 274 | m_Alignment: 0 275 | m_WordWrap: 1 276 | m_RichText: 1 277 | m_TextClipping: 1 278 | m_ImagePosition: 0 279 | m_ContentOffset: {x: 0, y: 0} 280 | m_FixedWidth: 0 281 | m_FixedHeight: 0 282 | m_StretchWidth: 1 283 | m_StretchHeight: 0 284 | m_textField: 285 | m_Name: textfield 286 | m_Normal: 287 | m_Background: {fileID: 11024, guid: 0000000000000000e000000000000000, type: 0} 288 | m_ScaledBackgrounds: [] 289 | m_TextColor: {r: 0.79999995, g: 0.79999995, b: 0.79999995, a: 1} 290 | m_Hover: 291 | m_Background: {fileID: 11026, guid: 0000000000000000e000000000000000, type: 0} 292 | m_ScaledBackgrounds: [] 293 | m_TextColor: {r: 0.9, g: 0.9, b: 0.9, a: 1} 294 | m_Active: 295 | m_Background: {fileID: 0} 296 | m_ScaledBackgrounds: [] 297 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 298 | m_Focused: 299 | m_Background: {fileID: 11026, guid: 0000000000000000e000000000000000, type: 0} 300 | m_ScaledBackgrounds: [] 301 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 302 | m_OnNormal: 303 | m_Background: {fileID: 11025, guid: 0000000000000000e000000000000000, type: 0} 304 | m_ScaledBackgrounds: [] 305 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 306 | m_OnHover: 307 | m_Background: {fileID: 0} 308 | m_ScaledBackgrounds: [] 309 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 310 | m_OnActive: 311 | m_Background: {fileID: 0} 312 | m_ScaledBackgrounds: [] 313 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 314 | m_OnFocused: 315 | m_Background: {fileID: 0} 316 | m_ScaledBackgrounds: [] 317 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 318 | m_Border: 319 | m_Left: 4 320 | m_Right: 4 321 | m_Top: 4 322 | m_Bottom: 4 323 | m_Margin: 324 | m_Left: 4 325 | m_Right: 4 326 | m_Top: 4 327 | m_Bottom: 4 328 | m_Padding: 329 | m_Left: 3 330 | m_Right: 3 331 | m_Top: 3 332 | m_Bottom: 3 333 | m_Overflow: 334 | m_Left: 0 335 | m_Right: 0 336 | m_Top: 0 337 | m_Bottom: 0 338 | m_Font: {fileID: 0} 339 | m_FontSize: 0 340 | m_FontStyle: 0 341 | m_Alignment: 0 342 | m_WordWrap: 0 343 | m_RichText: 0 344 | m_TextClipping: 1 345 | m_ImagePosition: 3 346 | m_ContentOffset: {x: 0, y: 0} 347 | m_FixedWidth: 0 348 | m_FixedHeight: 0 349 | m_StretchWidth: 1 350 | m_StretchHeight: 0 351 | m_textArea: 352 | m_Name: textarea 353 | m_Normal: 354 | m_Background: {fileID: 11024, guid: 0000000000000000e000000000000000, type: 0} 355 | m_ScaledBackgrounds: [] 356 | m_TextColor: {r: 0.9019608, g: 0.9019608, b: 0.9019608, a: 1} 357 | m_Hover: 358 | m_Background: {fileID: 11026, guid: 0000000000000000e000000000000000, type: 0} 359 | m_ScaledBackgrounds: [] 360 | m_TextColor: {r: 0.79999995, g: 0.79999995, b: 0.79999995, a: 1} 361 | m_Active: 362 | m_Background: {fileID: 0} 363 | m_ScaledBackgrounds: [] 364 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 365 | m_Focused: 366 | m_Background: {fileID: 0} 367 | m_ScaledBackgrounds: [] 368 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 369 | m_OnNormal: 370 | m_Background: {fileID: 11025, guid: 0000000000000000e000000000000000, type: 0} 371 | m_ScaledBackgrounds: [] 372 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 373 | m_OnHover: 374 | m_Background: {fileID: 0} 375 | m_ScaledBackgrounds: [] 376 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 377 | m_OnActive: 378 | m_Background: {fileID: 0} 379 | m_ScaledBackgrounds: [] 380 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 381 | m_OnFocused: 382 | m_Background: {fileID: 0} 383 | m_ScaledBackgrounds: [] 384 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 385 | m_Border: 386 | m_Left: 4 387 | m_Right: 4 388 | m_Top: 4 389 | m_Bottom: 4 390 | m_Margin: 391 | m_Left: 4 392 | m_Right: 4 393 | m_Top: 4 394 | m_Bottom: 4 395 | m_Padding: 396 | m_Left: 3 397 | m_Right: 3 398 | m_Top: 3 399 | m_Bottom: 3 400 | m_Overflow: 401 | m_Left: 0 402 | m_Right: 0 403 | m_Top: 0 404 | m_Bottom: 0 405 | m_Font: {fileID: 0} 406 | m_FontSize: 0 407 | m_FontStyle: 0 408 | m_Alignment: 0 409 | m_WordWrap: 1 410 | m_RichText: 0 411 | m_TextClipping: 1 412 | m_ImagePosition: 0 413 | m_ContentOffset: {x: 0, y: 0} 414 | m_FixedWidth: 0 415 | m_FixedHeight: 0 416 | m_StretchWidth: 1 417 | m_StretchHeight: 0 418 | m_window: 419 | m_Name: window 420 | m_Normal: 421 | m_Background: {fileID: 11023, guid: 0000000000000000e000000000000000, type: 0} 422 | m_ScaledBackgrounds: [] 423 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 424 | m_Hover: 425 | m_Background: {fileID: 0} 426 | m_ScaledBackgrounds: [] 427 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 428 | m_Active: 429 | m_Background: {fileID: 0} 430 | m_ScaledBackgrounds: [] 431 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 432 | m_Focused: 433 | m_Background: {fileID: 0} 434 | m_ScaledBackgrounds: [] 435 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 436 | m_OnNormal: 437 | m_Background: {fileID: 11022, guid: 0000000000000000e000000000000000, type: 0} 438 | m_ScaledBackgrounds: [] 439 | m_TextColor: {r: 1, g: 1, b: 1, a: 1} 440 | m_OnHover: 441 | m_Background: {fileID: 0} 442 | m_ScaledBackgrounds: [] 443 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 444 | m_OnActive: 445 | m_Background: {fileID: 0} 446 | m_ScaledBackgrounds: [] 447 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 448 | m_OnFocused: 449 | m_Background: {fileID: 0} 450 | m_ScaledBackgrounds: [] 451 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 452 | m_Border: 453 | m_Left: 8 454 | m_Right: 8 455 | m_Top: 18 456 | m_Bottom: 8 457 | m_Margin: 458 | m_Left: 0 459 | m_Right: 0 460 | m_Top: 0 461 | m_Bottom: 0 462 | m_Padding: 463 | m_Left: 10 464 | m_Right: 10 465 | m_Top: 20 466 | m_Bottom: 10 467 | m_Overflow: 468 | m_Left: 0 469 | m_Right: 0 470 | m_Top: 0 471 | m_Bottom: 0 472 | m_Font: {fileID: 0} 473 | m_FontSize: 0 474 | m_FontStyle: 0 475 | m_Alignment: 1 476 | m_WordWrap: 0 477 | m_RichText: 1 478 | m_TextClipping: 1 479 | m_ImagePosition: 0 480 | m_ContentOffset: {x: 0, y: -18} 481 | m_FixedWidth: 0 482 | m_FixedHeight: 0 483 | m_StretchWidth: 1 484 | m_StretchHeight: 0 485 | m_horizontalSlider: 486 | m_Name: horizontalslider 487 | m_Normal: 488 | m_Background: {fileID: 11009, guid: 0000000000000000e000000000000000, type: 0} 489 | m_ScaledBackgrounds: [] 490 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 491 | m_Hover: 492 | m_Background: {fileID: 0} 493 | m_ScaledBackgrounds: [] 494 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 495 | m_Active: 496 | m_Background: {fileID: 0} 497 | m_ScaledBackgrounds: [] 498 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 499 | m_Focused: 500 | m_Background: {fileID: 0} 501 | m_ScaledBackgrounds: [] 502 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 503 | m_OnNormal: 504 | m_Background: {fileID: 0} 505 | m_ScaledBackgrounds: [] 506 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 507 | m_OnHover: 508 | m_Background: {fileID: 0} 509 | m_ScaledBackgrounds: [] 510 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 511 | m_OnActive: 512 | m_Background: {fileID: 0} 513 | m_ScaledBackgrounds: [] 514 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 515 | m_OnFocused: 516 | m_Background: {fileID: 0} 517 | m_ScaledBackgrounds: [] 518 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 519 | m_Border: 520 | m_Left: 3 521 | m_Right: 3 522 | m_Top: 0 523 | m_Bottom: 0 524 | m_Margin: 525 | m_Left: 4 526 | m_Right: 4 527 | m_Top: 4 528 | m_Bottom: 4 529 | m_Padding: 530 | m_Left: -1 531 | m_Right: -1 532 | m_Top: 0 533 | m_Bottom: 0 534 | m_Overflow: 535 | m_Left: 0 536 | m_Right: 0 537 | m_Top: -2 538 | m_Bottom: -3 539 | m_Font: {fileID: 0} 540 | m_FontSize: 0 541 | m_FontStyle: 0 542 | m_Alignment: 0 543 | m_WordWrap: 0 544 | m_RichText: 1 545 | m_TextClipping: 1 546 | m_ImagePosition: 2 547 | m_ContentOffset: {x: 0, y: 0} 548 | m_FixedWidth: 0 549 | m_FixedHeight: 12 550 | m_StretchWidth: 1 551 | m_StretchHeight: 0 552 | m_horizontalSliderThumb: 553 | m_Name: horizontalsliderthumb 554 | m_Normal: 555 | m_Background: {fileID: 11011, guid: 0000000000000000e000000000000000, type: 0} 556 | m_ScaledBackgrounds: [] 557 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 558 | m_Hover: 559 | m_Background: {fileID: 11012, guid: 0000000000000000e000000000000000, type: 0} 560 | m_ScaledBackgrounds: [] 561 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 562 | m_Active: 563 | m_Background: {fileID: 11010, guid: 0000000000000000e000000000000000, type: 0} 564 | m_ScaledBackgrounds: [] 565 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 566 | m_Focused: 567 | m_Background: {fileID: 0} 568 | m_ScaledBackgrounds: [] 569 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 570 | m_OnNormal: 571 | m_Background: {fileID: 0} 572 | m_ScaledBackgrounds: [] 573 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 574 | m_OnHover: 575 | m_Background: {fileID: 0} 576 | m_ScaledBackgrounds: [] 577 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 578 | m_OnActive: 579 | m_Background: {fileID: 0} 580 | m_ScaledBackgrounds: [] 581 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 582 | m_OnFocused: 583 | m_Background: {fileID: 0} 584 | m_ScaledBackgrounds: [] 585 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 586 | m_Border: 587 | m_Left: 4 588 | m_Right: 4 589 | m_Top: 0 590 | m_Bottom: 0 591 | m_Margin: 592 | m_Left: 0 593 | m_Right: 0 594 | m_Top: 0 595 | m_Bottom: 0 596 | m_Padding: 597 | m_Left: 7 598 | m_Right: 7 599 | m_Top: 0 600 | m_Bottom: 0 601 | m_Overflow: 602 | m_Left: -1 603 | m_Right: -1 604 | m_Top: 0 605 | m_Bottom: 0 606 | m_Font: {fileID: 0} 607 | m_FontSize: 0 608 | m_FontStyle: 0 609 | m_Alignment: 0 610 | m_WordWrap: 0 611 | m_RichText: 1 612 | m_TextClipping: 1 613 | m_ImagePosition: 2 614 | m_ContentOffset: {x: 0, y: 0} 615 | m_FixedWidth: 0 616 | m_FixedHeight: 12 617 | m_StretchWidth: 1 618 | m_StretchHeight: 0 619 | m_verticalSlider: 620 | m_Name: verticalslider 621 | m_Normal: 622 | m_Background: {fileID: 11021, guid: 0000000000000000e000000000000000, type: 0} 623 | m_ScaledBackgrounds: [] 624 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 625 | m_Hover: 626 | m_Background: {fileID: 0} 627 | m_ScaledBackgrounds: [] 628 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 629 | m_Active: 630 | m_Background: {fileID: 0} 631 | m_ScaledBackgrounds: [] 632 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 633 | m_Focused: 634 | m_Background: {fileID: 0} 635 | m_ScaledBackgrounds: [] 636 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 637 | m_OnNormal: 638 | m_Background: {fileID: 0} 639 | m_ScaledBackgrounds: [] 640 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 641 | m_OnHover: 642 | m_Background: {fileID: 0} 643 | m_ScaledBackgrounds: [] 644 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 645 | m_OnActive: 646 | m_Background: {fileID: 0} 647 | m_ScaledBackgrounds: [] 648 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 649 | m_OnFocused: 650 | m_Background: {fileID: 0} 651 | m_ScaledBackgrounds: [] 652 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 653 | m_Border: 654 | m_Left: 0 655 | m_Right: 0 656 | m_Top: 3 657 | m_Bottom: 3 658 | m_Margin: 659 | m_Left: 4 660 | m_Right: 4 661 | m_Top: 4 662 | m_Bottom: 4 663 | m_Padding: 664 | m_Left: 0 665 | m_Right: 0 666 | m_Top: -1 667 | m_Bottom: -1 668 | m_Overflow: 669 | m_Left: -2 670 | m_Right: -3 671 | m_Top: 0 672 | m_Bottom: 0 673 | m_Font: {fileID: 0} 674 | m_FontSize: 0 675 | m_FontStyle: 0 676 | m_Alignment: 0 677 | m_WordWrap: 0 678 | m_RichText: 1 679 | m_TextClipping: 0 680 | m_ImagePosition: 0 681 | m_ContentOffset: {x: 0, y: 0} 682 | m_FixedWidth: 12 683 | m_FixedHeight: 0 684 | m_StretchWidth: 0 685 | m_StretchHeight: 1 686 | m_verticalSliderThumb: 687 | m_Name: verticalsliderthumb 688 | m_Normal: 689 | m_Background: {fileID: 11011, guid: 0000000000000000e000000000000000, type: 0} 690 | m_ScaledBackgrounds: [] 691 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 692 | m_Hover: 693 | m_Background: {fileID: 11012, guid: 0000000000000000e000000000000000, type: 0} 694 | m_ScaledBackgrounds: [] 695 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 696 | m_Active: 697 | m_Background: {fileID: 11010, guid: 0000000000000000e000000000000000, type: 0} 698 | m_ScaledBackgrounds: [] 699 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 700 | m_Focused: 701 | m_Background: {fileID: 0} 702 | m_ScaledBackgrounds: [] 703 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 704 | m_OnNormal: 705 | m_Background: {fileID: 0} 706 | m_ScaledBackgrounds: [] 707 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 708 | m_OnHover: 709 | m_Background: {fileID: 0} 710 | m_ScaledBackgrounds: [] 711 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 712 | m_OnActive: 713 | m_Background: {fileID: 0} 714 | m_ScaledBackgrounds: [] 715 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 716 | m_OnFocused: 717 | m_Background: {fileID: 0} 718 | m_ScaledBackgrounds: [] 719 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 720 | m_Border: 721 | m_Left: 0 722 | m_Right: 0 723 | m_Top: 0 724 | m_Bottom: 0 725 | m_Margin: 726 | m_Left: 0 727 | m_Right: 0 728 | m_Top: 0 729 | m_Bottom: 0 730 | m_Padding: 731 | m_Left: 0 732 | m_Right: 0 733 | m_Top: 7 734 | m_Bottom: 7 735 | m_Overflow: 736 | m_Left: 0 737 | m_Right: 0 738 | m_Top: -1 739 | m_Bottom: -1 740 | m_Font: {fileID: 0} 741 | m_FontSize: 0 742 | m_FontStyle: 0 743 | m_Alignment: 0 744 | m_WordWrap: 0 745 | m_RichText: 1 746 | m_TextClipping: 1 747 | m_ImagePosition: 0 748 | m_ContentOffset: {x: 0, y: 0} 749 | m_FixedWidth: 12 750 | m_FixedHeight: 0 751 | m_StretchWidth: 0 752 | m_StretchHeight: 1 753 | m_horizontalScrollbar: 754 | m_Name: horizontalscrollbar 755 | m_Normal: 756 | m_Background: {fileID: 11008, guid: 0000000000000000e000000000000000, type: 0} 757 | m_ScaledBackgrounds: [] 758 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 759 | m_Hover: 760 | m_Background: {fileID: 0} 761 | m_ScaledBackgrounds: [] 762 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 763 | m_Active: 764 | m_Background: {fileID: 0} 765 | m_ScaledBackgrounds: [] 766 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 767 | m_Focused: 768 | m_Background: {fileID: 0} 769 | m_ScaledBackgrounds: [] 770 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 771 | m_OnNormal: 772 | m_Background: {fileID: 0} 773 | m_ScaledBackgrounds: [] 774 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 775 | m_OnHover: 776 | m_Background: {fileID: 0} 777 | m_ScaledBackgrounds: [] 778 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 779 | m_OnActive: 780 | m_Background: {fileID: 0} 781 | m_ScaledBackgrounds: [] 782 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 783 | m_OnFocused: 784 | m_Background: {fileID: 0} 785 | m_ScaledBackgrounds: [] 786 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 787 | m_Border: 788 | m_Left: 9 789 | m_Right: 9 790 | m_Top: 0 791 | m_Bottom: 0 792 | m_Margin: 793 | m_Left: 4 794 | m_Right: 4 795 | m_Top: 1 796 | m_Bottom: 4 797 | m_Padding: 798 | m_Left: 0 799 | m_Right: 0 800 | m_Top: 0 801 | m_Bottom: 0 802 | m_Overflow: 803 | m_Left: 0 804 | m_Right: 0 805 | m_Top: 0 806 | m_Bottom: 0 807 | m_Font: {fileID: 0} 808 | m_FontSize: 0 809 | m_FontStyle: 0 810 | m_Alignment: 0 811 | m_WordWrap: 0 812 | m_RichText: 1 813 | m_TextClipping: 1 814 | m_ImagePosition: 2 815 | m_ContentOffset: {x: 0, y: 0} 816 | m_FixedWidth: 0 817 | m_FixedHeight: 15 818 | m_StretchWidth: 1 819 | m_StretchHeight: 0 820 | m_horizontalScrollbarThumb: 821 | m_Name: horizontalscrollbarthumb 822 | m_Normal: 823 | m_Background: {fileID: 11007, guid: 0000000000000000e000000000000000, type: 0} 824 | m_ScaledBackgrounds: [] 825 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 826 | m_Hover: 827 | m_Background: {fileID: 0} 828 | m_ScaledBackgrounds: [] 829 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 830 | m_Active: 831 | m_Background: {fileID: 0} 832 | m_ScaledBackgrounds: [] 833 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 834 | m_Focused: 835 | m_Background: {fileID: 0} 836 | m_ScaledBackgrounds: [] 837 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 838 | m_OnNormal: 839 | m_Background: {fileID: 0} 840 | m_ScaledBackgrounds: [] 841 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 842 | m_OnHover: 843 | m_Background: {fileID: 0} 844 | m_ScaledBackgrounds: [] 845 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 846 | m_OnActive: 847 | m_Background: {fileID: 0} 848 | m_ScaledBackgrounds: [] 849 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 850 | m_OnFocused: 851 | m_Background: {fileID: 0} 852 | m_ScaledBackgrounds: [] 853 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 854 | m_Border: 855 | m_Left: 6 856 | m_Right: 6 857 | m_Top: 6 858 | m_Bottom: 6 859 | m_Margin: 860 | m_Left: 0 861 | m_Right: 0 862 | m_Top: 0 863 | m_Bottom: 0 864 | m_Padding: 865 | m_Left: 6 866 | m_Right: 6 867 | m_Top: 0 868 | m_Bottom: 0 869 | m_Overflow: 870 | m_Left: 0 871 | m_Right: 0 872 | m_Top: -1 873 | m_Bottom: 1 874 | m_Font: {fileID: 0} 875 | m_FontSize: 0 876 | m_FontStyle: 0 877 | m_Alignment: 0 878 | m_WordWrap: 0 879 | m_RichText: 1 880 | m_TextClipping: 1 881 | m_ImagePosition: 0 882 | m_ContentOffset: {x: 0, y: 0} 883 | m_FixedWidth: 0 884 | m_FixedHeight: 13 885 | m_StretchWidth: 1 886 | m_StretchHeight: 0 887 | m_horizontalScrollbarLeftButton: 888 | m_Name: horizontalscrollbarleftbutton 889 | m_Normal: 890 | m_Background: {fileID: 0} 891 | m_ScaledBackgrounds: [] 892 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 893 | m_Hover: 894 | m_Background: {fileID: 0} 895 | m_ScaledBackgrounds: [] 896 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 897 | m_Active: 898 | m_Background: {fileID: 0} 899 | m_ScaledBackgrounds: [] 900 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 901 | m_Focused: 902 | m_Background: {fileID: 0} 903 | m_ScaledBackgrounds: [] 904 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 905 | m_OnNormal: 906 | m_Background: {fileID: 0} 907 | m_ScaledBackgrounds: [] 908 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 909 | m_OnHover: 910 | m_Background: {fileID: 0} 911 | m_ScaledBackgrounds: [] 912 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 913 | m_OnActive: 914 | m_Background: {fileID: 0} 915 | m_ScaledBackgrounds: [] 916 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 917 | m_OnFocused: 918 | m_Background: {fileID: 0} 919 | m_ScaledBackgrounds: [] 920 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 921 | m_Border: 922 | m_Left: 0 923 | m_Right: 0 924 | m_Top: 0 925 | m_Bottom: 0 926 | m_Margin: 927 | m_Left: 0 928 | m_Right: 0 929 | m_Top: 0 930 | m_Bottom: 0 931 | m_Padding: 932 | m_Left: 0 933 | m_Right: 0 934 | m_Top: 0 935 | m_Bottom: 0 936 | m_Overflow: 937 | m_Left: 0 938 | m_Right: 0 939 | m_Top: 0 940 | m_Bottom: 0 941 | m_Font: {fileID: 0} 942 | m_FontSize: 0 943 | m_FontStyle: 0 944 | m_Alignment: 0 945 | m_WordWrap: 0 946 | m_RichText: 1 947 | m_TextClipping: 1 948 | m_ImagePosition: 0 949 | m_ContentOffset: {x: 0, y: 0} 950 | m_FixedWidth: 0 951 | m_FixedHeight: 0 952 | m_StretchWidth: 1 953 | m_StretchHeight: 0 954 | m_horizontalScrollbarRightButton: 955 | m_Name: horizontalscrollbarrightbutton 956 | m_Normal: 957 | m_Background: {fileID: 0} 958 | m_ScaledBackgrounds: [] 959 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 960 | m_Hover: 961 | m_Background: {fileID: 0} 962 | m_ScaledBackgrounds: [] 963 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 964 | m_Active: 965 | m_Background: {fileID: 0} 966 | m_ScaledBackgrounds: [] 967 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 968 | m_Focused: 969 | m_Background: {fileID: 0} 970 | m_ScaledBackgrounds: [] 971 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 972 | m_OnNormal: 973 | m_Background: {fileID: 0} 974 | m_ScaledBackgrounds: [] 975 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 976 | m_OnHover: 977 | m_Background: {fileID: 0} 978 | m_ScaledBackgrounds: [] 979 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 980 | m_OnActive: 981 | m_Background: {fileID: 0} 982 | m_ScaledBackgrounds: [] 983 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 984 | m_OnFocused: 985 | m_Background: {fileID: 0} 986 | m_ScaledBackgrounds: [] 987 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 988 | m_Border: 989 | m_Left: 0 990 | m_Right: 0 991 | m_Top: 0 992 | m_Bottom: 0 993 | m_Margin: 994 | m_Left: 0 995 | m_Right: 0 996 | m_Top: 0 997 | m_Bottom: 0 998 | m_Padding: 999 | m_Left: 0 1000 | m_Right: 0 1001 | m_Top: 0 1002 | m_Bottom: 0 1003 | m_Overflow: 1004 | m_Left: 0 1005 | m_Right: 0 1006 | m_Top: 0 1007 | m_Bottom: 0 1008 | m_Font: {fileID: 0} 1009 | m_FontSize: 0 1010 | m_FontStyle: 0 1011 | m_Alignment: 0 1012 | m_WordWrap: 0 1013 | m_RichText: 1 1014 | m_TextClipping: 1 1015 | m_ImagePosition: 0 1016 | m_ContentOffset: {x: 0, y: 0} 1017 | m_FixedWidth: 0 1018 | m_FixedHeight: 0 1019 | m_StretchWidth: 1 1020 | m_StretchHeight: 0 1021 | m_verticalScrollbar: 1022 | m_Name: verticalscrollbar 1023 | m_Normal: 1024 | m_Background: {fileID: 0} 1025 | m_ScaledBackgrounds: [] 1026 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1027 | m_Hover: 1028 | m_Background: {fileID: 0} 1029 | m_ScaledBackgrounds: [] 1030 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1031 | m_Active: 1032 | m_Background: {fileID: 0} 1033 | m_ScaledBackgrounds: [] 1034 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1035 | m_Focused: 1036 | m_Background: {fileID: 0} 1037 | m_ScaledBackgrounds: [] 1038 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1039 | m_OnNormal: 1040 | m_Background: {fileID: 0} 1041 | m_ScaledBackgrounds: [] 1042 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1043 | m_OnHover: 1044 | m_Background: {fileID: 0} 1045 | m_ScaledBackgrounds: [] 1046 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1047 | m_OnActive: 1048 | m_Background: {fileID: 0} 1049 | m_ScaledBackgrounds: [] 1050 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1051 | m_OnFocused: 1052 | m_Background: {fileID: 0} 1053 | m_ScaledBackgrounds: [] 1054 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1055 | m_Border: 1056 | m_Left: 0 1057 | m_Right: 0 1058 | m_Top: 9 1059 | m_Bottom: 9 1060 | m_Margin: 1061 | m_Left: 1 1062 | m_Right: 4 1063 | m_Top: 4 1064 | m_Bottom: 4 1065 | m_Padding: 1066 | m_Left: 0 1067 | m_Right: 0 1068 | m_Top: 1 1069 | m_Bottom: 1 1070 | m_Overflow: 1071 | m_Left: 0 1072 | m_Right: 0 1073 | m_Top: 0 1074 | m_Bottom: 0 1075 | m_Font: {fileID: 0} 1076 | m_FontSize: 0 1077 | m_FontStyle: 0 1078 | m_Alignment: 0 1079 | m_WordWrap: 0 1080 | m_RichText: 1 1081 | m_TextClipping: 1 1082 | m_ImagePosition: 0 1083 | m_ContentOffset: {x: 0, y: 0} 1084 | m_FixedWidth: 15 1085 | m_FixedHeight: 0 1086 | m_StretchWidth: 1 1087 | m_StretchHeight: 0 1088 | m_verticalScrollbarThumb: 1089 | m_Name: verticalscrollbarthumb 1090 | m_Normal: 1091 | m_Background: {fileID: 10904, guid: 0000000000000000f000000000000000, type: 0} 1092 | m_ScaledBackgrounds: [] 1093 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1094 | m_Hover: 1095 | m_Background: {fileID: 0} 1096 | m_ScaledBackgrounds: [] 1097 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1098 | m_Active: 1099 | m_Background: {fileID: 0} 1100 | m_ScaledBackgrounds: [] 1101 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1102 | m_Focused: 1103 | m_Background: {fileID: 0} 1104 | m_ScaledBackgrounds: [] 1105 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1106 | m_OnNormal: 1107 | m_Background: {fileID: 0} 1108 | m_ScaledBackgrounds: [] 1109 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1110 | m_OnHover: 1111 | m_Background: {fileID: 0} 1112 | m_ScaledBackgrounds: [] 1113 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1114 | m_OnActive: 1115 | m_Background: {fileID: 0} 1116 | m_ScaledBackgrounds: [] 1117 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1118 | m_OnFocused: 1119 | m_Background: {fileID: 0} 1120 | m_ScaledBackgrounds: [] 1121 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1122 | m_Border: 1123 | m_Left: 6 1124 | m_Right: 6 1125 | m_Top: 6 1126 | m_Bottom: 6 1127 | m_Margin: 1128 | m_Left: 0 1129 | m_Right: 0 1130 | m_Top: 0 1131 | m_Bottom: 0 1132 | m_Padding: 1133 | m_Left: 0 1134 | m_Right: 0 1135 | m_Top: 6 1136 | m_Bottom: 6 1137 | m_Overflow: 1138 | m_Left: -1 1139 | m_Right: -1 1140 | m_Top: 0 1141 | m_Bottom: 0 1142 | m_Font: {fileID: 0} 1143 | m_FontSize: 0 1144 | m_FontStyle: 0 1145 | m_Alignment: 0 1146 | m_WordWrap: 0 1147 | m_RichText: 1 1148 | m_TextClipping: 1 1149 | m_ImagePosition: 2 1150 | m_ContentOffset: {x: 0, y: 0} 1151 | m_FixedWidth: 15 1152 | m_FixedHeight: 0 1153 | m_StretchWidth: 0 1154 | m_StretchHeight: 1 1155 | m_verticalScrollbarUpButton: 1156 | m_Name: verticalscrollbarupbutton 1157 | m_Normal: 1158 | m_Background: {fileID: 0} 1159 | m_ScaledBackgrounds: [] 1160 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1161 | m_Hover: 1162 | m_Background: {fileID: 0} 1163 | m_ScaledBackgrounds: [] 1164 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1165 | m_Active: 1166 | m_Background: {fileID: 0} 1167 | m_ScaledBackgrounds: [] 1168 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1169 | m_Focused: 1170 | m_Background: {fileID: 0} 1171 | m_ScaledBackgrounds: [] 1172 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1173 | m_OnNormal: 1174 | m_Background: {fileID: 0} 1175 | m_ScaledBackgrounds: [] 1176 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1177 | m_OnHover: 1178 | m_Background: {fileID: 0} 1179 | m_ScaledBackgrounds: [] 1180 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1181 | m_OnActive: 1182 | m_Background: {fileID: 0} 1183 | m_ScaledBackgrounds: [] 1184 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1185 | m_OnFocused: 1186 | m_Background: {fileID: 0} 1187 | m_ScaledBackgrounds: [] 1188 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1189 | m_Border: 1190 | m_Left: 0 1191 | m_Right: 0 1192 | m_Top: 0 1193 | m_Bottom: 0 1194 | m_Margin: 1195 | m_Left: 0 1196 | m_Right: 0 1197 | m_Top: 0 1198 | m_Bottom: 0 1199 | m_Padding: 1200 | m_Left: 0 1201 | m_Right: 0 1202 | m_Top: 0 1203 | m_Bottom: 0 1204 | m_Overflow: 1205 | m_Left: 0 1206 | m_Right: 0 1207 | m_Top: 0 1208 | m_Bottom: 0 1209 | m_Font: {fileID: 0} 1210 | m_FontSize: 0 1211 | m_FontStyle: 0 1212 | m_Alignment: 0 1213 | m_WordWrap: 0 1214 | m_RichText: 1 1215 | m_TextClipping: 1 1216 | m_ImagePosition: 0 1217 | m_ContentOffset: {x: 0, y: 0} 1218 | m_FixedWidth: 0 1219 | m_FixedHeight: 0 1220 | m_StretchWidth: 1 1221 | m_StretchHeight: 0 1222 | m_verticalScrollbarDownButton: 1223 | m_Name: verticalscrollbardownbutton 1224 | m_Normal: 1225 | m_Background: {fileID: 0} 1226 | m_ScaledBackgrounds: [] 1227 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1228 | m_Hover: 1229 | m_Background: {fileID: 0} 1230 | m_ScaledBackgrounds: [] 1231 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1232 | m_Active: 1233 | m_Background: {fileID: 0} 1234 | m_ScaledBackgrounds: [] 1235 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1236 | m_Focused: 1237 | m_Background: {fileID: 0} 1238 | m_ScaledBackgrounds: [] 1239 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1240 | m_OnNormal: 1241 | m_Background: {fileID: 0} 1242 | m_ScaledBackgrounds: [] 1243 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1244 | m_OnHover: 1245 | m_Background: {fileID: 0} 1246 | m_ScaledBackgrounds: [] 1247 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1248 | m_OnActive: 1249 | m_Background: {fileID: 0} 1250 | m_ScaledBackgrounds: [] 1251 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1252 | m_OnFocused: 1253 | m_Background: {fileID: 0} 1254 | m_ScaledBackgrounds: [] 1255 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1256 | m_Border: 1257 | m_Left: 0 1258 | m_Right: 0 1259 | m_Top: 0 1260 | m_Bottom: 0 1261 | m_Margin: 1262 | m_Left: 0 1263 | m_Right: 0 1264 | m_Top: 0 1265 | m_Bottom: 0 1266 | m_Padding: 1267 | m_Left: 0 1268 | m_Right: 0 1269 | m_Top: 0 1270 | m_Bottom: 0 1271 | m_Overflow: 1272 | m_Left: 0 1273 | m_Right: 0 1274 | m_Top: 0 1275 | m_Bottom: 0 1276 | m_Font: {fileID: 0} 1277 | m_FontSize: 0 1278 | m_FontStyle: 0 1279 | m_Alignment: 0 1280 | m_WordWrap: 0 1281 | m_RichText: 1 1282 | m_TextClipping: 1 1283 | m_ImagePosition: 0 1284 | m_ContentOffset: {x: 0, y: 0} 1285 | m_FixedWidth: 0 1286 | m_FixedHeight: 0 1287 | m_StretchWidth: 1 1288 | m_StretchHeight: 0 1289 | m_ScrollView: 1290 | m_Name: scrollview 1291 | m_Normal: 1292 | m_Background: {fileID: 0} 1293 | m_ScaledBackgrounds: [] 1294 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1295 | m_Hover: 1296 | m_Background: {fileID: 0} 1297 | m_ScaledBackgrounds: [] 1298 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1299 | m_Active: 1300 | m_Background: {fileID: 0} 1301 | m_ScaledBackgrounds: [] 1302 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1303 | m_Focused: 1304 | m_Background: {fileID: 0} 1305 | m_ScaledBackgrounds: [] 1306 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1307 | m_OnNormal: 1308 | m_Background: {fileID: 0} 1309 | m_ScaledBackgrounds: [] 1310 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1311 | m_OnHover: 1312 | m_Background: {fileID: 0} 1313 | m_ScaledBackgrounds: [] 1314 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1315 | m_OnActive: 1316 | m_Background: {fileID: 0} 1317 | m_ScaledBackgrounds: [] 1318 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1319 | m_OnFocused: 1320 | m_Background: {fileID: 0} 1321 | m_ScaledBackgrounds: [] 1322 | m_TextColor: {r: 0, g: 0, b: 0, a: 1} 1323 | m_Border: 1324 | m_Left: 0 1325 | m_Right: 0 1326 | m_Top: 0 1327 | m_Bottom: 0 1328 | m_Margin: 1329 | m_Left: 0 1330 | m_Right: 0 1331 | m_Top: 0 1332 | m_Bottom: 0 1333 | m_Padding: 1334 | m_Left: 0 1335 | m_Right: 0 1336 | m_Top: 0 1337 | m_Bottom: 0 1338 | m_Overflow: 1339 | m_Left: 0 1340 | m_Right: 0 1341 | m_Top: 0 1342 | m_Bottom: 0 1343 | m_Font: {fileID: 0} 1344 | m_FontSize: 0 1345 | m_FontStyle: 0 1346 | m_Alignment: 0 1347 | m_WordWrap: 0 1348 | m_RichText: 1 1349 | m_TextClipping: 1 1350 | m_ImagePosition: 0 1351 | m_ContentOffset: {x: 0, y: 0} 1352 | m_FixedWidth: 0 1353 | m_FixedHeight: 0 1354 | m_StretchWidth: 1 1355 | m_StretchHeight: 0 1356 | m_CustomStyles: [] 1357 | m_Settings: 1358 | m_DoubleClickSelectsWord: 1 1359 | m_TripleClickSelectsLine: 1 1360 | m_CursorColor: {r: 1, g: 1, b: 1, a: 1} 1361 | m_CursorFlashSpeed: -1 1362 | m_SelectionColor: {r: 1, g: 0.38403907, b: 0, a: 0.7} 1363 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Resources/MenuPopup.guiskin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9db1445a8a7dac4389f771684b9b953 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efa09827901f4d89b1a1bed9e1aaae52 3 | timeCreated: 1637084781 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46342d7bd9054e0cabc0ee3989ff700f 3 | timeCreated: 1637079108 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/AbstractPopup.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by: Peter @sHTiF Stefcek 3 | */ 4 | 5 | using UnityEngine; 6 | 7 | namespace BinaryEgo.UI 8 | { 9 | public abstract class AbstractPopup 10 | { 11 | public Rect rect; 12 | 13 | public static void Show(Rect p_rect, AbstractPopup p_popup) 14 | { 15 | Vector2 size = p_popup.GetWindowSize(); 16 | p_popup.rect = new Rect(p_rect.x, p_rect.y, size.x, size.y); 17 | PopupManager.AddPopup(p_popup); 18 | } 19 | 20 | public abstract Vector2 GetWindowSize(); 21 | 22 | public abstract void OnGUI(Rect p_rect); 23 | 24 | public void Close() 25 | { 26 | 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/AbstractPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 946612627d0a427c896fee92c00395b1 3 | timeCreated: 1637071359 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/MenuPopup.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by: Peter @sHTiF Stefcek 3 | */ 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using UnityEngine; 8 | 9 | namespace BinaryEgo.UI 10 | { 11 | public class MenuItemNode2 12 | { 13 | public GUIContent content; 14 | public Action func; 15 | public Action func2; 16 | public object userData; 17 | public bool separator; 18 | public bool on; 19 | 20 | public string name { get; } 21 | public MenuItemNode2 parent { get; } 22 | 23 | public List Nodes { get; private set; } 24 | 25 | public MenuItemNode2(string p_name = "", MenuItemNode2 p_parent = null) 26 | { 27 | name = p_name; 28 | parent = p_parent; 29 | Nodes = new List(); 30 | } 31 | 32 | public MenuItemNode2 CreateNode(string p_name) 33 | { 34 | var node = new MenuItemNode2(p_name, this); 35 | Nodes.Add(node); 36 | return node; 37 | } 38 | 39 | // TODO Optimize 40 | public MenuItemNode2 GetOrCreateNode(string p_name) 41 | { 42 | var node = Nodes.Find(n => n.name == p_name); 43 | if (node == null) 44 | { 45 | node = CreateNode(p_name); 46 | } 47 | 48 | return node; 49 | } 50 | 51 | public List Search(string p_search) 52 | { 53 | p_search = p_search.ToLower(); 54 | List result = new List(); 55 | 56 | foreach (var node in Nodes) 57 | { 58 | if (node.Nodes.Count == 0 && node.name.ToLower().Contains(p_search)) 59 | { 60 | result.Add(node); 61 | } 62 | 63 | result.AddRange(node.Search(p_search)); 64 | } 65 | 66 | return result; 67 | } 68 | 69 | public string GetPath() 70 | { 71 | return parent == null ? "" : parent.GetPath() + "/" + name; 72 | } 73 | 74 | public void Execute() 75 | { 76 | if (func != null) 77 | { 78 | func?.Invoke(); 79 | } 80 | else 81 | { 82 | func2?.Invoke(userData); 83 | } 84 | } 85 | } 86 | 87 | public class MenuPopup : AbstractPopup 88 | { 89 | public static MenuPopup Get(RuntimeGenericMenu p_menu, string p_title) 90 | { 91 | var popup = new MenuPopup(p_menu, p_title); 92 | return popup; 93 | } 94 | 95 | public static MenuPopup Show(RuntimeGenericMenu p_menu, string p_title, Vector2 p_position) { 96 | var popup = new MenuPopup(p_menu, p_title); 97 | AbstractPopup.Show(new Rect(p_position.x, p_position.y, 0, 0), popup); 98 | return popup; 99 | } 100 | 101 | private GUIStyle _backStyle; 102 | public GUIStyle BackStyle 103 | { 104 | get 105 | { 106 | if (_backStyle == null) 107 | { 108 | _backStyle = new GUIStyle(); 109 | _backStyle.alignment = TextAnchor.MiddleLeft; 110 | _backStyle.normal.background = Texture2D.grayTexture; 111 | _backStyle.hover.background = Texture2D.whiteTexture; 112 | _backStyle.normal.textColor = Color.black; 113 | } 114 | 115 | return _backStyle; 116 | } 117 | } 118 | 119 | private GUIStyle _plusStyle; 120 | public GUIStyle PlusStyle 121 | { 122 | get { 123 | if (_plusStyle == null) 124 | { 125 | _plusStyle = new GUIStyle(); 126 | _plusStyle.fontStyle = FontStyle.Bold; 127 | _plusStyle.normal.textColor = Color.white; 128 | _plusStyle.fontSize = 16; 129 | } 130 | 131 | return _plusStyle; 132 | } 133 | } 134 | 135 | private string _title; 136 | private Vector2 _scrollPosition; 137 | private MenuItemNode2 _rootNode; 138 | private MenuItemNode2 _currentNode; 139 | private MenuItemNode2 _hoverNode; 140 | private string _search; 141 | private bool _repaint = false; 142 | private int _contentHeight; 143 | private bool _useScroll; 144 | private GUISkin _skin; 145 | 146 | public int width = 200; 147 | public int height = 200; 148 | public int maxHeight = 300; 149 | public bool resizeToContent = false; 150 | public bool showOnStatus = true; 151 | public bool showSearch = true; 152 | public bool showTooltip = false; 153 | public bool showTitle = false; 154 | 155 | 156 | public MenuPopup(RuntimeGenericMenu p_menu, string p_title) 157 | { 158 | _skin = Resources.Load("MenuPopup"); 159 | 160 | _title = p_title; 161 | showTitle = !string.IsNullOrWhiteSpace(_title); 162 | _currentNode = _rootNode = GenerateMenuItemNodeTree(p_menu); 163 | } 164 | 165 | public override Vector2 GetWindowSize() 166 | { 167 | return new Vector2(width, height); 168 | } 169 | 170 | public override void OnGUI(Rect p_rect) 171 | { 172 | GUI.skin = _skin; 173 | 174 | if (Event.current.type == EventType.Layout) 175 | _useScroll = _contentHeight > maxHeight || (!resizeToContent && _contentHeight > height); 176 | 177 | Vector2 size = GetWindowSize(); 178 | p_rect = new Rect(rect.x, rect.y, size.x, size.y); 179 | 180 | _contentHeight = 0; 181 | GUIStyle style = new GUIStyle(); 182 | style.normal.background = Texture2D.whiteTexture; 183 | GUI.color = new Color(0.1f, 0.1f, 0.1f, 1); 184 | GUI.Box(p_rect, string.Empty, style); 185 | GUI.color = Color.white; 186 | 187 | if (showTitle) 188 | { 189 | DrawTitle(new Rect(p_rect.x, p_rect.y, p_rect.width, 24)); 190 | } 191 | 192 | if (showSearch) 193 | { 194 | DrawSearch(new Rect(p_rect.x, p_rect.y + (showTitle ? 24 : 0), p_rect.width, 20)); 195 | } 196 | 197 | DrawMenuItems(new Rect(p_rect.x, p_rect.y + (showTitle ? 24 : 0) + (showSearch ? 22 : 0), p_rect.width, p_rect.height - (showTooltip ? 60 : 0) - (showTitle ? 24 : 0) - (showSearch ? 22 : 0))); 198 | 199 | if (showTooltip) 200 | { 201 | DrawTooltip(new Rect(p_rect.x + 5, p_rect.y + p_rect.height - 58, p_rect.width - 10, 56)); 202 | } 203 | 204 | if (resizeToContent) 205 | { 206 | height = Mathf.Min(_contentHeight, maxHeight); 207 | } 208 | GUI.FocusControl("Search"); 209 | } 210 | 211 | private void DrawTitle(Rect p_rect) 212 | { 213 | _contentHeight += 24; 214 | GUIStyle style = new GUIStyle(); 215 | style.normal.textColor = Color.white; 216 | style.fontStyle = FontStyle.Bold; 217 | style.fontSize = 16; 218 | style.alignment = TextAnchor.LowerCenter; 219 | GUI.Label(p_rect, _title, style); 220 | } 221 | 222 | private void DrawSearch(Rect p_rect) 223 | { 224 | _contentHeight += 22; 225 | GUI.SetNextControlName("Search"); 226 | _search = GUI.TextArea(p_rect, _search); 227 | } 228 | 229 | private void DrawTooltip(Rect p_rect) 230 | { 231 | _contentHeight += 60; 232 | if (_hoverNode == null || _hoverNode.content == null || string.IsNullOrWhiteSpace(_hoverNode.content.tooltip)) 233 | return; 234 | 235 | GUIStyle style = new GUIStyle(); 236 | style.fontSize = 9; 237 | style.wordWrap = true; 238 | style.normal.textColor = Color.white; 239 | GUI.Label(p_rect, _hoverNode.content.tooltip, style); 240 | } 241 | 242 | private void DrawMenuItems(Rect p_rect) 243 | { 244 | GUILayout.BeginArea(p_rect); 245 | if (_useScroll) 246 | { 247 | _scrollPosition = GUILayout.BeginScrollView(_scrollPosition, GUIStyle.none, _skin.verticalScrollbar); 248 | } 249 | 250 | GUILayout.BeginVertical(); 251 | 252 | if (string.IsNullOrWhiteSpace(_search) || _search.Length<2) 253 | { 254 | DrawNodeTree(p_rect); 255 | } 256 | else 257 | { 258 | DrawNodeSearch(p_rect); 259 | } 260 | 261 | GUILayout.EndVertical(); 262 | if (_useScroll) 263 | { 264 | GUILayout.EndScrollView(); 265 | } 266 | 267 | GUILayout.EndArea(); 268 | } 269 | 270 | private void DrawNodeSearch(Rect p_rect) 271 | { 272 | List search = _rootNode.Search(_search); 273 | search.Sort((n1, n2) => 274 | { 275 | string p1 = n1.parent.GetPath(); 276 | string p2 = n2.parent.GetPath(); 277 | if (p1 == p2) 278 | return n1.name.CompareTo(n2.name); 279 | 280 | return p1.CompareTo(p2); 281 | }); 282 | 283 | string lastPath = ""; 284 | foreach (var node in search) 285 | { 286 | string nodePath = node.parent.GetPath(); 287 | if (nodePath != lastPath) 288 | { 289 | _contentHeight += 20; 290 | GUILayout.Label(nodePath, GUILayout.Height(20)); 291 | lastPath = nodePath; 292 | } 293 | 294 | _contentHeight += 20; 295 | GUI.color = _hoverNode == node ? Color.white : Color.gray; 296 | GUIStyle style = new GUIStyle(); 297 | style.normal.background = Texture2D.grayTexture; 298 | GUILayout.BeginHorizontal(style); 299 | 300 | if (showOnStatus) 301 | { 302 | style = new GUIStyle(); 303 | style.normal.background = Texture2D.whiteTexture; 304 | GUI.color = node.on ? new Color(0, .6f, .8f) : new Color(.2f, .2f, .2f); 305 | GUILayout.Box("", style, GUILayout.Width(14), GUILayout.Height(14)); 306 | } 307 | 308 | GUI.color = _hoverNode == node ? Color.white : Color.white; 309 | style = new GUIStyle(); 310 | style.normal.textColor = Color.white; 311 | GUILayout.Label(node.name, style, GUILayout.Height(20)); 312 | 313 | GUILayout.EndHorizontal(); 314 | 315 | var nodeRect = GUILayoutUtility.GetLastRect(); 316 | if (Event.current.type == EventType.Repaint || Event.current.isMouse) 317 | { 318 | if (nodeRect.Contains(Event.current.mousePosition)) 319 | { 320 | if (Event.current.type == EventType.MouseDown && Event.current.button == 0) 321 | { 322 | if (node.Nodes.Count > 0) 323 | { 324 | _currentNode = node; 325 | _repaint = true; 326 | } 327 | else 328 | { 329 | node.Execute(); 330 | Close(); 331 | } 332 | 333 | break; 334 | } 335 | 336 | if (_hoverNode != node) 337 | { 338 | _hoverNode = node; 339 | _repaint = true; 340 | } 341 | } 342 | else if (_hoverNode == node) 343 | { 344 | _hoverNode = null; 345 | _repaint = true; 346 | } 347 | } 348 | } 349 | 350 | if (search.Count == 0) 351 | { 352 | GUILayout.Label("No result found for specified search."); 353 | } 354 | } 355 | 356 | private void DrawNodeTree(Rect p_rect) 357 | { 358 | if (_currentNode != _rootNode) 359 | { 360 | _contentHeight += 20; 361 | if (GUILayout.Button(_currentNode.GetPath(), BackStyle, GUILayout.Height(20))) 362 | { 363 | _currentNode = _currentNode.parent; 364 | } 365 | } 366 | 367 | foreach (var node in _currentNode.Nodes) 368 | { 369 | if (node.separator) 370 | { 371 | GUILayout.Space(4); 372 | _contentHeight += 4; 373 | continue; 374 | } 375 | 376 | _contentHeight += 20; 377 | GUI.color = _hoverNode == node ? Color.white : Color.gray; 378 | GUIStyle style = new GUIStyle(); 379 | style.normal.background = Texture2D.grayTexture; 380 | GUILayout.BeginHorizontal(style); 381 | 382 | if (showOnStatus) 383 | { 384 | style = new GUIStyle(); 385 | style.normal.background = Texture2D.whiteTexture; 386 | GUI.color = node.on ? new Color(0, .6f, .8f, .5f) : new Color(.2f, .2f, .2f, .2f); 387 | GUILayout.Box("", style, GUILayout.Width(14), GUILayout.Height(14)); 388 | } 389 | 390 | GUI.color = _hoverNode == node ? Color.white : Color.white; 391 | style = new GUIStyle(); 392 | style.normal.textColor = Color.white; 393 | style.fontStyle = node.Nodes.Count > 0 ? FontStyle.Bold : FontStyle.Normal; 394 | GUILayout.Label(node.name, style, GUILayout.Height(20)); 395 | 396 | GUILayout.EndHorizontal(); 397 | var nodeRect = GUILayoutUtility.GetLastRect(); 398 | if (Event.current.type == EventType.Repaint || Event.current.isMouse) 399 | { 400 | if (nodeRect.Contains(Event.current.mousePosition)) 401 | { 402 | if (Event.current.type == EventType.MouseDown && Event.current.button == 0) 403 | { 404 | if (node.Nodes.Count > 0) 405 | { 406 | _currentNode = node; 407 | _repaint = true; 408 | } 409 | else 410 | { 411 | node.Execute(); 412 | Close(); 413 | } 414 | 415 | break; 416 | } 417 | 418 | if (_hoverNode != node) 419 | { 420 | _hoverNode = node; 421 | _repaint = true; 422 | } 423 | } 424 | else if (_hoverNode == node) 425 | { 426 | _hoverNode = null; 427 | _repaint = true; 428 | } 429 | } 430 | 431 | if (node.Nodes.Count > 0) 432 | { 433 | Rect lastRect = GUILayoutUtility.GetLastRect(); 434 | GUI.Label(new Rect(lastRect.x+lastRect.width-16, lastRect.y-2, 20, 20), "+", PlusStyle); 435 | } 436 | } 437 | } 438 | 439 | public static MenuItemNode2 GenerateMenuItemNodeTree(RuntimeGenericMenu p_menu) 440 | { 441 | MenuItemNode2 rootNode = new MenuItemNode2(); 442 | if (p_menu == null) 443 | return rootNode; 444 | 445 | foreach (var menuItem in p_menu.Items) 446 | { 447 | GUIContent content = menuItem.content; 448 | 449 | string path = content.text; 450 | string[] splitPath = path.Split('/'); 451 | MenuItemNode2 currentNode = rootNode; 452 | for (int i = 0; i < splitPath.Length; i++) 453 | { 454 | currentNode = (i < splitPath.Length - 1) 455 | ? currentNode.GetOrCreateNode(splitPath[i]) 456 | : currentNode.CreateNode(splitPath[i]); 457 | } 458 | 459 | if (menuItem.separator) 460 | { 461 | currentNode.separator = true; 462 | } 463 | else 464 | { 465 | currentNode.content = content; 466 | currentNode.func = menuItem.callback1; 467 | currentNode.func2 = menuItem.callback2; 468 | currentNode.userData = menuItem.data; 469 | currentNode.on = menuItem.state; 470 | } 471 | } 472 | 473 | return rootNode; 474 | } 475 | 476 | public void Show(float p_x, float p_y) 477 | { 478 | AbstractPopup.Show(new Rect(p_x, p_y, 0, 0), this); 479 | } 480 | 481 | public void Show(Vector2 p_position) 482 | { 483 | AbstractPopup.Show(new Rect(p_position.x, p_position.y, 0, 0), this); 484 | } 485 | } 486 | } -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/MenuPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9d724d19c7c47ce8bb1973a63da12ff 3 | timeCreated: 1637071240 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/PopupManager.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by: Peter @sHTiF Stefcek 3 | */ 4 | 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | 8 | namespace BinaryEgo.UI 9 | { 10 | public class PopupManager 11 | { 12 | public static List Popups { get; } = new List(); 13 | 14 | public static void AddPopup(AbstractPopup p_popup) 15 | { 16 | if (!Popups.Contains(p_popup)) 17 | { 18 | Popups.Add(p_popup); 19 | } 20 | } 21 | 22 | public static void RemovePopup(AbstractPopup p_popup) 23 | { 24 | if (Popups.Contains(p_popup)) 25 | { 26 | Popups.Remove(p_popup); 27 | } 28 | } 29 | 30 | public static void OnGUI(Rect p_rect) 31 | { 32 | Popups.ForEach(p => 33 | { 34 | p.OnGUI(p_rect); 35 | }); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/PopupManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90d12a6e774f4e8489a23da3eca19ed4 3 | timeCreated: 1637071181 -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/RuntimeGenericMenu.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by: Peter @sHTiF Stefcek 3 | */ 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using UnityEngine; 8 | 9 | #if UNITY_EDITOR 10 | using UnityEditor; 11 | #endif 12 | 13 | namespace BinaryEgo.UI 14 | { 15 | public class RuntimeGenericMenuItem 16 | { 17 | public GUIContent content; 18 | public bool separator; 19 | public bool state; 20 | public Action callback1; 21 | public Action callback2; 22 | public object data; 23 | 24 | public RuntimeGenericMenuItem(GUIContent p_content, bool p_separator, bool p_state, Action p_callback) 25 | { 26 | content = p_content; 27 | separator = p_separator; 28 | state = p_state; 29 | callback1 = p_callback; 30 | } 31 | 32 | public RuntimeGenericMenuItem(GUIContent p_content, bool p_separator, bool p_state, Action p_callback, object p_data) 33 | { 34 | content = p_content; 35 | separator = p_separator; 36 | state = p_state; 37 | callback2 = p_callback; 38 | data = p_data; 39 | 40 | } 41 | } 42 | 43 | public class RuntimeGenericMenu 44 | { 45 | public List Items { get; private set; } = new List(); 46 | 47 | public void AddItem(GUIContent p_content, bool p_state, Action p_callback) 48 | { 49 | Items.Add(new RuntimeGenericMenuItem(p_content, false, p_state, p_callback)); 50 | } 51 | 52 | public void AddItem(GUIContent p_content, bool p_state, Action p_callback, object p_data) 53 | { 54 | Items.Add(new RuntimeGenericMenuItem(p_content, false, p_state, p_callback, p_data)); 55 | } 56 | 57 | public void AddSeparator(string p_path) 58 | { 59 | Items.Add(new RuntimeGenericMenuItem(new GUIContent(p_path), true, false, null)); 60 | } 61 | 62 | #if UNITY_EDITOR 63 | public void ShowAsEditorMenu() 64 | { 65 | GenericMenu editorMenu = new GenericMenu(); 66 | 67 | foreach (var item in Items) 68 | { 69 | if (!item.separator) 70 | { 71 | if (item.callback2 != null) 72 | { 73 | editorMenu.AddItem(item.content, item.state, (data) => item.callback2.Invoke(data), item.data); 74 | } 75 | else 76 | { 77 | editorMenu.AddItem(item.content, item.state, () => item.callback1.Invoke()); 78 | } 79 | } 80 | else 81 | { 82 | editorMenu.AddSeparator(item.content.text); 83 | } 84 | } 85 | 86 | editorMenu.ShowAsContext(); 87 | } 88 | #endif 89 | } 90 | } -------------------------------------------------------------------------------- /Assets/BinaryEgo/Runtime/Scripts/Popup/RuntimeGenericMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 681e4313b97b496799cb146cf4d90d4d 3 | timeCreated: 1637071544 -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5802fbd289540f94d91961468ebfd7c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/BillingMode.json: -------------------------------------------------------------------------------- 1 | {"androidStore":"GooglePlay"} -------------------------------------------------------------------------------- /Assets/Resources/BillingMode.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9518762ba7a2354c806e6c7ba4ed028 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b52923cd60df0a498afcd9d8f787e74 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 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 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &705507993 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 705507995} 133 | - component: {fileID: 705507994} 134 | m_Layer: 0 135 | m_Name: Directional Light 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!108 &705507994 142 | Light: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 705507993} 148 | m_Enabled: 1 149 | serializedVersion: 10 150 | m_Type: 1 151 | m_Shape: 0 152 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 153 | m_Intensity: 1 154 | m_Range: 10 155 | m_SpotAngle: 30 156 | m_InnerSpotAngle: 21.80208 157 | m_CookieSize: 10 158 | m_Shadows: 159 | m_Type: 2 160 | m_Resolution: -1 161 | m_CustomResolution: -1 162 | m_Strength: 1 163 | m_Bias: 0.05 164 | m_NormalBias: 0.4 165 | m_NearPlane: 0.2 166 | m_CullingMatrixOverride: 167 | e00: 1 168 | e01: 0 169 | e02: 0 170 | e03: 0 171 | e10: 0 172 | e11: 1 173 | e12: 0 174 | e13: 0 175 | e20: 0 176 | e21: 0 177 | e22: 1 178 | e23: 0 179 | e30: 0 180 | e31: 0 181 | e32: 0 182 | e33: 1 183 | m_UseCullingMatrixOverride: 0 184 | m_Cookie: {fileID: 0} 185 | m_DrawHalo: 0 186 | m_Flare: {fileID: 0} 187 | m_RenderMode: 0 188 | m_CullingMask: 189 | serializedVersion: 2 190 | m_Bits: 4294967295 191 | m_RenderingLayerMask: 1 192 | m_Lightmapping: 1 193 | m_LightShadowCasterMode: 0 194 | m_AreaSize: {x: 1, y: 1} 195 | m_BounceIntensity: 1 196 | m_ColorTemperature: 6570 197 | m_UseColorTemperature: 0 198 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 199 | m_UseBoundingSphereOverride: 0 200 | m_ShadowRadius: 0 201 | m_ShadowAngle: 0 202 | --- !u!4 &705507995 203 | Transform: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 705507993} 209 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 210 | m_LocalPosition: {x: 0, y: 3, z: 0} 211 | m_LocalScale: {x: 1, y: 1, z: 1} 212 | m_Children: [] 213 | m_Father: {fileID: 0} 214 | m_RootOrder: 1 215 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 216 | --- !u!1 &963194225 217 | GameObject: 218 | m_ObjectHideFlags: 0 219 | m_CorrespondingSourceObject: {fileID: 0} 220 | m_PrefabInstance: {fileID: 0} 221 | m_PrefabAsset: {fileID: 0} 222 | serializedVersion: 6 223 | m_Component: 224 | - component: {fileID: 963194228} 225 | - component: {fileID: 963194227} 226 | - component: {fileID: 963194226} 227 | m_Layer: 0 228 | m_Name: Main Camera 229 | m_TagString: MainCamera 230 | m_Icon: {fileID: 0} 231 | m_NavMeshLayer: 0 232 | m_StaticEditorFlags: 0 233 | m_IsActive: 1 234 | --- !u!81 &963194226 235 | AudioListener: 236 | m_ObjectHideFlags: 0 237 | m_CorrespondingSourceObject: {fileID: 0} 238 | m_PrefabInstance: {fileID: 0} 239 | m_PrefabAsset: {fileID: 0} 240 | m_GameObject: {fileID: 963194225} 241 | m_Enabled: 1 242 | --- !u!20 &963194227 243 | Camera: 244 | m_ObjectHideFlags: 0 245 | m_CorrespondingSourceObject: {fileID: 0} 246 | m_PrefabInstance: {fileID: 0} 247 | m_PrefabAsset: {fileID: 0} 248 | m_GameObject: {fileID: 963194225} 249 | m_Enabled: 1 250 | serializedVersion: 2 251 | m_ClearFlags: 1 252 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 253 | m_projectionMatrixMode: 1 254 | m_GateFitMode: 2 255 | m_FOVAxisMode: 0 256 | m_SensorSize: {x: 36, y: 24} 257 | m_LensShift: {x: 0, y: 0} 258 | m_FocalLength: 50 259 | m_NormalizedViewPortRect: 260 | serializedVersion: 2 261 | x: 0 262 | y: 0 263 | width: 1 264 | height: 1 265 | near clip plane: 0.3 266 | far clip plane: 1000 267 | field of view: 60 268 | orthographic: 0 269 | orthographic size: 5 270 | m_Depth: -1 271 | m_CullingMask: 272 | serializedVersion: 2 273 | m_Bits: 4294967295 274 | m_RenderingPath: -1 275 | m_TargetTexture: {fileID: 0} 276 | m_TargetDisplay: 0 277 | m_TargetEye: 3 278 | m_HDR: 1 279 | m_AllowMSAA: 1 280 | m_AllowDynamicResolution: 0 281 | m_ForceIntoRT: 0 282 | m_OcclusionCulling: 1 283 | m_StereoConvergence: 10 284 | m_StereoSeparation: 0.022 285 | --- !u!4 &963194228 286 | Transform: 287 | m_ObjectHideFlags: 0 288 | m_CorrespondingSourceObject: {fileID: 0} 289 | m_PrefabInstance: {fileID: 0} 290 | m_PrefabAsset: {fileID: 0} 291 | m_GameObject: {fileID: 963194225} 292 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 293 | m_LocalPosition: {x: 0, y: 1, z: -10} 294 | m_LocalScale: {x: 1, y: 1, z: 1} 295 | m_Children: [] 296 | m_Father: {fileID: 0} 297 | m_RootOrder: 0 298 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 299 | --- !u!1 &1773778332 300 | GameObject: 301 | m_ObjectHideFlags: 0 302 | m_CorrespondingSourceObject: {fileID: 0} 303 | m_PrefabInstance: {fileID: 0} 304 | m_PrefabAsset: {fileID: 0} 305 | serializedVersion: 6 306 | m_Component: 307 | - component: {fileID: 1773778333} 308 | - component: {fileID: 1773778334} 309 | m_Layer: 0 310 | m_Name: GameObject 311 | m_TagString: Untagged 312 | m_Icon: {fileID: 0} 313 | m_NavMeshLayer: 0 314 | m_StaticEditorFlags: 0 315 | m_IsActive: 1 316 | --- !u!4 &1773778333 317 | Transform: 318 | m_ObjectHideFlags: 0 319 | m_CorrespondingSourceObject: {fileID: 0} 320 | m_PrefabInstance: {fileID: 0} 321 | m_PrefabAsset: {fileID: 0} 322 | m_GameObject: {fileID: 1773778332} 323 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 324 | m_LocalPosition: {x: 0.8649883, y: -1.4726009, z: 0.2840786} 325 | m_LocalScale: {x: 1, y: 1, z: 1} 326 | m_Children: [] 327 | m_Father: {fileID: 0} 328 | m_RootOrder: 2 329 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 330 | --- !u!114 &1773778334 331 | MonoBehaviour: 332 | m_ObjectHideFlags: 0 333 | m_CorrespondingSourceObject: {fileID: 0} 334 | m_PrefabInstance: {fileID: 0} 335 | m_PrefabAsset: {fileID: 0} 336 | m_GameObject: {fileID: 1773778332} 337 | m_Enabled: 1 338 | m_EditorHideFlags: 0 339 | m_Script: {fileID: 11500000, guid: 236b8e34d89829a4a8ba48b2d848b9f9, type: 3} 340 | m_Name: 341 | m_EditorClassIdentifier: 342 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8bd33daf2e3c264abbb89c9320b62d1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4c881f1af174c74a233dd2f2cad898f 3 | timeCreated: 1614259849 -------------------------------------------------------------------------------- /Assets/Scripts/Editor/SceneGUIGenericMenu.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Created by: Peter @sHTiF Stefcek 3 | */ 4 | 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using BinaryEgo.Editor.UI; 9 | using BinaryEgo.UI; 10 | 11 | namespace Editor 12 | { 13 | using UnityEngine; 14 | using System.Collections; 15 | using UnityEditor; 16 | 17 | [InitializeOnLoad] 18 | public class SceneGUIGenericMenu : Editor { 19 | 20 | static SceneGUIGenericMenu () 21 | { 22 | SceneView.duringSceneGui -= OnSceneGUI; 23 | SceneView.duringSceneGui += OnSceneGUI; 24 | } 25 | 26 | static void OnSceneGUI (SceneView sceneview) { 27 | 28 | if (Event.current.button == 1) 29 | { 30 | if (Event.current.type == EventType.MouseDown) 31 | { 32 | //var menu = GetExampleMenu(); 33 | //menu.ShowAsContext(); 34 | //GenericMenuPopup.Show(menu, "", Event.current.mousePosition); 35 | 36 | var menu = GetTypeMenu(typeof(Component)); 37 | //menu.ShowAsContext(); 38 | var popup = GenericMenuPopup.Get(GetTypeMenu(typeof(Component)), ""); 39 | popup.width = 220; 40 | popup.showSearch = false; 41 | popup.showTooltip = false; 42 | popup.resizeToContent = true; 43 | popup.Show(Event.current.mousePosition); 44 | } 45 | } 46 | } 47 | 48 | static void Callback (object obj) { 49 | Debug.Log(obj); 50 | } 51 | 52 | static public GenericMenu GetExampleMenu() 53 | { 54 | GenericMenu menu = new GenericMenu(); 55 | menu.AddItem(new GUIContent("Edit"), false, Callback, 1); 56 | menu.AddItem(new GUIContent("File"), false, Callback, 2); 57 | menu.AddItem(new GUIContent("Submenu/Import"), true, Callback, 3); 58 | menu.AddItem(new GUIContent("Submenu/Export"), false, Callback, 4); 59 | menu.AddItem(new GUIContent("About"), false, Callback, 5); 60 | 61 | return menu; 62 | } 63 | 64 | static public GenericMenu GetTypeMenu(Type p_type) 65 | { 66 | GenericMenu menu = new GenericMenu(); 67 | 68 | Type[] types = GetAllTypes(p_type).ToArray(); 69 | Array.Sort(types, (t1, t2) => t1.ToString().CompareTo(t2.ToString())); 70 | 71 | foreach (Type type in types) 72 | { 73 | string name = type.ToString();//.Substring(type.ToString().IndexOf(".") + 1); 74 | name = name.Replace('.', '/'); 75 | //name = name.Substring(0, name.Length-4); 76 | 77 | 78 | menu.AddItem(new GUIContent(name, type.ToString()), false, null); 79 | } 80 | 81 | return menu; 82 | } 83 | 84 | public static List GetAllTypes(Type p_type) 85 | { 86 | return AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes()) 87 | .Where(x => p_type.IsAssignableFrom(x) && !x.IsInterface && !x.IsAbstract).ToList(); 88 | } 89 | } 90 | } -------------------------------------------------------------------------------- /Assets/Scripts/Editor/SceneGUIGenericMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51411c6780dc49f09b054e69c307acfb 3 | timeCreated: 1614259849 -------------------------------------------------------------------------------- /Assets/Scripts/RuntimeMenuPopupTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using BinaryEgo.UI; 6 | using UnityEngine; 7 | 8 | public class RuntimeMenuPopupTest : MonoBehaviour 9 | { 10 | void OnGUI() 11 | { 12 | if (Event.current.isMouse && Event.current.button == 1) 13 | { 14 | popup.Show(Event.current.mousePosition); 15 | } 16 | 17 | PopupManager.OnGUI(new Rect(0,0,Screen.width, Screen.height)); 18 | } 19 | 20 | private MenuPopup popup; 21 | 22 | void Start() 23 | { 24 | var menu = GetTypeMenu(typeof(Component)); 25 | //var menu = GetExampleMenu(); 26 | popup = MenuPopup.Get(menu, "RuntimeGenericMenu"); 27 | popup.width = 220; 28 | popup.showSearch = true; 29 | popup.showTooltip = false; 30 | popup.resizeToContent = true; 31 | } 32 | 33 | void Update() 34 | { 35 | 36 | } 37 | 38 | static public RuntimeGenericMenu GetTypeMenu(Type p_type) 39 | { 40 | RuntimeGenericMenu menu = new RuntimeGenericMenu(); 41 | 42 | Type[] types = GetAllTypes(p_type).ToArray(); 43 | Array.Sort(types, (t1, t2) => t1.ToString().CompareTo(t2.ToString())); 44 | 45 | foreach (Type type in types) 46 | { 47 | string name = type.ToString();//.Substring(type.ToString().IndexOf(".") + 1); 48 | name = name.Replace('.', '/'); 49 | //name = name.Substring(0, name.Length-4); 50 | 51 | 52 | menu.AddItem(new GUIContent(name, type.ToString()), false, null); 53 | } 54 | 55 | return menu; 56 | } 57 | 58 | public static List GetAllTypes(Type p_type) 59 | { 60 | return AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes()) 61 | .Where(x => p_type.IsAssignableFrom(x) && !x.IsInterface && !x.IsAbstract).ToList(); 62 | } 63 | 64 | static public RuntimeGenericMenu GetExampleMenu() 65 | { 66 | RuntimeGenericMenu menu = new RuntimeGenericMenu(); 67 | menu.AddItem(new GUIContent("Edit"), false, Callback, 1); 68 | menu.AddItem(new GUIContent("File"), false, Callback, 2); 69 | menu.AddItem(new GUIContent("Submenu/Import"), true, Callback, 3); 70 | menu.AddItem(new GUIContent("Submenu/Export"), false, Callback, 4); 71 | menu.AddItem(new GUIContent("About"), false, Callback, 5); 72 | 73 | return menu; 74 | } 75 | 76 | static void Callback (object obj) { 77 | Debug.Log(obj); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /Assets/Scripts/RuntimeMenuPopupTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 236b8e34d89829a4a8ba48b2d848b9f9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Peter @sHTiF Stefcek 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": "1.0.0", 4 | "com.unity.2d.tilemap": "1.0.0", 5 | "com.unity.ads": "3.7.5", 6 | "com.unity.analytics": "3.6.11", 7 | "com.unity.collab-proxy": "1.12.5", 8 | "com.unity.ide.rider": "1.2.1", 9 | "com.unity.ide.visualstudio": "2.0.11", 10 | "com.unity.ide.vscode": "1.2.4", 11 | "com.unity.multiplayer-hlapi": "1.0.8", 12 | "com.unity.purchasing": "4.0.3", 13 | "com.unity.test-framework": "1.1.29", 14 | "com.unity.textmeshpro": "2.1.4", 15 | "com.unity.timeline": "1.2.18", 16 | "com.unity.ugui": "1.0.0", 17 | "com.unity.xr.legacyinputhelpers": "2.1.8", 18 | "com.unity.modules.ai": "1.0.0", 19 | "com.unity.modules.androidjni": "1.0.0", 20 | "com.unity.modules.animation": "1.0.0", 21 | "com.unity.modules.assetbundle": "1.0.0", 22 | "com.unity.modules.audio": "1.0.0", 23 | "com.unity.modules.cloth": "1.0.0", 24 | "com.unity.modules.director": "1.0.0", 25 | "com.unity.modules.imageconversion": "1.0.0", 26 | "com.unity.modules.imgui": "1.0.0", 27 | "com.unity.modules.jsonserialize": "1.0.0", 28 | "com.unity.modules.particlesystem": "1.0.0", 29 | "com.unity.modules.physics": "1.0.0", 30 | "com.unity.modules.physics2d": "1.0.0", 31 | "com.unity.modules.screencapture": "1.0.0", 32 | "com.unity.modules.terrain": "1.0.0", 33 | "com.unity.modules.terrainphysics": "1.0.0", 34 | "com.unity.modules.tilemap": "1.0.0", 35 | "com.unity.modules.ui": "1.0.0", 36 | "com.unity.modules.uielements": "1.0.0", 37 | "com.unity.modules.umbra": "1.0.0", 38 | "com.unity.modules.unityanalytics": "1.0.0", 39 | "com.unity.modules.unitywebrequest": "1.0.0", 40 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 41 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 42 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 43 | "com.unity.modules.unitywebrequestwww": "1.0.0", 44 | "com.unity.modules.vehicles": "1.0.0", 45 | "com.unity.modules.video": "1.0.0", 46 | "com.unity.modules.vr": "1.0.0", 47 | "com.unity.modules.wind": "1.0.0", 48 | "com.unity.modules.xr": "1.0.0" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": { 4 | "version": "1.0.0", 5 | "depth": 0, 6 | "source": "builtin", 7 | "dependencies": {} 8 | }, 9 | "com.unity.2d.tilemap": { 10 | "version": "1.0.0", 11 | "depth": 0, 12 | "source": "builtin", 13 | "dependencies": {} 14 | }, 15 | "com.unity.ads": { 16 | "version": "3.7.5", 17 | "depth": 0, 18 | "source": "registry", 19 | "dependencies": { 20 | "com.unity.ugui": "1.0.0" 21 | }, 22 | "url": "https://packages.unity.com" 23 | }, 24 | "com.unity.analytics": { 25 | "version": "3.6.11", 26 | "depth": 0, 27 | "source": "registry", 28 | "dependencies": { 29 | "com.unity.ugui": "1.0.0" 30 | }, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.collab-proxy": { 34 | "version": "1.12.5", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": {}, 38 | "url": "https://packages.unity.com" 39 | }, 40 | "com.unity.ext.nunit": { 41 | "version": "1.0.6", 42 | "depth": 1, 43 | "source": "registry", 44 | "dependencies": {}, 45 | "url": "https://packages.unity.com" 46 | }, 47 | "com.unity.ide.rider": { 48 | "version": "1.2.1", 49 | "depth": 0, 50 | "source": "registry", 51 | "dependencies": { 52 | "com.unity.test-framework": "1.1.1" 53 | }, 54 | "url": "https://packages.unity.com" 55 | }, 56 | "com.unity.ide.visualstudio": { 57 | "version": "2.0.11", 58 | "depth": 0, 59 | "source": "registry", 60 | "dependencies": { 61 | "com.unity.test-framework": "1.1.9" 62 | }, 63 | "url": "https://packages.unity.com" 64 | }, 65 | "com.unity.ide.vscode": { 66 | "version": "1.2.4", 67 | "depth": 0, 68 | "source": "registry", 69 | "dependencies": {}, 70 | "url": "https://packages.unity.com" 71 | }, 72 | "com.unity.multiplayer-hlapi": { 73 | "version": "1.0.8", 74 | "depth": 0, 75 | "source": "registry", 76 | "dependencies": { 77 | "nuget.mono-cecil": "0.1.6-preview" 78 | }, 79 | "url": "https://packages.unity.com" 80 | }, 81 | "com.unity.purchasing": { 82 | "version": "4.0.3", 83 | "depth": 0, 84 | "source": "registry", 85 | "dependencies": { 86 | "com.unity.ugui": "1.0.0", 87 | "com.unity.modules.unityanalytics": "1.0.0", 88 | "com.unity.modules.unitywebrequest": "1.0.0", 89 | "com.unity.modules.jsonserialize": "1.0.0", 90 | "com.unity.modules.androidjni": "1.0.0", 91 | "com.unity.services.core": "1.0.1" 92 | }, 93 | "url": "https://packages.unity.com" 94 | }, 95 | "com.unity.services.core": { 96 | "version": "1.0.1", 97 | "depth": 1, 98 | "source": "registry", 99 | "dependencies": { 100 | "com.unity.modules.unitywebrequest": "1.0.0" 101 | }, 102 | "url": "https://packages.unity.com" 103 | }, 104 | "com.unity.test-framework": { 105 | "version": "1.1.29", 106 | "depth": 0, 107 | "source": "registry", 108 | "dependencies": { 109 | "com.unity.ext.nunit": "1.0.6", 110 | "com.unity.modules.imgui": "1.0.0", 111 | "com.unity.modules.jsonserialize": "1.0.0" 112 | }, 113 | "url": "https://packages.unity.com" 114 | }, 115 | "com.unity.textmeshpro": { 116 | "version": "2.1.4", 117 | "depth": 0, 118 | "source": "registry", 119 | "dependencies": { 120 | "com.unity.ugui": "1.0.0" 121 | }, 122 | "url": "https://packages.unity.com" 123 | }, 124 | "com.unity.timeline": { 125 | "version": "1.2.18", 126 | "depth": 0, 127 | "source": "registry", 128 | "dependencies": { 129 | "com.unity.modules.director": "1.0.0", 130 | "com.unity.modules.animation": "1.0.0", 131 | "com.unity.modules.audio": "1.0.0", 132 | "com.unity.modules.particlesystem": "1.0.0" 133 | }, 134 | "url": "https://packages.unity.com" 135 | }, 136 | "com.unity.ugui": { 137 | "version": "1.0.0", 138 | "depth": 0, 139 | "source": "builtin", 140 | "dependencies": { 141 | "com.unity.modules.ui": "1.0.0", 142 | "com.unity.modules.imgui": "1.0.0" 143 | } 144 | }, 145 | "com.unity.xr.legacyinputhelpers": { 146 | "version": "2.1.8", 147 | "depth": 0, 148 | "source": "registry", 149 | "dependencies": { 150 | "com.unity.modules.vr": "1.0.0", 151 | "com.unity.modules.xr": "1.0.0" 152 | }, 153 | "url": "https://packages.unity.com" 154 | }, 155 | "nuget.mono-cecil": { 156 | "version": "0.1.6-preview", 157 | "depth": 1, 158 | "source": "registry", 159 | "dependencies": {}, 160 | "url": "https://packages.unity.com" 161 | }, 162 | "com.unity.modules.ai": { 163 | "version": "1.0.0", 164 | "depth": 0, 165 | "source": "builtin", 166 | "dependencies": {} 167 | }, 168 | "com.unity.modules.androidjni": { 169 | "version": "1.0.0", 170 | "depth": 0, 171 | "source": "builtin", 172 | "dependencies": {} 173 | }, 174 | "com.unity.modules.animation": { 175 | "version": "1.0.0", 176 | "depth": 0, 177 | "source": "builtin", 178 | "dependencies": {} 179 | }, 180 | "com.unity.modules.assetbundle": { 181 | "version": "1.0.0", 182 | "depth": 0, 183 | "source": "builtin", 184 | "dependencies": {} 185 | }, 186 | "com.unity.modules.audio": { 187 | "version": "1.0.0", 188 | "depth": 0, 189 | "source": "builtin", 190 | "dependencies": {} 191 | }, 192 | "com.unity.modules.cloth": { 193 | "version": "1.0.0", 194 | "depth": 0, 195 | "source": "builtin", 196 | "dependencies": { 197 | "com.unity.modules.physics": "1.0.0" 198 | } 199 | }, 200 | "com.unity.modules.director": { 201 | "version": "1.0.0", 202 | "depth": 0, 203 | "source": "builtin", 204 | "dependencies": { 205 | "com.unity.modules.audio": "1.0.0", 206 | "com.unity.modules.animation": "1.0.0" 207 | } 208 | }, 209 | "com.unity.modules.imageconversion": { 210 | "version": "1.0.0", 211 | "depth": 0, 212 | "source": "builtin", 213 | "dependencies": {} 214 | }, 215 | "com.unity.modules.imgui": { 216 | "version": "1.0.0", 217 | "depth": 0, 218 | "source": "builtin", 219 | "dependencies": {} 220 | }, 221 | "com.unity.modules.jsonserialize": { 222 | "version": "1.0.0", 223 | "depth": 0, 224 | "source": "builtin", 225 | "dependencies": {} 226 | }, 227 | "com.unity.modules.particlesystem": { 228 | "version": "1.0.0", 229 | "depth": 0, 230 | "source": "builtin", 231 | "dependencies": {} 232 | }, 233 | "com.unity.modules.physics": { 234 | "version": "1.0.0", 235 | "depth": 0, 236 | "source": "builtin", 237 | "dependencies": {} 238 | }, 239 | "com.unity.modules.physics2d": { 240 | "version": "1.0.0", 241 | "depth": 0, 242 | "source": "builtin", 243 | "dependencies": {} 244 | }, 245 | "com.unity.modules.screencapture": { 246 | "version": "1.0.0", 247 | "depth": 0, 248 | "source": "builtin", 249 | "dependencies": { 250 | "com.unity.modules.imageconversion": "1.0.0" 251 | } 252 | }, 253 | "com.unity.modules.subsystems": { 254 | "version": "1.0.0", 255 | "depth": 1, 256 | "source": "builtin", 257 | "dependencies": { 258 | "com.unity.modules.jsonserialize": "1.0.0" 259 | } 260 | }, 261 | "com.unity.modules.terrain": { 262 | "version": "1.0.0", 263 | "depth": 0, 264 | "source": "builtin", 265 | "dependencies": {} 266 | }, 267 | "com.unity.modules.terrainphysics": { 268 | "version": "1.0.0", 269 | "depth": 0, 270 | "source": "builtin", 271 | "dependencies": { 272 | "com.unity.modules.physics": "1.0.0", 273 | "com.unity.modules.terrain": "1.0.0" 274 | } 275 | }, 276 | "com.unity.modules.tilemap": { 277 | "version": "1.0.0", 278 | "depth": 0, 279 | "source": "builtin", 280 | "dependencies": { 281 | "com.unity.modules.physics2d": "1.0.0" 282 | } 283 | }, 284 | "com.unity.modules.ui": { 285 | "version": "1.0.0", 286 | "depth": 0, 287 | "source": "builtin", 288 | "dependencies": {} 289 | }, 290 | "com.unity.modules.uielements": { 291 | "version": "1.0.0", 292 | "depth": 0, 293 | "source": "builtin", 294 | "dependencies": { 295 | "com.unity.modules.imgui": "1.0.0", 296 | "com.unity.modules.jsonserialize": "1.0.0" 297 | } 298 | }, 299 | "com.unity.modules.umbra": { 300 | "version": "1.0.0", 301 | "depth": 0, 302 | "source": "builtin", 303 | "dependencies": {} 304 | }, 305 | "com.unity.modules.unityanalytics": { 306 | "version": "1.0.0", 307 | "depth": 0, 308 | "source": "builtin", 309 | "dependencies": { 310 | "com.unity.modules.unitywebrequest": "1.0.0", 311 | "com.unity.modules.jsonserialize": "1.0.0" 312 | } 313 | }, 314 | "com.unity.modules.unitywebrequest": { 315 | "version": "1.0.0", 316 | "depth": 0, 317 | "source": "builtin", 318 | "dependencies": {} 319 | }, 320 | "com.unity.modules.unitywebrequestassetbundle": { 321 | "version": "1.0.0", 322 | "depth": 0, 323 | "source": "builtin", 324 | "dependencies": { 325 | "com.unity.modules.assetbundle": "1.0.0", 326 | "com.unity.modules.unitywebrequest": "1.0.0" 327 | } 328 | }, 329 | "com.unity.modules.unitywebrequestaudio": { 330 | "version": "1.0.0", 331 | "depth": 0, 332 | "source": "builtin", 333 | "dependencies": { 334 | "com.unity.modules.unitywebrequest": "1.0.0", 335 | "com.unity.modules.audio": "1.0.0" 336 | } 337 | }, 338 | "com.unity.modules.unitywebrequesttexture": { 339 | "version": "1.0.0", 340 | "depth": 0, 341 | "source": "builtin", 342 | "dependencies": { 343 | "com.unity.modules.unitywebrequest": "1.0.0", 344 | "com.unity.modules.imageconversion": "1.0.0" 345 | } 346 | }, 347 | "com.unity.modules.unitywebrequestwww": { 348 | "version": "1.0.0", 349 | "depth": 0, 350 | "source": "builtin", 351 | "dependencies": { 352 | "com.unity.modules.unitywebrequest": "1.0.0", 353 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 354 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 355 | "com.unity.modules.audio": "1.0.0", 356 | "com.unity.modules.assetbundle": "1.0.0", 357 | "com.unity.modules.imageconversion": "1.0.0" 358 | } 359 | }, 360 | "com.unity.modules.vehicles": { 361 | "version": "1.0.0", 362 | "depth": 0, 363 | "source": "builtin", 364 | "dependencies": { 365 | "com.unity.modules.physics": "1.0.0" 366 | } 367 | }, 368 | "com.unity.modules.video": { 369 | "version": "1.0.0", 370 | "depth": 0, 371 | "source": "builtin", 372 | "dependencies": { 373 | "com.unity.modules.audio": "1.0.0", 374 | "com.unity.modules.ui": "1.0.0", 375 | "com.unity.modules.unitywebrequest": "1.0.0" 376 | } 377 | }, 378 | "com.unity.modules.vr": { 379 | "version": "1.0.0", 380 | "depth": 0, 381 | "source": "builtin", 382 | "dependencies": { 383 | "com.unity.modules.jsonserialize": "1.0.0", 384 | "com.unity.modules.physics": "1.0.0", 385 | "com.unity.modules.xr": "1.0.0" 386 | } 387 | }, 388 | "com.unity.modules.wind": { 389 | "version": "1.0.0", 390 | "depth": 0, 391 | "source": "builtin", 392 | "dependencies": {} 393 | }, 394 | "com.unity.modules.xr": { 395 | "version": "1.0.0", 396 | "depth": 0, 397 | "source": "builtin", 398 | "dependencies": { 399 | "com.unity.modules.physics": "1.0.0", 400 | "com.unity.modules.jsonserialize": "1.0.0", 401 | "com.unity.modules.subsystems": "1.0.0" 402 | } 403 | } 404 | } 405 | } 406 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/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: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 9fc0d4010bbf28b4594072e72b8655ab 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: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_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: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 41 | m_PreloadedShaders: [] 42 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 43 | type: 0} 44 | m_CustomRenderPipeline: {fileID: 0} 45 | m_TransparencySortMode: 0 46 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 47 | m_DefaultRenderingPath: 1 48 | m_DefaultMobileRenderingPath: 1 49 | m_TierSettings: [] 50 | m_LightmapStripping: 0 51 | m_FogStripping: 0 52 | m_InstancingStripping: 0 53 | m_LightmapKeepPlain: 1 54 | m_LightmapKeepDirCombined: 1 55 | m_LightmapKeepDynamicPlain: 1 56 | m_LightmapKeepDynamicDirCombined: 1 57 | m_LightmapKeepShadowMask: 1 58 | m_LightmapKeepSubtractive: 1 59 | m_FogKeepLinear: 1 60 | m_FogKeepExp: 1 61 | m_FogKeepExp2: 1 62 | m_AlbedoSwatchInfos: [] 63 | m_LightsUseLinearIntensity: 0 64 | m_LightsUseColorTemperature: 0 65 | m_LogWhenShaderIsCompiled: 0 66 | m_AllowEnlightenSupportForUpgradedProject: 0 67 | -------------------------------------------------------------------------------- /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/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_ScopedRegistriesSettingsExpanded: 1 16 | oneTimeWarningShown: 0 17 | m_Registries: 18 | - m_Id: main 19 | m_Name: 20 | m_Url: https://packages.unity.com 21 | m_Scopes: [] 22 | m_IsDefault: 1 23 | m_UserSelectedRegistryName: 24 | m_UserAddingNewScopedRegistry: 0 25 | m_RegistryInfoDraft: 26 | m_ErrorMessage: 27 | m_Original: 28 | m_Id: 29 | m_Name: 30 | m_Url: 31 | m_Scopes: [] 32 | m_IsDefault: 0 33 | m_Modified: 0 34 | m_Name: 35 | m_Url: 36 | m_Scopes: 37 | - 38 | m_SelectedScopeIndex: 0 39 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 20 7 | productGUID: 96e80b75edcd9dc45a1e004b42aadb2c 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: GenericMenuPo 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: 0 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 | iosUseCustomAppBackgroundBehavior: 0 56 | iosAllowHTTPDownload: 1 57 | allowedAutorotateToPortrait: 1 58 | allowedAutorotateToPortraitUpsideDown: 1 59 | allowedAutorotateToLandscapeRight: 1 60 | allowedAutorotateToLandscapeLeft: 1 61 | useOSAutorotation: 1 62 | use32BitDisplayBuffer: 1 63 | preserveFramebufferAlpha: 0 64 | disableDepthAndStencilBuffers: 0 65 | androidStartInFullscreen: 1 66 | androidRenderOutsideSafeArea: 1 67 | androidUseSwappy: 0 68 | androidBlitType: 0 69 | androidResizableWindow: 0 70 | androidDefaultWindowWidth: 1920 71 | androidDefaultWindowHeight: 1080 72 | androidMinimumWindowWidth: 400 73 | androidMinimumWindowHeight: 300 74 | androidFullscreenMode: 1 75 | defaultIsNativeResolution: 1 76 | macRetinaSupport: 1 77 | runInBackground: 1 78 | captureSingleScreen: 0 79 | muteOtherAudioSources: 0 80 | Prepare IOS For Recording: 0 81 | Force IOS Speakers When Recording: 0 82 | deferSystemGesturesMode: 0 83 | hideHomeButton: 0 84 | submitAnalytics: 1 85 | usePlayerLog: 1 86 | bakeCollisionMeshes: 0 87 | forceSingleInstance: 0 88 | useFlipModelSwapchain: 1 89 | resizableWindow: 0 90 | useMacAppStoreValidation: 0 91 | macAppStoreCategory: public.app-category.games 92 | gpuSkinning: 1 93 | xboxPIXTextureCapture: 0 94 | xboxEnableAvatar: 0 95 | xboxEnableKinect: 0 96 | xboxEnableKinectAutoTracking: 0 97 | xboxEnableFitness: 0 98 | visibleInBackground: 1 99 | allowFullscreenSwitch: 1 100 | fullscreenMode: 1 101 | xboxSpeechDB: 0 102 | xboxEnableHeadOrientation: 0 103 | xboxEnableGuest: 0 104 | xboxEnablePIXSampling: 0 105 | metalFramebufferOnly: 0 106 | xboxOneResolution: 0 107 | xboxOneSResolution: 0 108 | xboxOneXResolution: 3 109 | xboxOneMonoLoggingLevel: 0 110 | xboxOneLoggingLevel: 1 111 | xboxOneDisableEsram: 0 112 | xboxOneEnableTypeOptimization: 0 113 | xboxOnePresentImmediateThreshold: 0 114 | switchQueueCommandMemory: 0 115 | switchQueueControlMemory: 16384 116 | switchQueueComputeMemory: 262144 117 | switchNVNShaderPoolsGranularity: 33554432 118 | switchNVNDefaultPoolsGranularity: 16777216 119 | switchNVNOtherPoolsGranularity: 16777216 120 | switchNVNMaxPublicTextureIDCount: 0 121 | switchNVNMaxPublicSamplerIDCount: 0 122 | stadiaPresentMode: 0 123 | stadiaTargetFramerate: 0 124 | vulkanNumSwapchainBuffers: 3 125 | vulkanEnableSetSRGBWrite: 0 126 | vulkanEnableLateAcquireNextImage: 0 127 | m_SupportedAspectRatios: 128 | 4:3: 1 129 | 5:4: 1 130 | 16:10: 1 131 | 16:9: 1 132 | Others: 1 133 | bundleVersion: 0.1 134 | preloadedAssets: [] 135 | metroInputSource: 0 136 | wsaTransparentSwapchain: 0 137 | m_HolographicPauseOnTrackingLoss: 1 138 | xboxOneDisableKinectGpuReservation: 1 139 | xboxOneEnable7thCore: 1 140 | vrSettings: 141 | cardboard: 142 | depthFormat: 0 143 | enableTransitionView: 0 144 | daydream: 145 | depthFormat: 0 146 | useSustainedPerformanceMode: 0 147 | enableVideoLayer: 0 148 | useProtectedVideoMemory: 0 149 | minimumSupportedHeadTracking: 0 150 | maximumSupportedHeadTracking: 1 151 | hololens: 152 | depthFormat: 1 153 | depthBufferSharingEnabled: 1 154 | lumin: 155 | depthFormat: 0 156 | frameTiming: 2 157 | enableGLCache: 0 158 | glCacheMaxBlobSize: 524288 159 | glCacheMaxFileSize: 8388608 160 | oculus: 161 | sharedDepthBuffer: 1 162 | dashSupport: 1 163 | lowOverheadMode: 0 164 | protectedContext: 0 165 | v2Signing: 1 166 | enable360StereoCapture: 0 167 | isWsaHolographicRemotingEnabled: 0 168 | enableFrameTimingStats: 0 169 | useHDRDisplay: 0 170 | D3DHDRBitDepth: 0 171 | m_ColorGamuts: 00000000 172 | targetPixelDensity: 30 173 | resolutionScalingMode: 0 174 | androidSupportedAspectRatio: 1 175 | androidMaxAspectRatio: 2.1 176 | applicationIdentifier: {} 177 | buildNumber: {} 178 | AndroidBundleVersionCode: 1 179 | AndroidMinSdkVersion: 19 180 | AndroidTargetSdkVersion: 0 181 | AndroidPreferredInstallLocation: 1 182 | aotOptions: 183 | stripEngineCode: 1 184 | iPhoneStrippingLevel: 0 185 | iPhoneScriptCallOptimization: 0 186 | ForceInternetPermission: 0 187 | ForceSDCardPermission: 0 188 | CreateWallpaper: 0 189 | APKExpansionFiles: 0 190 | keepLoadedShadersAlive: 0 191 | StripUnusedMeshComponents: 1 192 | VertexChannelCompressionMask: 4054 193 | iPhoneSdkVersion: 988 194 | iOSTargetOSVersionString: 10.0 195 | tvOSSdkVersion: 0 196 | tvOSRequireExtendedGameController: 0 197 | tvOSTargetOSVersionString: 10.0 198 | uIPrerenderedIcon: 0 199 | uIRequiresPersistentWiFi: 0 200 | uIRequiresFullScreen: 1 201 | uIStatusBarHidden: 1 202 | uIExitOnSuspend: 0 203 | uIStatusBarStyle: 0 204 | appleTVSplashScreen: {fileID: 0} 205 | appleTVSplashScreen2x: {fileID: 0} 206 | tvOSSmallIconLayers: [] 207 | tvOSSmallIconLayers2x: [] 208 | tvOSLargeIconLayers: [] 209 | tvOSLargeIconLayers2x: [] 210 | tvOSTopShelfImageLayers: [] 211 | tvOSTopShelfImageLayers2x: [] 212 | tvOSTopShelfImageWideLayers: [] 213 | tvOSTopShelfImageWideLayers2x: [] 214 | iOSLaunchScreenType: 0 215 | iOSLaunchScreenPortrait: {fileID: 0} 216 | iOSLaunchScreenLandscape: {fileID: 0} 217 | iOSLaunchScreenBackgroundColor: 218 | serializedVersion: 2 219 | rgba: 0 220 | iOSLaunchScreenFillPct: 100 221 | iOSLaunchScreenSize: 100 222 | iOSLaunchScreenCustomXibPath: 223 | iOSLaunchScreeniPadType: 0 224 | iOSLaunchScreeniPadImage: {fileID: 0} 225 | iOSLaunchScreeniPadBackgroundColor: 226 | serializedVersion: 2 227 | rgba: 0 228 | iOSLaunchScreeniPadFillPct: 100 229 | iOSLaunchScreeniPadSize: 100 230 | iOSLaunchScreeniPadCustomXibPath: 231 | iOSUseLaunchScreenStoryboard: 0 232 | iOSLaunchScreenCustomStoryboardPath: 233 | iOSDeviceRequirements: [] 234 | iOSURLSchemes: [] 235 | iOSBackgroundModes: 0 236 | iOSMetalForceHardShadows: 0 237 | metalEditorSupport: 1 238 | metalAPIValidation: 1 239 | iOSRenderExtraFrameOnPause: 0 240 | iosCopyPluginsCodeInsteadOfSymlink: 0 241 | appleDeveloperTeamID: 242 | iOSManualSigningProvisioningProfileID: 243 | tvOSManualSigningProvisioningProfileID: 244 | iOSManualSigningProvisioningProfileType: 0 245 | tvOSManualSigningProvisioningProfileType: 0 246 | appleEnableAutomaticSigning: 0 247 | iOSRequireARKit: 0 248 | iOSAutomaticallyDetectAndAddCapabilities: 1 249 | appleEnableProMotion: 0 250 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 251 | templatePackageId: com.unity.template.3d@4.2.8 252 | templateDefaultScene: Assets/Scenes/SampleScene.unity 253 | AndroidTargetArchitectures: 1 254 | AndroidTargetDevices: 0 255 | AndroidSplashScreenScale: 0 256 | androidSplashScreen: {fileID: 0} 257 | AndroidKeystoreName: 258 | AndroidKeyaliasName: 259 | AndroidBuildApkPerCpuArchitecture: 0 260 | AndroidTVCompatibility: 0 261 | AndroidIsGame: 1 262 | AndroidEnableTango: 0 263 | androidEnableBanner: 1 264 | androidUseLowAccuracyLocation: 0 265 | androidUseCustomKeystore: 0 266 | m_AndroidBanners: 267 | - width: 320 268 | height: 180 269 | banner: {fileID: 0} 270 | androidGamepadSupportLevel: 0 271 | chromeosInputEmulation: 1 272 | AndroidValidateAppBundleSize: 1 273 | AndroidAppBundleSizeToValidate: 150 274 | m_BuildTargetIcons: [] 275 | m_BuildTargetPlatformIcons: [] 276 | m_BuildTargetBatching: 277 | - m_BuildTarget: Standalone 278 | m_StaticBatching: 1 279 | m_DynamicBatching: 0 280 | - m_BuildTarget: tvOS 281 | m_StaticBatching: 1 282 | m_DynamicBatching: 0 283 | - m_BuildTarget: Android 284 | m_StaticBatching: 1 285 | m_DynamicBatching: 0 286 | - m_BuildTarget: iPhone 287 | m_StaticBatching: 1 288 | m_DynamicBatching: 0 289 | - m_BuildTarget: WebGL 290 | m_StaticBatching: 0 291 | m_DynamicBatching: 0 292 | m_BuildTargetGraphicsJobs: 293 | - m_BuildTarget: MacStandaloneSupport 294 | m_GraphicsJobs: 0 295 | - m_BuildTarget: Switch 296 | m_GraphicsJobs: 1 297 | - m_BuildTarget: MetroSupport 298 | m_GraphicsJobs: 1 299 | - m_BuildTarget: AppleTVSupport 300 | m_GraphicsJobs: 0 301 | - m_BuildTarget: BJMSupport 302 | m_GraphicsJobs: 1 303 | - m_BuildTarget: LinuxStandaloneSupport 304 | m_GraphicsJobs: 1 305 | - m_BuildTarget: PS4Player 306 | m_GraphicsJobs: 1 307 | - m_BuildTarget: iOSSupport 308 | m_GraphicsJobs: 0 309 | - m_BuildTarget: WindowsStandaloneSupport 310 | m_GraphicsJobs: 1 311 | - m_BuildTarget: XboxOnePlayer 312 | m_GraphicsJobs: 1 313 | - m_BuildTarget: LuminSupport 314 | m_GraphicsJobs: 0 315 | - m_BuildTarget: AndroidPlayer 316 | m_GraphicsJobs: 0 317 | - m_BuildTarget: WebGLSupport 318 | m_GraphicsJobs: 0 319 | m_BuildTargetGraphicsJobMode: 320 | - m_BuildTarget: PS4Player 321 | m_GraphicsJobMode: 0 322 | - m_BuildTarget: XboxOnePlayer 323 | m_GraphicsJobMode: 0 324 | m_BuildTargetGraphicsAPIs: 325 | - m_BuildTarget: AndroidPlayer 326 | m_APIs: 150000000b000000 327 | m_Automatic: 0 328 | - m_BuildTarget: iOSSupport 329 | m_APIs: 10000000 330 | m_Automatic: 1 331 | - m_BuildTarget: AppleTVSupport 332 | m_APIs: 10000000 333 | m_Automatic: 0 334 | - m_BuildTarget: WebGLSupport 335 | m_APIs: 0b000000 336 | m_Automatic: 1 337 | m_BuildTargetVRSettings: 338 | - m_BuildTarget: Standalone 339 | m_Enabled: 0 340 | m_Devices: 341 | - Oculus 342 | - OpenVR 343 | openGLRequireES31: 0 344 | openGLRequireES31AEP: 0 345 | openGLRequireES32: 0 346 | m_TemplateCustomTags: {} 347 | mobileMTRendering: 348 | Android: 1 349 | iPhone: 1 350 | tvOS: 1 351 | m_BuildTargetGroupLightmapEncodingQuality: [] 352 | m_BuildTargetGroupLightmapSettings: [] 353 | playModeTestRunnerEnabled: 0 354 | runPlayModeTestAsEditModeTest: 0 355 | actionOnDotNetUnhandledException: 1 356 | enableInternalProfiler: 0 357 | logObjCUncaughtExceptions: 1 358 | enableCrashReportAPI: 0 359 | cameraUsageDescription: 360 | locationUsageDescription: 361 | microphoneUsageDescription: 362 | switchNetLibKey: 363 | switchSocketMemoryPoolSize: 6144 364 | switchSocketAllocatorPoolSize: 128 365 | switchSocketConcurrencyLimit: 14 366 | switchScreenResolutionBehavior: 2 367 | switchUseCPUProfiler: 0 368 | switchApplicationID: 0x01004b9000490000 369 | switchNSODependencies: 370 | switchTitleNames_0: 371 | switchTitleNames_1: 372 | switchTitleNames_2: 373 | switchTitleNames_3: 374 | switchTitleNames_4: 375 | switchTitleNames_5: 376 | switchTitleNames_6: 377 | switchTitleNames_7: 378 | switchTitleNames_8: 379 | switchTitleNames_9: 380 | switchTitleNames_10: 381 | switchTitleNames_11: 382 | switchTitleNames_12: 383 | switchTitleNames_13: 384 | switchTitleNames_14: 385 | switchTitleNames_15: 386 | switchPublisherNames_0: 387 | switchPublisherNames_1: 388 | switchPublisherNames_2: 389 | switchPublisherNames_3: 390 | switchPublisherNames_4: 391 | switchPublisherNames_5: 392 | switchPublisherNames_6: 393 | switchPublisherNames_7: 394 | switchPublisherNames_8: 395 | switchPublisherNames_9: 396 | switchPublisherNames_10: 397 | switchPublisherNames_11: 398 | switchPublisherNames_12: 399 | switchPublisherNames_13: 400 | switchPublisherNames_14: 401 | switchPublisherNames_15: 402 | switchIcons_0: {fileID: 0} 403 | switchIcons_1: {fileID: 0} 404 | switchIcons_2: {fileID: 0} 405 | switchIcons_3: {fileID: 0} 406 | switchIcons_4: {fileID: 0} 407 | switchIcons_5: {fileID: 0} 408 | switchIcons_6: {fileID: 0} 409 | switchIcons_7: {fileID: 0} 410 | switchIcons_8: {fileID: 0} 411 | switchIcons_9: {fileID: 0} 412 | switchIcons_10: {fileID: 0} 413 | switchIcons_11: {fileID: 0} 414 | switchIcons_12: {fileID: 0} 415 | switchIcons_13: {fileID: 0} 416 | switchIcons_14: {fileID: 0} 417 | switchIcons_15: {fileID: 0} 418 | switchSmallIcons_0: {fileID: 0} 419 | switchSmallIcons_1: {fileID: 0} 420 | switchSmallIcons_2: {fileID: 0} 421 | switchSmallIcons_3: {fileID: 0} 422 | switchSmallIcons_4: {fileID: 0} 423 | switchSmallIcons_5: {fileID: 0} 424 | switchSmallIcons_6: {fileID: 0} 425 | switchSmallIcons_7: {fileID: 0} 426 | switchSmallIcons_8: {fileID: 0} 427 | switchSmallIcons_9: {fileID: 0} 428 | switchSmallIcons_10: {fileID: 0} 429 | switchSmallIcons_11: {fileID: 0} 430 | switchSmallIcons_12: {fileID: 0} 431 | switchSmallIcons_13: {fileID: 0} 432 | switchSmallIcons_14: {fileID: 0} 433 | switchSmallIcons_15: {fileID: 0} 434 | switchManualHTML: 435 | switchAccessibleURLs: 436 | switchLegalInformation: 437 | switchMainThreadStackSize: 1048576 438 | switchPresenceGroupId: 439 | switchLogoHandling: 0 440 | switchReleaseVersion: 0 441 | switchDisplayVersion: 1.0.0 442 | switchStartupUserAccount: 0 443 | switchTouchScreenUsage: 0 444 | switchSupportedLanguagesMask: 0 445 | switchLogoType: 0 446 | switchApplicationErrorCodeCategory: 447 | switchUserAccountSaveDataSize: 0 448 | switchUserAccountSaveDataJournalSize: 0 449 | switchApplicationAttribute: 0 450 | switchCardSpecSize: -1 451 | switchCardSpecClock: -1 452 | switchRatingsMask: 0 453 | switchRatingsInt_0: 0 454 | switchRatingsInt_1: 0 455 | switchRatingsInt_2: 0 456 | switchRatingsInt_3: 0 457 | switchRatingsInt_4: 0 458 | switchRatingsInt_5: 0 459 | switchRatingsInt_6: 0 460 | switchRatingsInt_7: 0 461 | switchRatingsInt_8: 0 462 | switchRatingsInt_9: 0 463 | switchRatingsInt_10: 0 464 | switchRatingsInt_11: 0 465 | switchRatingsInt_12: 0 466 | switchLocalCommunicationIds_0: 467 | switchLocalCommunicationIds_1: 468 | switchLocalCommunicationIds_2: 469 | switchLocalCommunicationIds_3: 470 | switchLocalCommunicationIds_4: 471 | switchLocalCommunicationIds_5: 472 | switchLocalCommunicationIds_6: 473 | switchLocalCommunicationIds_7: 474 | switchParentalControl: 0 475 | switchAllowsScreenshot: 1 476 | switchAllowsVideoCapturing: 1 477 | switchAllowsRuntimeAddOnContentInstall: 0 478 | switchDataLossConfirmation: 0 479 | switchUserAccountLockEnabled: 0 480 | switchSystemResourceMemory: 16777216 481 | switchSupportedNpadStyles: 22 482 | switchNativeFsCacheSize: 32 483 | switchIsHoldTypeHorizontal: 0 484 | switchSupportedNpadCount: 8 485 | switchSocketConfigEnabled: 0 486 | switchTcpInitialSendBufferSize: 32 487 | switchTcpInitialReceiveBufferSize: 64 488 | switchTcpAutoSendBufferSizeMax: 256 489 | switchTcpAutoReceiveBufferSizeMax: 256 490 | switchUdpSendBufferSize: 9 491 | switchUdpReceiveBufferSize: 42 492 | switchSocketBufferEfficiency: 4 493 | switchSocketInitializeEnabled: 1 494 | switchNetworkInterfaceManagerInitializeEnabled: 1 495 | switchPlayerConnectionEnabled: 1 496 | switchUseMicroSleepForYield: 1 497 | switchMicroSleepForYieldTime: 25 498 | ps4NPAgeRating: 12 499 | ps4NPTitleSecret: 500 | ps4NPTrophyPackPath: 501 | ps4ParentalLevel: 11 502 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 503 | ps4Category: 0 504 | ps4MasterVersion: 01.00 505 | ps4AppVersion: 01.00 506 | ps4AppType: 0 507 | ps4ParamSfxPath: 508 | ps4VideoOutPixelFormat: 0 509 | ps4VideoOutInitialWidth: 1920 510 | ps4VideoOutBaseModeInitialWidth: 1920 511 | ps4VideoOutReprojectionRate: 60 512 | ps4PronunciationXMLPath: 513 | ps4PronunciationSIGPath: 514 | ps4BackgroundImagePath: 515 | ps4StartupImagePath: 516 | ps4StartupImagesFolder: 517 | ps4IconImagesFolder: 518 | ps4SaveDataImagePath: 519 | ps4SdkOverride: 520 | ps4BGMPath: 521 | ps4ShareFilePath: 522 | ps4ShareOverlayImagePath: 523 | ps4PrivacyGuardImagePath: 524 | ps4ExtraSceSysFile: 525 | ps4NPtitleDatPath: 526 | ps4RemotePlayKeyAssignment: -1 527 | ps4RemotePlayKeyMappingDir: 528 | ps4PlayTogetherPlayerCount: 0 529 | ps4EnterButtonAssignment: 1 530 | ps4ApplicationParam1: 0 531 | ps4ApplicationParam2: 0 532 | ps4ApplicationParam3: 0 533 | ps4ApplicationParam4: 0 534 | ps4DownloadDataSize: 0 535 | ps4GarlicHeapSize: 2048 536 | ps4ProGarlicHeapSize: 2560 537 | playerPrefsMaxSize: 32768 538 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 539 | ps4pnSessions: 1 540 | ps4pnPresence: 1 541 | ps4pnFriends: 1 542 | ps4pnGameCustomData: 1 543 | playerPrefsSupport: 0 544 | enableApplicationExit: 0 545 | resetTempFolder: 1 546 | restrictedAudioUsageRights: 0 547 | ps4UseResolutionFallback: 0 548 | ps4ReprojectionSupport: 0 549 | ps4UseAudio3dBackend: 0 550 | ps4UseLowGarlicFragmentationMode: 1 551 | ps4SocialScreenEnabled: 0 552 | ps4ScriptOptimizationLevel: 0 553 | ps4Audio3dVirtualSpeakerCount: 14 554 | ps4attribCpuUsage: 0 555 | ps4PatchPkgPath: 556 | ps4PatchLatestPkgPath: 557 | ps4PatchChangeinfoPath: 558 | ps4PatchDayOne: 0 559 | ps4attribUserManagement: 0 560 | ps4attribMoveSupport: 0 561 | ps4attrib3DSupport: 0 562 | ps4attribShareSupport: 0 563 | ps4attribExclusiveVR: 0 564 | ps4disableAutoHideSplash: 0 565 | ps4videoRecordingFeaturesUsed: 0 566 | ps4contentSearchFeaturesUsed: 0 567 | ps4CompatibilityPS5: 0 568 | ps4AllowPS5Detection: 0 569 | ps4GPU800MHz: 1 570 | ps4attribEyeToEyeDistanceSettingVR: 0 571 | ps4IncludedModules: [] 572 | ps4attribVROutputEnabled: 0 573 | ps5ParamFilePath: 574 | ps5VideoOutPixelFormat: 0 575 | ps5VideoOutInitialWidth: 1920 576 | ps5VideoOutOutputMode: 1 577 | ps5BackgroundImagePath: 578 | ps5StartupImagePath: 579 | ps5Pic2Path: 580 | ps5StartupImagesFolder: 581 | ps5IconImagesFolder: 582 | ps5SaveDataImagePath: 583 | ps5SdkOverride: 584 | ps5BGMPath: 585 | ps5ShareOverlayImagePath: 586 | ps5NPConfigZipPath: 587 | ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 588 | ps5UseResolutionFallback: 0 589 | ps5UseAudio3dBackend: 0 590 | ps5ScriptOptimizationLevel: 2 591 | ps5Audio3dVirtualSpeakerCount: 14 592 | ps5UpdateReferencePackage: 593 | ps5disableAutoHideSplash: 0 594 | ps5OperatingSystemCanDisableSplashScreen: 0 595 | ps5IncludedModules: [] 596 | ps5SharedBinaryContentLabels: [] 597 | ps5SharedBinarySystemFolders: [] 598 | monoEnv: 599 | splashScreenBackgroundSourceLandscape: {fileID: 0} 600 | splashScreenBackgroundSourcePortrait: {fileID: 0} 601 | blurSplashScreenBackground: 1 602 | spritePackerPolicy: 603 | webGLMemorySize: 16 604 | webGLExceptionSupport: 1 605 | webGLNameFilesAsHashes: 0 606 | webGLDataCaching: 1 607 | webGLDebugSymbols: 0 608 | webGLEmscriptenArgs: 609 | webGLModulesDirectory: 610 | webGLTemplate: APPLICATION:Default 611 | webGLAnalyzeBuildSize: 0 612 | webGLUseEmbeddedResources: 0 613 | webGLCompressionFormat: 1 614 | webGLLinkerTarget: 1 615 | webGLThreadsSupport: 0 616 | webGLWasmStreaming: 0 617 | scriptingDefineSymbols: {} 618 | platformArchitecture: {} 619 | scriptingBackend: {} 620 | il2cppCompilerConfiguration: {} 621 | managedStrippingLevel: {} 622 | incrementalIl2cppBuild: {} 623 | suppressCommonWarnings: 1 624 | allowUnsafeCode: 0 625 | additionalIl2CppArgs: 626 | scriptingRuntimeVersion: 1 627 | gcIncremental: 0 628 | assemblyVersionValidation: 1 629 | gcWBarrierValidation: 0 630 | apiCompatibilityLevelPerPlatform: {} 631 | m_RenderingPath: 1 632 | m_MobileRenderingPath: 1 633 | metroPackageName: Template_3D 634 | metroPackageVersion: 635 | metroCertificatePath: 636 | metroCertificatePassword: 637 | metroCertificateSubject: 638 | metroCertificateIssuer: 639 | metroCertificateNotAfter: 0000000000000000 640 | metroApplicationDescription: Template_3D 641 | wsaImages: {} 642 | metroTileShortName: 643 | metroTileShowName: 0 644 | metroMediumTileShowName: 0 645 | metroLargeTileShowName: 0 646 | metroWideTileShowName: 0 647 | metroSupportStreamingInstall: 0 648 | metroLastRequiredScene: 0 649 | metroDefaultTileSize: 1 650 | metroTileForegroundText: 2 651 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 652 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 653 | a: 1} 654 | metroSplashScreenUseBackgroundColor: 0 655 | platformCapabilities: {} 656 | metroTargetDeviceFamilies: {} 657 | metroFTAName: 658 | metroFTAFileTypes: [] 659 | metroProtocolName: 660 | XboxOneProductId: 661 | XboxOneUpdateKey: 662 | XboxOneSandboxId: 663 | XboxOneContentId: 664 | XboxOneTitleId: 665 | XboxOneSCId: 666 | XboxOneGameOsOverridePath: 667 | XboxOnePackagingOverridePath: 668 | XboxOneAppManifestOverridePath: 669 | XboxOneVersion: 1.0.0.0 670 | XboxOnePackageEncryption: 0 671 | XboxOnePackageUpdateGranularity: 2 672 | XboxOneDescription: 673 | XboxOneLanguage: 674 | - enus 675 | XboxOneCapability: [] 676 | XboxOneGameRating: {} 677 | XboxOneIsContentPackage: 0 678 | XboxOneEnhancedXboxCompatibilityMode: 0 679 | XboxOneEnableGPUVariability: 1 680 | XboxOneSockets: {} 681 | XboxOneSplashScreen: {fileID: 0} 682 | XboxOneAllowedProductIds: [] 683 | XboxOnePersistentLocalStorageSize: 0 684 | XboxOneXTitleMemory: 8 685 | XboxOneOverrideIdentityName: 686 | XboxOneOverrideIdentityPublisher: 687 | vrEditorSettings: 688 | daydream: 689 | daydreamIconForeground: {fileID: 0} 690 | daydreamIconBackground: {fileID: 0} 691 | cloudServicesEnabled: 692 | UNet: 1 693 | luminIcon: 694 | m_Name: 695 | m_ModelFolderPath: 696 | m_PortalFolderPath: 697 | luminCert: 698 | m_CertPath: 699 | m_SignPackage: 1 700 | luminIsChannelApp: 0 701 | luminVersion: 702 | m_VersionCode: 1 703 | m_VersionName: 704 | apiCompatibilityLevel: 6 705 | cloudProjectId: 706 | framebufferDepthMemorylessMode: 0 707 | projectName: 708 | organizationId: 709 | cloudEnabled: 0 710 | enableNativePlatformBackendsForNewInputSystem: 0 711 | disableOldInputManagerSupport: 0 712 | legacyClampBlendShapeWeights: 0 713 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.4.32f1 2 | m_EditorVersionWithRevision: 2019.4.32f1 (f88bf0bee961) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Stadia: 5 227 | Standalone: 5 228 | WebGL: 3 229 | Windows Store Apps: 5 230 | XboxOne: 5 231 | iPhone: 2 232 | tvOS: 2 233 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_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_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /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 | # GenericMenuPopup 2 | 3 | Advanced popup menu for Unity's GenericMenu with search and tooltip. 4 | 5 | Check video here: https://www.youtube.com/watch?v=-lRPgaZ0G2c 6 | 7 | [![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/-lRPgaZ0G2c/0.jpg)](https://www.youtube.com/watch?v=-lRPgaZ0G2c) 8 | --------------------------------------------------------------------------------