docs.unity3d.com
    目次を表示する/隠す

    List フォーマッター

    List Formatter (List フォーマッター) は ソースでもありフォーマッターでもあります。これをソースとして用いると、インデックスを使用して IList から特定の値を抽出できます。

    Smart String の例 引数 結果
    The value of the item at index 1 is {0.1}
    new List<int> { 1, 2, 3, 4 }
    
    The value of the item at index 1 is 2
    {0.0} {0.1} {0.2}
    new List<object> { 1, "Hello", "World" }
    
    1 Hello World
    The index placeholder can be used to sync multiple lists such as {0:{} = {1.index}|, }
    new List<int> { 1, 2, 3, 4 },
    new List<string> { "one", "two", "three", "four" }
    
    The index placeholder can be used to sync multiple lists such as 1 = one, 2 = two, 3 = three, 4 = four
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)