# GetValue

> Gets the value of a property by name.

## Definition

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

## GetValue\<T, U>(T, string)

Gets the value of a property by name.

```csharp
public static TValue GetValue<TContainer, TValue>(TContainer container, string name)
```

### Parameters

**** (T): The container whose property value will be returned.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property to get.

### Returns

| Type | Description                       |
| ---- | --------------------------------- |
| T    | The value for the specified name. |

## GetValue\<T, U>(T, string)

Gets the value of a property by name.

```csharp
public static TValue GetValue<TContainer, TValue>(ref TContainer container, string name)
```

### Parameters

**** (T): The container whose property value will be returned.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property to get.

### Returns

| Type | Description                       |
| ---- | --------------------------------- |
| T    | The value for the specified name. |

## GetValue\<T, U>(T, PropertyPath)

Gets the value of a property by path.

```csharp
public static TValue GetValue<TContainer, TValue>(TContainer container, in PropertyPath path)
```

### Parameters

**** (T): The container whose property value will be returned.**** (\[PropertyPath]\(/engine/6000.6/script-reference/unity/properties/propertypath)): The path of the property to get.

### Returns

| Type | Description                      |
| ---- | -------------------------------- |
| T    | The value at the specified path. |

## GetValue\<T, U>(T, PropertyPath)

Gets the value of a property by path.

```csharp
public static TValue GetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path)
```

### Parameters

**** (T): The container whose property value will be returned.**** (\[PropertyPath]\(/engine/6000.6/script-reference/unity/properties/propertypath)): The path of the property to get.

### Returns

| Type | Description                      |
| ---- | -------------------------------- |
| T    | The value at the specified path. |
