You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
29
Packages/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMP_PostBuildProcessHandler.cs
vendored
Normal file
29
Packages/com.unity.textmeshpro@3.0.6/Scripts/Editor/TMP_PostBuildProcessHandler.cs
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using System.IO;
|
||||
|
||||
|
||||
namespace TMPro
|
||||
{
|
||||
public class TMP_PostBuildProcessHandler
|
||||
{
|
||||
[PostProcessBuildAttribute(10000)]
|
||||
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
|
||||
{
|
||||
if (target == BuildTarget.iOS)
|
||||
{
|
||||
// Try loading the TMP Settings
|
||||
TMP_Settings settings = Resources.Load<TMP_Settings>("TMP Settings");
|
||||
|
||||
if (settings == null)
|
||||
return;
|
||||
|
||||
string file = Path.Combine(pathToBuiltProject, "Classes/UI/Keyboard.mm");
|
||||
string content = File.ReadAllText(file);
|
||||
content = content.Replace("FILTER_EMOJIS_IOS_KEYBOARD 1", "FILTER_EMOJIS_IOS_KEYBOARD 0");
|
||||
File.WriteAllText(file, content);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user