# PickingIncludeExcludeList

> Represents a list of Unity Object and DOTS Entity IDs that picking algorithms can either consider or discard.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

> **Warning:**
>
> **Removed.** PickingIncludeExcludeList is deprecated. Use PickingIncludeExcludeEntityIdList instead.

```csharp
public struct PickingIncludeExcludeList : IDisposable
```

## Constructors

| Constructor                                                                                                                                                                                                                                                                                                                         | Description                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [PickingIncludeExcludeList(System.Collections.Generic.List\{System.Int32},System.Collections.Generic.List\{System.Int32},System.Collections.Generic.List\{System.Int32},System.Collections.Generic.List\{System.Int32},Unity.Collections.Allocator)](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist/ctor.md) | Construct a [PickingIncludeExcludeList](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist.md). |

## Properties

| Property                                                                                                      | Description                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ExcludeEntities](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist/excludeentities.md)   | An array of DOTS Entity IDs that the picking algorithm doesn't consider when it selects the nearest object.                                                                                       |
| [ExcludeRenderers](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist/excluderenderers.md) | An array of GameObjects that the picking algorithm doesn't consider when it selects the nearest object.                                                                                           |
| [IncludeEntities](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist/includeentities.md)   | An array of DOTS Entity IDs that the picking algorithm exclusively considers when it selects the nearest object. If this is null, Unity considers all DOTS Entities in open scenes for selection. |
| [IncludeRenderers](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist/includerenderers.md) | An array of GameObjects that the picking algorithm exclusively considers when it selects the nearest object. If this is null, Unity considers all GameObjects in open scenes for selection.       |

## Methods

| Method                                                                                      | Description                                                                                                         |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| [Dispose](/engine/6000.5/script-reference/unityeditor/pickingincludeexcludelist/dispose.md) | Dispose all the [NativeArray](/engine/6000.5/script-reference/unity/collections/nativearray1.md) inside the struct. |
