bingo b面修改
This commit is contained in:
@@ -12,22 +12,22 @@ public class PostProcessBuild : IPostprocessBuildWithReport
|
||||
public void OnPostprocessBuild(UnityEditor.Build.Reporting.BuildReport report)
|
||||
{
|
||||
// 检查是否为 iOS 平台构建
|
||||
if (report.summary.platform == BuildTarget.iOS)
|
||||
{
|
||||
string projectPath = report.summary.outputPath;
|
||||
string customControllerPath = "Assets/Editor/UnityAppController.mm"; // 自定义文件的路径
|
||||
string destinationPath = Path.Combine(projectPath, "Classes/UnityAppController.mm");
|
||||
// if (report.summary.platform == BuildTarget.iOS)
|
||||
// {
|
||||
// string projectPath = report.summary.outputPath;
|
||||
// string customControllerPath = "Assets/Editor/UnityAppController.mm"; // 自定义文件的路径
|
||||
// string destinationPath = Path.Combine(projectPath, "Classes/UnityAppController.mm");
|
||||
|
||||
if (File.Exists(customControllerPath))
|
||||
{
|
||||
// 复制文件到 Xcode 项目中
|
||||
File.Copy(customControllerPath, destinationPath, overwrite: true);
|
||||
Debug.Log("Custom UnityAppController.mm has been copied to Xcode project.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Custom UnityAppController.mm file not found at " + customControllerPath);
|
||||
}
|
||||
}
|
||||
// if (File.Exists(customControllerPath))
|
||||
// {
|
||||
// // 复制文件到 Xcode 项目中
|
||||
// File.Copy(customControllerPath, destinationPath, overwrite: true);
|
||||
// Debug.Log("Custom UnityAppController.mm has been copied to Xcode project.");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.LogError("Custom UnityAppController.mm file not found at " + customControllerPath);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -19,9 +19,13 @@ MonoBehaviour:
|
||||
defaultInstantiateLoop: 1
|
||||
showHierarchyIcons: 1
|
||||
setTextureImporterSettings: 1
|
||||
textureSettingsReference: Assets/Jarvis/Plugins/Spine/Editor/spine-unity/Editor/ImporterPresets/PMATexturePreset.preset
|
||||
textureSettingsReference: Assets/BingoSun/Plugins/Spine/Editor/spine-unity/Editor/ImporterPresets/PMATexturePreset.preset
|
||||
blendModeMaterialMultiply: {fileID: 0}
|
||||
blendModeMaterialScreen: {fileID: 0}
|
||||
blendModeMaterialAdditive: {fileID: 0}
|
||||
atlasTxtImportWarning: 1
|
||||
textureImporterWarning: 1
|
||||
componentMaterialWarning: 1
|
||||
autoReloadSceneSkeletons: 1
|
||||
handleScale: 1
|
||||
mecanimEventIncludeFolderName: 1
|
||||
|
||||
Reference in New Issue
Block a user