【m】APK打包工具添加App名称修改功能
This commit is contained in:
@@ -35,6 +35,10 @@ namespace Stary.Evo.Editor
|
||||
[ValueDropdown("GetAvailablePackageNames")]
|
||||
[OnValueChanged("OnPackageNameChanged")]
|
||||
public string selectedPackageName;
|
||||
|
||||
[LabelText("自定义App名称")]
|
||||
[Tooltip("空置时为默认名")]
|
||||
public string productNameReplace;
|
||||
|
||||
[TitleGroup("打包配置", alignment: TitleAlignments.Centered)] [ToggleLeft] [LabelText("自动递增版本号")]
|
||||
public bool autoIncrementVersion = true;
|
||||
@@ -226,7 +230,7 @@ namespace Stary.Evo.Editor
|
||||
packageName = selectedPackageName;
|
||||
}
|
||||
|
||||
PlayerSettings.productName = productName;
|
||||
PlayerSettings.productName = productNameReplace.IsNullOrEmpty() ? productName : productNameReplace;
|
||||
PlayerSettings.applicationIdentifier = packageName;
|
||||
|
||||
// 自动递增版本号
|
||||
@@ -293,7 +297,10 @@ namespace Stary.Evo.Editor
|
||||
/// </summary>
|
||||
private void ConfigureWatermark()
|
||||
{
|
||||
PlayerSettings.productName += "_watermark";
|
||||
if (productNameReplace.IsNullOrEmpty())
|
||||
{
|
||||
PlayerSettings.productName += "_watermark";
|
||||
}
|
||||
PlayerSettings.applicationIdentifier += "_watermark";
|
||||
|
||||
Sprite logoSprite = Resources.Load<Sprite>("logo");
|
||||
|
||||
Reference in New Issue
Block a user