Struct ListProperty<TContainer, TElement> | Properties | 0.10.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ListProperty<TContainer, TElement>

    Namespace: Unity.Properties
    Syntax
    public struct ListProperty<TContainer, TElement> : ICollectionProperty<TContainer, IList<TElement>>, IProperty<TContainer, IList<TElement>>, IProperty
    Type Parameters
    Name Description
    TContainer
    TElement

    Constructors

    ListProperty(String, ListProperty<TContainer, TElement>.Getter, ListProperty<TContainer, TElement>.Setter, IPropertyAttributeCollection)

    Declaration
    public ListProperty(string name, ListProperty<TContainer, TElement>.Getter getter, ListProperty<TContainer, TElement>.Setter setter, IPropertyAttributeCollection attributes = null)
    Parameters
    Type Name Description
    String name
    ListProperty.Getter<> getter
    ListProperty.Setter<> setter
    IPropertyAttributeCollection attributes

    Properties

    Attributes

    Declaration
    public IPropertyAttributeCollection Attributes { get; }
    Property Value
    Type Description
    IPropertyAttributeCollection
    Implements
    IProperty.Attributes

    IsContainer

    Declaration
    public bool IsContainer { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IProperty.IsContainer

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IProperty.IsReadOnly

    Methods

    Clear(ref TContainer)

    Declaration
    public void Clear(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container
    Implements
    ICollectionProperty<TContainer, TValue>.Clear(ref TContainer)

    GetCount(ref TContainer)

    Declaration
    public int GetCount(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container
    Returns
    Type Description
    Int32
    Implements
    ICollectionProperty<TContainer, TValue>.GetCount(ref TContainer)

    GetName()

    Declaration
    public string GetName()
    Returns
    Type Description
    String
    Implements
    IProperty.GetName()

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

    Declaration
    public 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
    Implements
    ICollectionProperty<TContainer, TValue>.GetPropertyAtIndex<TGetter>(ref TContainer, Int32, ref ChangeTracker, ref TGetter)

    GetValue(ref TContainer)

    Declaration
    public IList<TElement> GetValue(ref TContainer container)
    Parameters
    Type Name Description
    TContainer container
    Returns
    Type Description
    IList<TElement>
    Implements
    IProperty<TContainer, TValue>.GetValue(ref TContainer)

    SetCount(ref TContainer, Int32)

    Declaration
    public void SetCount(ref TContainer container, int count)
    Parameters
    Type Name Description
    TContainer container
    Int32 count
    Implements
    ICollectionProperty<TContainer, TValue>.SetCount(ref TContainer, Int32)

    SetValue(ref TContainer, IList<TElement>)

    Declaration
    public void SetValue(ref TContainer container, IList<TElement> value)
    Parameters
    Type Name Description
    TContainer container
    IList<TElement> value
    Implements
    IProperty<TContainer, TValue>.SetValue(ref TContainer, TValue)
    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