powerfun-unity/Assets/Editor/ExportAssets.cs

41 lines
1.1 KiB
C#
Raw Permalink Normal View History

2021-05-08 14:38:23 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
2022-04-22 18:24:56 +08:00
public class ExportAssets : Editor
2021-05-08 14:38:23 +08:00
{
[@MenuItem("Juze/Build Asset Bundles")]
static void BuildAssetBundles()
{
BuildPipeline.BuildAssetBundles(Application.streamingAssetsPath, BuildAssetBundleOptions.UncompressedAssetBundle, BuildTarget.StandaloneWindows);
}
2022-04-22 18:24:56 +08:00
[MenuItem("GameObject/UI/PFButton", false, 100)]
static void CreatePFButtonCommand()
{
GameObject prefab = Resources.Load<GameObject>("UI/Control/PfUIButton");
GameObject game = Instantiate(prefab, Selection.activeTransform);
}
2022-04-24 18:53:29 +08:00
[MenuItem("GameObject/UI/PFUIInputField", false, 100)]
static void CreatePFUIInputFieldCommand()
{
GameObject prefab = Resources.Load<GameObject>("UI/Control/PFUIInputField");
GameObject game = Instantiate(prefab, Selection.activeTransform);
}
2021-05-08 14:38:23 +08:00
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}