using System.IO;using UnityEditor;using UnityEditor.Callbacks;public class PostBuildAction{ [
[PostProcessBuild] public static void OnPostProcessBuild(BuildTarget target, string targetPath) {var path = Path.Combine(targetPath, "Build/UnityLoader.js");var text = File.ReadAllText(path); text = text.Replace("UnityLoader.SystemInfo.mobile", "false"); File.WriteAllText(path, text); } }联系客服