コード例 #1
0
 void OnEnable()
 {
     _init         = true;
     headerTexture = EditorUtils.HeaderTexture();
     headerFont    = EditorUtils.HeaderFont();
     StartDownload();
 }
コード例 #2
0
        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;
        }
コード例 #3
0
        void OnEnable()
        {
            settingProfileAsset  = new SerializedObject(SettingsManager.LoadMainSettings());
            selectableLayerField = AssetUtility.LoadPropertyAsInt("layerCaster", settingProfileAsset);
            selectableLayerMask  = AssetUtility.LoadPropertyAsInt("layerMask", settingProfileAsset);

            headerTexture = EditorUtils.HeaderTexture();
            headerFont    = EditorUtils.HeaderFont();
        }