# GetNodesWithoutAllFlags

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

## Definition

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

## GetNodesWithoutAllFlags(HierarchyNodeFlags, Span\<HierarchyNode>)

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

```csharp
public int GetNodesWithoutAllFlags(HierarchyNodeFlags flags, Span<HierarchyNode> outNodes)
```

### Parameters

**** (\[HierarchyNodeFlags]\(/engine/6000.3/script-reference/unity/hierarchy/hierarchynodeflags)): The hierarchy node flags.**** (\[Span\<HierarchyNode>]\(https\://learn.microsoft.com/dotnet/api/system.span-1)): The hierarchy nodes.

### Returns

| Type                                                       | Description                              |
| ---------------------------------------------------------- | ---------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of nodes written in the span. |

## GetNodesWithoutAllFlags(HierarchyNodeFlags)

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

```csharp
public HierarchyNode[] GetNodesWithoutAllFlags(HierarchyNodeFlags flags)
```

### Parameters

**** (\[HierarchyNodeFlags]\(/engine/6000.3/script-reference/unity/hierarchy/hierarchynodeflags)): The hierarchy node flags.

### Returns

| Type                                                                                  | Description          |
| ------------------------------------------------------------------------------------- | -------------------- |
| [HierarchyNode\[\]](/engine/6000.3/script-reference/unity/hierarchy/hierarchynode.md) | The hierarchy nodes. |
