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; }
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); }
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"); }
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; }
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(); } }
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(); }
static void Initialize() { EZKeystoreObject ezKeystore = EZScriptableObject.Load <EZKeystoreObject>(EZKeystoreObject.AssetName, false); SetKeystore(ezKeystore); }