docs.unity3d.com
    Show / Hide Table of Contents

    Class CollectionWrapper<T>

    Inheritance
    Object
    CollectionWrapper
    CollectionWrapper<T>
    ComponentAddedCriterion.SerializedTypeCollection
    Tutorial.TutorialPageCollection
    TutorialParagraphCollection
    Namespace: Unity.InteractiveTutorials
    Syntax
    public abstract class CollectionWrapper<T> : CollectionWrapper, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    CollectionWrapper()

    Declaration
    public CollectionWrapper()

    CollectionWrapper(IList<T>)

    Declaration
    public CollectionWrapper(IList<T> items)
    Parameters
    Type Name Description
    IList<T> items

    Properties

    count

    Declaration
    public int count { get; }
    Property Value
    Type Description
    Int32

    Item[Int32]

    Declaration
    public T this[int i] { get; set; }
    Parameters
    Type Name Description
    Int32 i
    Property Value
    Type Description
    T

    Methods

    AddItem(T)

    Adds an item to the collection

    Declaration
    public void AddItem(T item)
    Parameters
    Type Name Description
    T item

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    IEnumerator<T>

    GetItems(List<T>)

    Declaration
    public void GetItems(List<T> items)
    Parameters
    Type Name Description
    List<T> items

    SetItems(IEnumerable<T>)

    Declaration
    public void SetItems(IEnumerable<T> items)
    Parameters
    Type Name Description
    IEnumerable<T> items
    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