using System.Collections; using System.Collections.Generic; using BITKit; using UnityEngine; public class TextReplace : MonoBehaviour { [SerializeField] private TextAsset chs; [SerializeField] private TextAsset jap; [SerializeField] private string result; [BIT] public void Replace() { result = string.Empty; foreach (var c in jap.text) { if (chs.text.Contains(c))continue; result += c; } Debug.Log($"JAP Source Length:{jap.text.Length},after replace:{result.Length}"); } }