Class ListViewItemTemplate<TItem> | List View Framework | 1.1.7-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ListViewItemTemplate<TItem>

    Used to store list item template prefabs and object pools

    Inheritance
    Object
    ListViewItemTemplate<TItem>
    Namespace: Unity.ListViewFramework
    Syntax
    public sealed class ListViewItemTemplate<TItem>
    Type Parameters
    Name Description
    TItem

    Type of list item being pooled

    Constructors

    ListViewItemTemplate(GameObject)

    Initialize a ListViewItemTemplate with a given prefab

    Declaration
    public ListViewItemTemplate(GameObject prefab)
    Parameters
    Type Name Description
    GameObject prefab

    The prefab for the template

    Fields

    pool

    Object pool for storing inactive instances for later re-use

    Declaration
    public readonly Queue<TItem> pool
    Field Value
    Type Description
    Queue<TItem>

    prefab

    The prefab for this template

    Declaration
    public readonly GameObject prefab
    Field Value
    Type Description
    GameObject
    In This Article
    • Constructors
      • ListViewItemTemplate(GameObject)
    • Fields
      • pool
      • prefab
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023