유니티 C# 비속어 필터 적용 inputfield 간단 사용법


유니티 C# 비속어 필터 적용 inputfield 간단 사용법

Assets / Resoures / BadWord.txt 준비 코드 작성 using System.Collections; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using UnityEngine; using UnityEngine.UI; public class Example : MonoBehaviour { public InputField inputField; public string[] lines; string LINE_SPLIT_RE = @"\r\n|\n\r|\n|\r"; void Awake() { if (File.Exists(file)) { StreamReader word = new St..


원문링크 : 유니티 C# 비속어 필터 적용 inputfield 간단 사용법