docs.unity.cn
    Show / Hide Table of Contents

    List Formatter

    The List Formatter is both a Source and a Formatter. You can use it as a Source to extract specific values from an IList by using an index.

    Example Smart String Arguments Result
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, October 28, 2021