static Styles() { warningStyle = new GUIStyle(); // margin are steup so that the warning takes the same space as the frame button warningStyle.margin.top = 1; warningStyle.margin.bottom = 1; warningStyle.margin.left = 2; warningStyle.margin.right = 1; frameButtonStyle = new GUIStyle(); frameButtonStyle.normal.background = EditorGUIUtility.LoadIconForSkin(EditorResources.iconsPath + "ViewToolZoom.png", EditorGUIUtility.skinIndex); frameButtonStyle.active.background = EditorGUIUtility.LoadIconForSkin(EditorResources.iconsPath + "ViewToolZoom On.png", EditorGUIUtility.skinIndex); frameButtonStyle.normal.background.filterMode = FilterMode.Trilinear; frameButtonStyle.active.background.filterMode = FilterMode.Trilinear; header = new GUIStyle(EditorStyles.toolbarButton); header.fontStyle = FontStyle.Bold; header.alignment = TextAnchor.MiddleLeft; cell = new GUIStyle(EditorStyles.toolbarButton); var bg = cell.onActive.background; cell.active.background = bg; cell.onActive.background = bg; cell.normal.background = bg; cell.onNormal.background = bg; cell.focused.background = bg; cell.onFocused.background = bg; cell.hover.background = bg; cell.onHover.background = bg; cell.alignment = TextAnchor.MiddleLeft; foldout = new GUIStyle(EditorStyles.foldout); foldout.fontStyle = FontStyle.Bold; spawnStyle = new GUIStyle(GUI.skin.label); spawnStyle.fontSize = 20; spawnStyle.normal.textColor = new Color(0f, 1f, 0.5607843f); spawnStyle.hover.textColor = spawnStyle.normal.textColor; particleStyle = new GUIStyle(spawnStyle); particleStyle.normal.textColor = new Color(1f, 0.7372549f, 0.1294118f); particleStyle.hover.textColor = particleStyle.normal.textColor; particleStripeStyle = new GUIStyle(spawnStyle); particleStripeStyle.normal.textColor = new Color(1f, 0.6666667f, 0.4196078f); particleStripeStyle.hover.textColor = particleStripeStyle.normal.textColor; meshStyle = new GUIStyle(spawnStyle); meshStyle.normal.textColor = new Color(0.231f, 0.369f, 0.573f); meshStyle.hover.textColor = meshStyle.normal.textColor; }