Class ObservableList<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ObservableList<T>

    Inheritance
    System.Object
    ObservableList<T>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    public class ObservableList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    Constructors

    ObservableList()

    Declaration
    public ObservableList()

    ObservableList(IEnumerable<T>)

    Declaration
    public ObservableList(IEnumerable<T> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> collection

    ObservableList(Int32)

    Declaration
    public ObservableList(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    System.Collections.Generic.ICollection<T>.Count

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean
    Implements
    System.Collections.Generic.ICollection<T>.IsReadOnly

    Item[Int32]

    Declaration
    public T this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    T
    Implements
    System.Collections.Generic.IList<T>.Item[System.Int32]

    Methods

    Add(T)

    Declaration
    public void Add(T item)
    Parameters
    Type Name Description
    T item
    Implements
    System.Collections.Generic.ICollection<T>.Add(T)

    Add(T[])

    Declaration
    public void Add(params T[] items)
    Parameters
    Type Name Description
    T[] items

    Clear()

    Declaration
    public void Clear()
    Implements
    System.Collections.Generic.ICollection<T>.Clear()

    Contains(T)

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    Implements
    System.Collections.Generic.ICollection<T>.Contains(T)

    CopyTo(T[], Int32)

    Declaration
    public void CopyTo(T[] array, int arrayIndex)
    Parameters
    Type Name Description
    T[] array
    System.Int32 arrayIndex
    Implements
    System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<T>
    Implements
    System.Collections.Generic.IEnumerable<T>.GetEnumerator()

    IndexOf(T)

    Declaration
    public int IndexOf(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Int32
    Implements
    System.Collections.Generic.IList<T>.IndexOf(T)

    Insert(Int32, T)

    Declaration
    public void Insert(int index, T item)
    Parameters
    Type Name Description
    System.Int32 index
    T item
    Implements
    System.Collections.Generic.IList<T>.Insert(System.Int32, T)

    Remove(T)

    Declaration
    public bool Remove(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.Boolean
    Implements
    System.Collections.Generic.ICollection<T>.Remove(T)

    Remove(T[])

    Declaration
    public int Remove(params T[] items)
    Parameters
    Type Name Description
    T[] items
    Returns
    Type Description
    System.Int32

    RemoveAt(Int32)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Implements
    System.Collections.Generic.IList<T>.RemoveAt(System.Int32)

    Events

    ItemAdded

    Declaration
    public event ListChangedEventHandler<T> ItemAdded
    Event Type
    Type Description
    ListChangedEventHandler<T>

    ItemRemoved

    Declaration
    public event ListChangedEventHandler<T> ItemRemoved
    Event Type
    Type Description
    ListChangedEventHandler<T>
    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