# ClearProperty

> Clears a property value for the specified hierarchy node.

## Definition

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

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

Clears a property value for the specified hierarchy node.

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

### Parameters

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

### Returns

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

## ClearProperty(HierarchyPropertyString, HierarchyNode)

Clears a property value for the specified hierarchy node.

```csharp
public bool ClearProperty(in HierarchyPropertyString property, in HierarchyNode node)
```

### Parameters

**** (\[HierarchyPropertyString]\(/engine/6000.6/script-reference/unity/hierarchy/hierarchypropertystring)): The hierarchy property.**** (\[HierarchyNode]\(/engine/6000.6/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node.

### Returns

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