기술 자료

Unity Engine

Unity Engine

PropertyCollection<TContainer>

The PropertyCollection<TContainer> struct provides enumerable access to all IProperty<TContainer> for a given PropertyBag<TContainer>.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public readonly struct PropertyCollection<TContainer> : IEnumerable<IProperty<TContainer>>, IEnumerable

Constructors

Constructor

Description

PropertyCollection`1(System.Collections.Generic.IEnumerable{Unity.Properties.IProperty{`0}})Initializes a new instance of the PropertyCollection<TContainer> struct which wraps the given enumerable.
PropertyCollection`1(System.Collections.Generic.List{Unity.Properties.IProperty{`0}})Initializes a new instance of the PropertyCollection<TContainer> struct which wraps the given properties list.

Static Properties

Property

Description

EmptyReturns an empty collection of properties.

Methods

Method

Description

GetEnumeratorReturns an enumerator that iterates through the collection.

Structs

Struct

Description

PropertyCollection<TContainer>.EnumeratorAn enumerator struct to enumerate all properties for the given
TContainer
.