powerfun-unity/Assets/Editor/ExportAssets.cs
2023-04-14 16:15:29 +08:00

41 lines
1.1 KiB
C#

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<GameObject>("UI/Control/PfUIButton");
GameObject game = Instantiate(prefab, Selection.activeTransform);
}
[MenuItem("GameObject/UI/PFUIInputField", false, 100)]
static void CreatePFUIInputFieldCommand()
{
GameObject prefab = Resources.Load<GameObject>("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()
{
}
}