public GUIStyle createTextFieldStyle(int width, int height) { GUIStyle style = GuiStyles.getInstance().getBigButtonStyle(FontSize.Huge, (width * 1.2f) / height); style.fontSize = (int)((float)(21 * Screen.height) / 1080f); style.fontStyle = FontStyle.Bold; style.alignment = TextAnchor.MiddleCenter; style.active.textColor = Color.white; style.normal.textColor = Color.white; style.hover.textColor = Color.white; style.active.background = style.normal.background; style.hover.background = style.normal.background; return(style); }
void OnEnable() { unityContext = serializedObject.targetObject as UnityContext; if (unityContext != null) { updateCycleCoroutine = unityContext.StartCoroutine(UpdateCicle()); } groupNameStyle = new GUIStyle { //fontStyle = FontStyle.Bold wordWrap = true }; wrapStyle = new GUIStyle { wordWrap = true }; styles = Resources.Load <GuiStyles>("Styles"); }