# EnumerateNodesWithoutFlags(HierarchyNodeFlags)

> Gets an enumerable of all hierarchy nodes that do not have all of the specified flags set.

## Definition

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

```csharp
public HierarchyViewModelNodesEnumerable EnumerateNodesWithoutFlags(HierarchyNodeFlags flags)
```

### Parameters

**** (\[HierarchyNodeFlags]\(/engine/6000.7/script-reference/unity/hierarchy/hierarchynodeflags)): The flags to exclude when enumerating hierarchy nodes.

### Returns

| Type                                                                                                                      | Description                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [HierarchyViewModelNodesEnumerable](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewmodelnodesenumerable.md) | An enumerable that iterates over all nodes that do not have all of the specified flags set. |
