Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetProperties

Returns an enumerator that iterates through all static properties for the type.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

GetProperties()

Returns an enumerator that iterates through all static properties for the type.
PropertyCollection<TContainer> GetProperties()

Returns

Type

Description

PropertyCollection<T>A IEnumerator_1 structure for all properties.

Remarks

This should return a subset properties returned by IPropertyBag<TContainer>.GetProperties().

GetProperties(T)

Returns an enumerator that iterates through all static and dynamic properties for the given container.
PropertyCollection<TContainer> GetProperties(ref TContainer container)

Parameters

container

T
The container hosting the data.

Returns

Type

Description

PropertyCollection<T>A IEnumerator_1 structure for all properties.

Remarks

This should return all static properties returned by IPropertyBag<TContainer>.GetProperties() in addition to any dynamic properties. If the container is a collection type all elements will be iterated.