LoginSignup
0
1

More than 5 years have passed since last update.

unity/dotnet > csv > string test="AAA,BBB,CCC"を各要素にわける > string [ ] elements = test.split(',');

Last updated at Posted at 2015-08-14
動作確認
Unity 5.1.1-f1 on MacOS X 10.8.5

csvファイル解析の前準備。
,区切り文字を各要素にわけたい

        string test = "AAA,BBB,CCC,DDD";

//      var elements = test.Split (',');
        string [] elements = test.Split (',');
        foreach (string aString in elements) {
            Debug.Log(aString);
        }

コメントアウトしているvarを使った方法でもいける。

参考
http://qiita.com/kyubuns/items/bcbe92a18dffea684fbc

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1