void OnEnable() { unitNames = new string[] { "Degrees", "Decimal Degrees", "Sphere Coordinates" }; errorMsg = ""; _calc = (WorldMapCalculator)target; }
void OnEnable() { Color backColor = EditorGUIUtility.isProSkin ? new Color(0.18f, 0.18f, 0.18f): new Color(0.7f, 0.7f, 0.7f); _blackTexture = MakeTex(4, 4, backColor); _blackTexture.hideFlags = HideFlags.DontSave; blackStyle = new GUIStyle(); blackStyle.normal.background = _blackTexture; unitNames = new string[] { "Degrees", "Decimal Degrees", "Sphere Coordinates" }; errorMsg = ""; _calc = (WorldMapCalculator)target; }