# GetProperties

> Returns an enumerator that iterates through all static properties for the type.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.6/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## GetProperties()

Returns an enumerator that iterates through all static properties for the type.

```csharp
PropertyCollection<TContainer> GetProperties()
```

### Returns

| Type                                                                                              | Description                                    |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [PropertyCollection\<T>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) | A IEnumerator\_1 structure for all properties. |

### Remarks

This should return a subset properties returned by [IPropertyBag\<TContainer>.GetProperties()](/engine/6000.6/script-reference/unity/properties/ipropertybag1/getproperties.md).

## GetProperties(T)

Returns an enumerator that iterates through all static and dynamic properties for the given container.

```csharp
PropertyCollection<TContainer> GetProperties(ref TContainer container)
```

### Parameters

**** (T): The container hosting the data.

### Returns

| Type                                                                                              | Description                                    |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [PropertyCollection\<T>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) | A IEnumerator\_1 structure for all properties. |

### Remarks

This should return all static properties returned by [IPropertyBag\<TContainer>.GetProperties()](/engine/6000.6/script-reference/unity/properties/ipropertybag1/getproperties.md) in addition to any dynamic properties. If the container is a collection type all elements will be iterated.
