using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class ExportAssets : Editor { [@MenuItem("Juze/Build Asset Bundles")] static void BuildAssetBundles() { BuildPipeline.BuildAssetBundles(Application.streamingAssetsPath, BuildAssetBundleOptions.UncompressedAssetBundle, BuildTarget.StandaloneWindows); } [MenuItem("GameObject/UI/PFButton", false, 100)] static void CreatePFButtonCommand() { GameObject prefab = Resources.Load("UI/Control/PfUIButton"); GameObject game = Instantiate(prefab, Selection.activeTransform); } [MenuItem("GameObject/UI/PFUIInputField", false, 100)] static void CreatePFUIInputFieldCommand() { GameObject prefab = Resources.Load("UI/Control/PFUIInputField"); GameObject game = Instantiate(prefab, Selection.activeTransform); } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }