docs.unity3d.com
Search Results for

    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)