# GetProperty

> Gets an IProperty on the specified container for the given PropertyPath.

## Definition

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

## GetProperty\<T>(T, PropertyPath)

Gets an [IProperty](/engine/6000.6/script-reference/unity/properties/iproperty.md) on the specified container for the given [PropertyPath](/engine/6000.6/script-reference/unity/properties/propertypath.md).

```csharp
public static IProperty GetProperty<TContainer>(TContainer container, in PropertyPath path)
```

### Parameters

**** (T): The container tree to search.**** (\[PropertyPath]\(/engine/6000.6/script-reference/unity/properties/propertypath)): The property path to resolve.

### Returns

| Type                                                                       | Description                                                                                        |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [IProperty](/engine/6000.6/script-reference/unity/properties/iproperty.md) | The [IProperty](/engine/6000.6/script-reference/unity/properties/iproperty.md) for the given path. |

### Remarks

While the container data is not actually read from or written to. The container itself is needed to resolve polymorphic fields and list elements.

## GetProperty\<T>(T, PropertyPath)

Gets an [IProperty](/engine/6000.6/script-reference/unity/properties/iproperty.md) on the specified container for the given [PropertyPath](/engine/6000.6/script-reference/unity/properties/propertypath.md).

```csharp
public static IProperty GetProperty<TContainer>(ref TContainer container, in PropertyPath path)
```

### Parameters

**** (T): The container tree to search.**** (\[PropertyPath]\(/engine/6000.6/script-reference/unity/properties/propertypath)): The property path to resolve.

### Returns

| Type                                                                       | Description                                                                                        |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| [IProperty](/engine/6000.6/script-reference/unity/properties/iproperty.md) | The [IProperty](/engine/6000.6/script-reference/unity/properties/iproperty.md) for the given path. |

### Remarks

While the container data is not actually read from or written to. The container itself is needed to resolve polymorphic fields and list elements.
