docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ICollectionProperty<TContainer, TValue>

    Inherited Members
    IProperty<TContainer, TValue>.GetValue(ref TContainer)
    IProperty<TContainer, TValue>.SetValue(ref TContainer, TValue)
    IProperty.GetName()
    IProperty.IsReadOnly
    IProperty.IsContainer
    IProperty.Attributes
    Namespace: Unity.Properties
    Assembly: Unity.Properties.dll
    Syntax
    public interface ICollectionProperty<TContainer, TValue> : IProperty<TContainer, TValue>, IProperty
    Type Parameters
    Name Description
    TContainer
    TValue

    Methods

    Clear(ref TContainer)

    Removes all elements from the collection.

    Declaration
    void Clear(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container

    GetCount(ref TContainer)

    Gets the number of elements contained in the collection.

    Declaration
    int GetCount(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container
    Returns
    Type Description
    int

    GetPropertyAtIndex<TGetter>(ref TContainer, int, ref ChangeTracker, ref TGetter)

    Gets the strongly typed element at the specified index.

    Declaration
    void GetPropertyAtIndex<TGetter>(ref TContainer container, int index, ref ChangeTracker changeTracker, ref TGetter getter) where TGetter : ICollectionElementPropertyGetter<TContainer>
    Parameters
    Type Name Description
    TContainer container
    int index
    ChangeTracker changeTracker
    TGetter getter
    Type Parameters
    Name Description
    TGetter

    SetCount(ref TContainer, int)

    Sets the number of elements contained in the collection.

    Declaration
    void SetCount(ref TContainer container, int count)
    Parameters
    Type Name Description
    TContainer container
    int count
    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)