void OnEnable() { _init = true; headerTexture = EditorUtils.HeaderTexture(); headerFont = EditorUtils.HeaderFont(); StartDownload(); }
void OnEnable() { headerTexture = EditorUtils.HeaderTexture(); //(Texture2D) AssetDatabase.LoadAssetAtPath(System.String.Concat(EditorUtils.getMainRelativepath(), "2DLight/Misc/Textures/2DDL_logo.png"), typeof(Texture2D)); headerFont = EditorUtils.HeaderFont(); // (Font) AssetDatabase.LoadAssetAtPath(System.String.Concat(EditorUtils.getMainRelativepath(), "2DLight/Misc/Fonts/EXTRAVAGANZZA.ttf"), typeof(Font)); EditorApplication.update += update; }
void OnEnable() { settingProfileAsset = new SerializedObject(SettingsManager.LoadMainSettings()); selectableLayerField = AssetUtility.LoadPropertyAsInt("layerCaster", settingProfileAsset); selectableLayerMask = AssetUtility.LoadPropertyAsInt("layerMask", settingProfileAsset); headerTexture = EditorUtils.HeaderTexture(); headerFont = EditorUtils.HeaderFont(); }