KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2021-02-09 to 1 day

c# 文字列でsplit

コード 文字列でsplit string str = "1234 1234 unko 123 1131"; string[] splitStr = {"unko"}; string[] ary = str.Split(splitStr, StringSplitOptions.None); Debug.Log(ary.Length);//2 Debug.Log(ary[0]);//1234 1234 Debug.Log(ary[1]);// 123 1131 …

"FOOTER"