private static void OnWillCreateAsset(string metaPath)
        {
            string filePath = metaPath.Replace(".meta", "");
            EZScriptTemplateObject ezScriptTemplate = EZScriptableObject.Load <EZScriptTemplateObject>(EZScriptTemplateObject.AssetName, false);

            if (ezScriptTemplate != null)
            {
                Replace(filePath, ezScriptTemplate);
            }
        }
 protected override void OnFocus()
 {
     base.OnFocus();
     ezScriptTemplate                = EZScriptableObject.Load <EZScriptTemplateObject>(EZScriptTemplateObject.AssetName);
     so_EZScriptTemplate             = new SerializedObject(ezScriptTemplate);
     extensionList                   = so_EZScriptTemplate.FindProperty("extensionList");
     patternList                     = new ReorderableList(so_EZScriptTemplate, so_EZScriptTemplate.FindProperty("patternList"), true, true, true, true);
     patternList.drawHeaderCallback  = DrawPatternListHeader;
     patternList.drawElementCallback = DrawPatternListElement;
 }
Пример #3
0
        public static EZKeystoreObject CreateKeystore()
        {
            EZKeystoreObject ezKeystore = EZScriptableObject.Load <EZKeystoreObject>(EZKeystoreObject.AssetName, true);

            ezKeystore.keystoreFilePath = PlayerSettings.Android.keystoreName;
            ezKeystore.keystorePassword = PlayerSettings.Android.keystorePass;
            ezKeystore.keyAliasName     = PlayerSettings.Android.keyaliasName;
            ezKeystore.keyAliasPassword = PlayerSettings.Android.keyaliasPass;
            return(ezKeystore);
        }
Пример #4
0
 protected override void OnFocus()
 {
     base.OnFocus();
     ezKeystore = EZScriptableObject.Load <EZKeystoreObject>(EZKeystoreObject.AssetName, false);
     if (ezKeystore == null)
     {
         ezKeystore = EZKeystoreInitializer.CreateKeystore();
     }
     so_EZKeystore    = new SerializedObject(ezKeystore);
     keystoreFilePath = so_EZKeystore.FindProperty("keystoreFilePath");
     keystorePassword = so_EZKeystore.FindProperty("keystorePassword");
     keyAliasName     = so_EZKeystore.FindProperty("keyAliasName");
     keyAliasPassword = so_EZKeystore.FindProperty("keyAliasPassword");
 }
Пример #5
0
 protected override void OnFocus()
 {
     base.OnFocus();
     ezBundle                       = EZScriptableObject.Load <EZBundleObject>(EZBundleObject.AssetName);
     so_EZBundle                    = new SerializedObject(ezBundle);
     bundleTarget                   = so_EZBundle.FindProperty("bundleTarget");
     relativePath                   = so_EZBundle.FindProperty("relativePath");
     removeOldFiles                 = so_EZBundle.FindProperty("removeOldFiles");
     bundleDirPath                  = so_EZBundle.FindProperty("bundleDirPath");
     bundleExtension                = so_EZBundle.FindProperty("bundleExtension");
     createListFile                 = so_EZBundle.FindProperty("createListFile");
     listFileName                   = so_EZBundle.FindProperty("listFileName");
     copyList                       = new ReorderableList(so_EZBundle, so_EZBundle.FindProperty("copyList"), true, true, true, true);
     bundleList                     = new ReorderableList(so_EZBundle, so_EZBundle.FindProperty("bundleList"), true, true, true, true);
     copyList.drawHeaderCallback    = DrawCopyListHeader;
     copyList.drawElementCallback   = DrawCopyListElement;
     bundleList.drawHeaderCallback  = DrawBundleListHeader;
     bundleList.drawElementCallback = DrawBundleListElement;
 }
Пример #6
0
 private void DrawButton()
 {
     if (GUILayout.Button("Build Bundle"))
     {
         EZBundleBuilder.BuildBundle(ezBundle);
     }
     {
         EditorGUILayout.BeginHorizontal();
         if (GUILayout.Button("Save As"))
         {
             if (saveName != "" && saveName != EZBundleObject.AssetName)
             {
                 EZScriptableObject.Create(saveName, Object.Instantiate(ezBundle));
             }
         }
         saveName = EditorGUILayout.TextField(saveName);
         EditorGUILayout.EndHorizontal();
     }
 }
Пример #7
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Build Bundle"))
     {
         EZBundleBuilder.BuildBundle(ezBundle);
     }
     {
         EditorGUILayout.BeginHorizontal();
         if (GUILayout.Button("Save As"))
         {
             if (saveName == "")
             {
                 EZScriptableObject.Create(EZBundleObject.AssetName, Object.Instantiate(ezBundle));
             }
             else
             {
                 EZScriptableObject.Create(saveName, Object.Instantiate(ezBundle));
             }
         }
         saveName = EditorGUILayout.TextField(saveName);
         EditorGUILayout.EndHorizontal();
     }
     base.OnInspectorGUI();
 }
Пример #8
0
        static void Initialize()
        {
            EZKeystoreObject ezKeystore = EZScriptableObject.Load <EZKeystoreObject>(EZKeystoreObject.AssetName, false);

            SetKeystore(ezKeystore);
        }