# SetProperty

> Sets a value for a property of a hierarchy node.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.3/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

## SetProperty\<T>(HierarchyPropertyUnmanaged\<T>, HierarchyNode, T)

Sets a value for a property of a hierarchy node.

```csharp
public bool SetProperty<T>(in HierarchyPropertyUnmanaged<T> property, in HierarchyNode node, T value) where T : unmanaged
```

### Parameters

**** (\[HierarchyPropertyUnmanaged\<T>]\(/engine/6000.3/script-reference/unity/hierarchy/hierarchypropertyunmanaged1)): The property.**** (\[HierarchyNode]\(/engine/6000.3/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node.**** (T): The property value.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the command was appended to the list, `false` otherwise. |

## SetProperty(HierarchyPropertyString, HierarchyNode, string)

Sets a value for a property of a hierarchy node

```csharp
public bool SetProperty(in HierarchyPropertyString property, in HierarchyNode node, string value)
```

### Parameters

**** (\[HierarchyPropertyString]\(/engine/6000.3/script-reference/unity/hierarchy/hierarchypropertystring)): The property.**** (\[HierarchyNode]\(/engine/6000.3/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property value.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the command was appended to the list, `false` otherwise. |
