Interface ICollectionProperty<TContainer, TValue> | Properties | 0.10.4-preview
docs.unity3d.com
    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
    Int32

    GetPropertyAtIndex<TGetter>(ref TContainer, Int32, 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
    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
    Int32 count
    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