Interface ICollectionProperty<TContainer, TValue> | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Interface ICollectionProperty<TContainer, TValue>

    Inherited Members
    IProperty<TContainer, TValue>.GetValue(TContainer)
    IProperty<TContainer, TValue>.SetValue(TContainer, TValue)
    IProperty.GetName()
    IProperty.IsReadOnly
    IProperty.IsContainer
    IProperty.Attributes
    Namespace: Unity.Properties
    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
    System.Int32

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

    Gets the strongly typed element at the specified index.

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

    SetCount(ref TContainer, Int32)

    Sets the number of elements contained in the collection.

    Declaration
    void SetCount(ref TContainer container, int count)
    Parameters
    Type Name Description
    TContainer container
    System.Int32 count
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX