Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyCollection<TContainer>

The PropertyCollection<TContainer> struct provides enumerable access to all IProperty<TContainer> for a given PropertyBag<TContainer>.
Read time 1 minuteLast updated 7 days ago

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.