mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
新增WebGL一键打包功能 及 全平台运行增加WebGL示例图片
This commit is contained in:
@@ -15,6 +15,9 @@
|
|||||||
### IOS真机运行
|
### IOS真机运行
|
||||||

|

|
||||||
|
|
||||||
|
### WebGL真机运行
|
||||||
|

|
||||||
|
|
||||||
### 索尼 PS5 真机运行
|
### 索尼 PS5 真机运行
|
||||||
|
|
||||||

|

|
||||||
|
BIN
Books/src/WebGL-RunSuccessed.png
Normal file
BIN
Books/src/WebGL-RunSuccessed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
@@ -218,6 +218,17 @@ namespace TEngine.Editor
|
|||||||
AssetDatabase.Refresh();
|
AssetDatabase.Refresh();
|
||||||
BuildImp(BuildTargetGroup.iOS, BuildTarget.iOS, $"{Application.dataPath}/../Build/IOS/XCode_Project");
|
BuildImp(BuildTargetGroup.iOS, BuildTarget.iOS, $"{Application.dataPath}/../Build/IOS/XCode_Project");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MenuItem("TEngine/Quick Build/一键打包WebGL", false, 91)]
|
||||||
|
public static void AutomationBuildWebGL()
|
||||||
|
{
|
||||||
|
BuildTarget target = EditorUserBuildSettings.activeBuildTarget;
|
||||||
|
BuildDLLCommand.BuildAndCopyDlls(target);
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
BuildInternal(target, Application.dataPath + "/../Builds/WebGL", packageVersion: GetBuildPackageVersion());
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
BuildImp(BuildTargetGroup.WebGL, BuildTarget.WebGL, $"{Application.dataPath}/../Builds/WebGL");
|
||||||
|
}
|
||||||
|
|
||||||
public static void BuildImp(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget, string locationPathName)
|
public static void BuildImp(BuildTargetGroup buildTargetGroup, BuildTarget buildTarget, string locationPathName)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user