├── Editor.meta ├── Editor ├── E7.ModifyEditorStyle.asmdef ├── E7.ModifyEditorStyle.asmdef.meta ├── ModifyEditorStyle.cs └── ModifyEditorStyle.cs.meta ├── package.json ├── package.json.meta ├── readme.md ├── readme.md.meta ├── ss1.png ├── ss1.png.meta ├── ss2.png └── ss2.png.meta /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 452fd2d1a591a487aaf8d73410255216 3 | folderAsset: yes 4 | timeCreated: 1540729715 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/E7.ModifyEditorStyle.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "E7.ModifyEditorStyle", 3 | "references": [], 4 | "optionalUnityReferences": [], 5 | "includePlatforms": [ 6 | "Editor" 7 | ], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [] 14 | } -------------------------------------------------------------------------------- /Editor/E7.ModifyEditorStyle.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47278fa98e30643658747939f62184c9 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/ModifyEditorStyle.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.SceneManagement; 5 | using UnityEditor; 6 | using UnityEditor.SceneManagement; 7 | using System; 8 | using System.Reflection; 9 | 10 | public class ModifyEditorStyle 11 | { 12 | private const string defaultFont = 13 | #if UNITY_EDITOR_WIN 14 | "Segoe UI"; 15 | #else 16 | "Lucida Grande"; 17 | #endif 18 | 19 | private static bool enable 20 | { 21 | get{ 22 | return EditorPrefs.GetBool("ModifyEditorStyle_Enable",true); 23 | } 24 | set{ 25 | EditorPrefs.SetBool("ModifyEditorStyle_Enable",value); 26 | } 27 | } 28 | 29 | private static int fontSize 30 | { 31 | get{ 32 | return EditorPrefs.GetInt("ModifyEditorStyle_FontSize",11); 33 | } 34 | set{ 35 | EditorPrefs.SetInt("ModifyEditorStyle_FontSize",value); 36 | } 37 | } 38 | 39 | private static int smallFontSize 40 | { 41 | get{ 42 | return EditorPrefs.GetInt("ModifyEditorStyle_SmallFontSize",9); 43 | } 44 | set{ 45 | EditorPrefs.SetInt("ModifyEditorStyle_SmallFontSize",value); 46 | } 47 | } 48 | 49 | private static int bigFontSize 50 | { 51 | get{ 52 | return EditorPrefs.GetInt("ModifyEditorStyle_BigFontSize",12); 53 | } 54 | set{ 55 | EditorPrefs.SetInt("ModifyEditorStyle_BigFontSize",value); 56 | } 57 | } 58 | 59 | private static int paddingTop 60 | { 61 | get{ 62 | return EditorPrefs.GetInt("ModifyEditorStyle_PaddingTop",1); 63 | } 64 | set{ 65 | EditorPrefs.SetInt("ModifyEditorStyle_PaddingTop",value); 66 | } 67 | } 68 | 69 | private static int paddingBottom 70 | { 71 | get{ 72 | return EditorPrefs.GetInt("ModifyEditorStyle_PaddingBottom",2); 73 | } 74 | set{ 75 | EditorPrefs.SetInt("ModifyEditorStyle_PaddingBottom",value); 76 | } 77 | } 78 | 79 | private static int selected 80 | { 81 | get{ 82 | string fontName = EditorPrefs.GetString("ModifyEditorStyle_Selected", defaultFont); 83 | return Array.IndexOf(fonts, fontName); 84 | } 85 | set{ 86 | EditorPrefs.SetString("ModifyEditorStyle_Selected", (value < fonts.Length && value >= 0) ? fonts[value] : defaultFont); 87 | } 88 | } 89 | 90 | private static int selectedBold 91 | { 92 | get{ 93 | string fontName = EditorPrefs.GetString("ModifyEditorStyle_SelectedBold", defaultFont); 94 | return Array.IndexOf(fonts, fontName); 95 | } 96 | set{ 97 | EditorPrefs.SetString("ModifyEditorStyle_SelectedBold", (value < fonts.Length && value >= 0) ? fonts[value] : defaultFont); 98 | } 99 | } 100 | 101 | private static string[] _fonts; 102 | private static string[] fonts 103 | { 104 | get{ 105 | if(_fonts == null) 106 | { 107 | _fonts = Font.GetOSInstalledFontNames(); 108 | } 109 | return _fonts; 110 | } 111 | } 112 | 113 | private static IEnumerable GUISkinStyles 114 | { 115 | get 116 | { 117 | GUISkin skin = GUI.skin; 118 | yield return skin.label; 119 | yield return skin.button; 120 | yield return skin.textArea; 121 | yield return skin.textField; 122 | } 123 | } 124 | 125 | /// You can comment out what you don't wanna change 126 | private static IEnumerable EditorStylesGUIStyles 127 | { 128 | get 129 | { 130 | yield return EditorStyles.colorField; 131 | yield return EditorStyles.foldout; 132 | yield return EditorStyles.foldoutPreDrop; 133 | yield return EditorStyles.label; 134 | yield return EditorStyles.numberField; //textField 135 | yield return EditorStyles.objectField; 136 | yield return EditorStyles.objectFieldMiniThumb; 137 | yield return EditorStyles.radioButton; 138 | yield return EditorStyles.textArea; //textField 139 | yield return EditorStyles.textField; //textField 140 | yield return EditorStyles.toggle; 141 | yield return EditorStyles.whiteLabel; 142 | yield return EditorStyles.wordWrappedLabel; 143 | } 144 | } 145 | 146 | private static IEnumerable NeedPadding 147 | { 148 | get{ 149 | GUISkin skin = GUI.skin; 150 | yield return skin.label; 151 | yield return skin.textArea; 152 | yield return skin.textField; 153 | yield return EditorStyles.foldout; 154 | yield return EditorStyles.foldoutPreDrop; 155 | yield return EditorStyles.label; 156 | yield return EditorStyles.textArea; //textField 157 | yield return EditorStyles.textField; //textField 158 | yield return EditorStyles.numberField; //textField 159 | 160 | yield return GUI.skin.FindStyle("TV Line"); 161 | yield return GUI.skin.FindStyle("TV Insertion"); 162 | yield return GUI.skin.FindStyle("TV Ping"); 163 | yield return GUI.skin.FindStyle("TV Selection"); 164 | 165 | //Styles in older version 166 | yield return GUI.skin.FindStyle("IN Foldout"); 167 | yield return GUI.skin.FindStyle("PR Insertion"); 168 | yield return GUI.skin.FindStyle("PR Label"); 169 | } 170 | } 171 | 172 | private static IEnumerable EditorStylesBold 173 | { 174 | get 175 | { 176 | yield return EditorStyles.boldLabel; 177 | yield return EditorStyles.toggleGroup; //BoldToggle 178 | yield return EditorStyles.whiteBoldLabel; 179 | 180 | //Internal style 181 | yield return GUI.skin.FindStyle("TV LineBold"); 182 | } 183 | 184 | } 185 | 186 | private static IEnumerable EditorStylesBig 187 | { 188 | get 189 | { 190 | yield return EditorStyles.largeLabel; 191 | yield return EditorStyles.whiteLargeLabel; 192 | } 193 | } 194 | 195 | private static IEnumerable EditorStylesSmall 196 | { 197 | get 198 | { 199 | yield return EditorStyles.centeredGreyMiniLabel; //Same as miniLabel 200 | yield return EditorStyles.helpBox; 201 | yield return EditorStyles.layerMaskField; //MiniPopup 202 | yield return EditorStyles.miniBoldLabel; 203 | yield return EditorStyles.miniButton; 204 | yield return EditorStyles.miniButtonLeft; 205 | yield return EditorStyles.miniButtonMid; 206 | yield return EditorStyles.miniButtonRight; 207 | yield return EditorStyles.miniLabel; 208 | yield return EditorStyles.miniTextField; 209 | yield return EditorStyles.objectFieldThumb; 210 | yield return EditorStyles.popup; //MiniPopup 211 | yield return EditorStyles.toolbar; 212 | yield return EditorStyles.toolbarButton; 213 | yield return EditorStyles.toolbarDropDown; 214 | yield return EditorStyles.toolbarPopup; 215 | yield return EditorStyles.toolbarTextField; 216 | yield return EditorStyles.whiteMiniLabel; 217 | yield return EditorStyles.wordWrappedMiniLabel; 218 | 219 | //Not available in 2017.1.5f1 but available in 2018.3, not sure when was it added. 220 | #if UNITY_2018_3_OR_NEWER 221 | yield return EditorStyles.miniPullDown; 222 | #endif 223 | 224 | //Internal styles 225 | yield return GUI.skin.FindStyle("GV Gizmo DropDown"); 226 | } 227 | } 228 | 229 | /// You can comment out what you don't wanna change 230 | private static IEnumerable InternalStyles 231 | { 232 | get 233 | { 234 | yield return GUI.skin.FindStyle("TV Line"); 235 | yield return GUI.skin.FindStyle("TV Insertion"); 236 | yield return GUI.skin.FindStyle("TV Ping"); 237 | yield return GUI.skin.FindStyle("TV Selection"); 238 | 239 | //Styles in older version 240 | yield return GUI.skin.FindStyle("IN Foldout"); 241 | yield return GUI.skin.FindStyle("PR Insertion"); 242 | yield return GUI.skin.FindStyle("PR Label"); 243 | 244 | } 245 | } 246 | 247 | #if UNITY_2018_3_OR_NEWER 248 | private class ModifyEditorStyleProvider : SettingsProvider 249 | { 250 | public ModifyEditorStyleProvider(string path, SettingsScopes scopes = SettingsScopes.Any) 251 | : base(path, scopes) 252 | { } 253 | 254 | public override void OnGUI(string searchContext) 255 | { 256 | ModifyEditorStylePreference(); 257 | } 258 | } 259 | 260 | [SettingsProvider] 261 | static SettingsProvider ModifyEditorStyleSettingsProvider() 262 | { 263 | return new ModifyEditorStyleProvider("Preferences/Modify Editor Style"); 264 | } 265 | #else 266 | [PreferenceItem("Modify Editor Style")] 267 | #endif 268 | static void ModifyEditorStylePreference() 269 | { 270 | EditorGUILayout.HelpBox("Changing the font size works but unfortunately the line height used in various drawers was baked as a const 16, we could not change it as a const was baked throughout the compiled Unity source code. (The enlarged characters with hanging part like 'g' will clip.)\n\nAlso, some parts seems to not change immediately until you recompile something.", MessageType.Info); 271 | 272 | enable = EditorGUILayout.BeginToggleGroup("Enable", enable); 273 | 274 | selected = EditorGUILayout.Popup("Font", selected, fonts); 275 | selectedBold = EditorGUILayout.Popup("Bold Font", selectedBold, fonts); 276 | EditorGUILayout.Space(); 277 | fontSize = EditorGUILayout.IntField("Font Size", fontSize); 278 | smallFontSize = EditorGUILayout.IntField("Small Font Size", smallFontSize); 279 | bigFontSize = EditorGUILayout.IntField("Big Font Size", bigFontSize); 280 | EditorGUILayout.Space(); 281 | EditorGUILayout.HelpBox("Applies custom paddings to certain UI", MessageType.Info); 282 | paddingTop = EditorGUILayout.IntField("Padding Top", paddingTop); 283 | paddingBottom = EditorGUILayout.IntField("Padding Bottom", paddingBottom); 284 | 285 | if (GUILayout.Button("Modify")) 286 | { 287 | Modify(); 288 | } 289 | 290 | EditorGUILayout.EndToggleGroup(); 291 | } 292 | 293 | //These statics are cleared out so often including just on loading a new scene.. it makes the linked font disappear 294 | private static Font normalFont; 295 | private static Font bigFont; 296 | private static Font smallFont; 297 | private static Font boldFont; 298 | private static Font smallBoldFont; 299 | 300 | static void Modify() 301 | { 302 | if(!enable) return; 303 | 304 | string fontName = selected >= 0 && selected < fonts.Length ? fonts[selected] : defaultFont; 305 | string boldFontName = selectedBold >= 0 && selectedBold < fonts.Length ? fonts[selectedBold] : defaultFont; 306 | 307 | normalFont = Font.CreateDynamicFontFromOSFont(fontName, fontSize); 308 | //bigFont = Font.CreateDynamicFontFromOSFont(fontName, bigFontSize); 309 | smallFont = Font.CreateDynamicFontFromOSFont(fontName, smallFontSize); 310 | boldFont = Font.CreateDynamicFontFromOSFont(boldFontName, fontSize); 311 | smallBoldFont = Font.CreateDynamicFontFromOSFont(boldFontName, smallFontSize); 312 | 313 | GUISkin skin = GUI.skin; 314 | //Debug.Log($"- : {skin.font?.name} {skin.font?.fontSize}"); 315 | skin.font = normalFont; 316 | GUI.skin = skin; //SetDefaultFont activated on this setter 317 | 318 | //EditorStyles static was pulled from s_Current which was populated from `EditorGUIUtility.GetBuiltinSkin` which we cannot interfere. 319 | //s_Current is internal and therefore we need to reflect to change the font. All other styles are accessible except the fonts. 320 | var eType = typeof(EditorStyles); 321 | var es = (EditorStyles)(eType.GetField("s_Current", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null)); 322 | eType.GetField("m_StandardFont", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(es, normalFont); 323 | eType.GetField("m_BoldFont", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(es, boldFont); 324 | eType.GetField("m_MiniFont", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(es, smallFont); 325 | eType.GetField("m_MiniBoldFont", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(es, smallBoldFont); 326 | 327 | //We should not override font where there's no font in the first place, because that will make the fallback switch 328 | //to bold on override not working. 329 | 330 | // foreach (var z in GUISkinStyles) 331 | // { 332 | // Debug.Log($"{z.name} : {z.font?.name} {z.font?.fontSize} {z.fontSize} {z.padding}"); 333 | // } 334 | 335 | // foreach (var x in EditorStylesGUIStyles) 336 | // { 337 | // if (x != null) 338 | // { 339 | // if(x.font != null) 340 | // { 341 | // Debug.Log($"{x.name} : {x.font.name} {x.font.fontSize} {x.fontSize} {x.padding}"); 342 | // } 343 | // else 344 | // { 345 | // Debug.Log($"{x.name} : NO FONT {x.fontSize} {x.padding}"); 346 | // } 347 | // } 348 | // } 349 | 350 | foreach (var x in NeedPadding) 351 | { 352 | if(x != null) 353 | { 354 | //Debug.Log($"{x.name} -> {x.padding}"); 355 | var p = x.padding; 356 | p.top = paddingTop; 357 | p.bottom = paddingBottom; 358 | x.padding = p; 359 | } 360 | } 361 | 362 | foreach (var x in EditorStylesBig) 363 | { 364 | if (x != null) 365 | { 366 | // if(x.font != null) 367 | // { 368 | // Debug.Log($"{x.name} : {x.font.name} {x.font.fontSize} {x.fontSize} {x.padding}"); 369 | // } 370 | // else 371 | // { 372 | // Debug.Log($"{x.name} : NO FONT {x.fontSize} {x.padding}"); 373 | // } 374 | 375 | x.fontSize = bigFontSize; 376 | } 377 | } 378 | 379 | foreach (var x in EditorStylesSmall) 380 | { 381 | if (x != null) 382 | { 383 | // if(x.font != null) 384 | // { 385 | // Debug.Log($"SMALL {x.name} : {x.font.name} {x.font.fontSize} {x.fontSize} {x.padding}"); 386 | // } 387 | // else 388 | // { 389 | // Debug.Log($"SMALL {x.name} : NO FONT {x.fontSize} {x.padding}"); 390 | // } 391 | 392 | x.fontSize = smallFontSize; 393 | } 394 | } 395 | 396 | // foreach (var x in EditorStylesBold) 397 | // { 398 | // if (x != null) 399 | // { 400 | // if(x.font != null) 401 | // { 402 | // Debug.Log($"{x.name} : {x.font.name} {x.font.fontSize} {x.fontSize} {x.padding}"); 403 | // } 404 | // else 405 | // { 406 | // Debug.Log($"{x.name} : NO FONT {x.fontSize} {x.padding}"); 407 | // } 408 | // } 409 | // } 410 | 411 | // foreach (var x in InternalStyles) 412 | // { 413 | // if (x != null) 414 | // { 415 | // if(x.font != null) 416 | // { 417 | // Debug.Log($"{x.name} : {x.font.name} {x.font.fontSize} {x.fontSize} {x.padding}"); 418 | // } 419 | // else 420 | // { 421 | // Debug.Log($"{x.name} : NO FONT {x.fontSize} {x.padding}"); 422 | // } 423 | // } 424 | // } 425 | 426 | // Debug.Log($"Modified"); 427 | } 428 | 429 | static void ModifyStartUp(int instanceID, Rect selectionRect) 430 | { 431 | Modify(); 432 | EditorApplication.hierarchyWindowItemOnGUI -= ModifyStartUp; 433 | } 434 | 435 | static void ModifySceneChange(Scene scene, OpenSceneMode mode) 436 | { 437 | EditorApplication.hierarchyWindowItemOnGUI -= ModifyStartUp; 438 | EditorApplication.hierarchyWindowItemOnGUI += ModifyStartUp; 439 | } 440 | 441 | [InitializeOnLoad] 442 | public class Startup 443 | { 444 | static Startup() 445 | { 446 | //Debug.Log($"STARTUP!!!"); 447 | EditorApplication.hierarchyWindowItemOnGUI -= ModifyStartUp; 448 | EditorApplication.hierarchyWindowItemOnGUI += ModifyStartUp; 449 | 450 | //Somehow loading a new scene clears the static variable that we stored the font? 451 | EditorSceneManager.sceneOpened -= ModifySceneChange; 452 | EditorSceneManager.sceneOpened += ModifySceneChange; 453 | } 454 | } 455 | } 456 | -------------------------------------------------------------------------------- /Editor/ModifyEditorStyle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32bb90df4244847d3b14dca71a5d5b1b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.e7.modify-editor-style", 3 | "author": "Sirawat Pitaksarit / 5argon - Exceed7 Experiments", 4 | "displayName": "Modify Editor Style", 5 | "version": "1.0.1", 6 | "unity": "2018.1", 7 | "description": "Change fonts throughout Unity editor" 8 | } -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6acac79f649954efaa0b0c0fd7375303 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # ModifyEditorStyle 2 | 3 | ![screenshot 1](ss1.png) 4 | 5 | ![screenshot 2](ss2.png) 6 | 7 | - Copy `ModifyEditorStyle.cs` to your `Editor` folder or use UPM with this repo when that is possible. (Add this line `"com.e7.modify-editor-style": "git://github.com/5argon/ModifyEditorStyle.git",` to your packages.json) 8 | - Change fonts in the Preference menu with fonts installed in your OS. 9 | -------------------------------------------------------------------------------- /readme.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54eabf16cedc94cffa37b73d62f6ff11 3 | timeCreated: 1540729695 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ss1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/5argon/ModifyEditorStyle/1fa5ecb4bc930f82d0916844defcd5bc90839355/ss1.png -------------------------------------------------------------------------------- /ss1.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a11238f9522e24325b75a85443f9fb3c 3 | timeCreated: 1540729696 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapsPreserveCoverage: 0 16 | alphaTestReferenceValue: 0.5 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: 1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | serializedVersion: 2 33 | filterMode: -1 34 | aniso: -1 35 | mipBias: -1 36 | wrapU: -1 37 | wrapV: -1 38 | wrapW: -1 39 | nPOTScale: 1 40 | lightmap: 0 41 | compressionQuality: 50 42 | spriteMode: 0 43 | spriteExtrude: 1 44 | spriteMeshType: 1 45 | alignment: 0 46 | spritePivot: {x: 0.5, y: 0.5} 47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 48 | spritePixelsToUnits: 100 49 | alphaUsage: 1 50 | alphaIsTransparency: 0 51 | spriteTessellationDetail: -1 52 | textureType: 0 53 | textureShape: 1 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - buildTarget: DefaultTexturePlatform 59 | maxTextureSize: 2048 60 | textureFormat: -1 61 | textureCompression: 1 62 | compressionQuality: 50 63 | crunchedCompression: 0 64 | allowsAlphaSplitting: 0 65 | overridden: 0 66 | spriteSheet: 67 | serializedVersion: 2 68 | sprites: [] 69 | outline: [] 70 | physicsShape: [] 71 | spritePackingTag: 72 | userData: 73 | assetBundleName: 74 | assetBundleVariant: 75 | -------------------------------------------------------------------------------- /ss2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/5argon/ModifyEditorStyle/1fa5ecb4bc930f82d0916844defcd5bc90839355/ss2.png -------------------------------------------------------------------------------- /ss2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68b8cd22ad33e43f492f206e6d417703 3 | timeCreated: 1540729695 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapsPreserveCoverage: 0 16 | alphaTestReferenceValue: 0.5 17 | mipMapFadeDistanceStart: 1 18 | mipMapFadeDistanceEnd: 3 19 | bumpmap: 20 | convertToNormalMap: 0 21 | externalNormalMap: 0 22 | heightScale: 0.25 23 | normalMapFilter: 0 24 | isReadable: 0 25 | grayScaleToAlpha: 0 26 | generateCubemap: 6 27 | cubemapConvolution: 0 28 | seamlessCubemap: 0 29 | textureFormat: 1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | serializedVersion: 2 33 | filterMode: -1 34 | aniso: -1 35 | mipBias: -1 36 | wrapU: -1 37 | wrapV: -1 38 | wrapW: -1 39 | nPOTScale: 1 40 | lightmap: 0 41 | compressionQuality: 50 42 | spriteMode: 0 43 | spriteExtrude: 1 44 | spriteMeshType: 1 45 | alignment: 0 46 | spritePivot: {x: 0.5, y: 0.5} 47 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 48 | spritePixelsToUnits: 100 49 | alphaUsage: 1 50 | alphaIsTransparency: 0 51 | spriteTessellationDetail: -1 52 | textureType: 0 53 | textureShape: 1 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - buildTarget: DefaultTexturePlatform 59 | maxTextureSize: 2048 60 | textureFormat: -1 61 | textureCompression: 1 62 | compressionQuality: 50 63 | crunchedCompression: 0 64 | allowsAlphaSplitting: 0 65 | overridden: 0 66 | spriteSheet: 67 | serializedVersion: 2 68 | sprites: [] 69 | outline: [] 70 | physicsShape: [] 71 | spritePackingTag: 72 | userData: 73 | assetBundleName: 74 | assetBundleVariant: 75 | --------------------------------------------------------------------------------