# GetSelectionOutlineIncludeExcludeList(Allocator)

> Gets the selection outline PickingIncludeExcludeList for the currently executing BatchRendererGroup.OnPerformCulling callback.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Removed.** Use GetSelectionOutlineIncludeExcludeEntityIdList instead. This method will be removed in a future version.

```csharp
public static PickingIncludeExcludeList GetSelectionOutlineIncludeExcludeList(Allocator allocator = Allocator.Persistent)
```

### Parameters

**** (\[Allocator]\(/engine/6000.7/script-reference/unity/collections/allocator)): The allocator to use to create the [PickingIncludeExcludeList](/engine/6000.7/script-reference/unityeditor/pickingincludeexcludelist.md) object.

### Returns

| Type                                                                                                  | Description                                                                                                       |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [PickingIncludeExcludeList](/engine/6000.7/script-reference/unityeditor/pickingincludeexcludelist.md) | The [PickingIncludeExcludeList](/engine/6000.7/script-reference/unityeditor/pickingincludeexcludelist.md) struct. |

### Remarks

**Note**: If you call this method outside of a [BatchRendererGroup.OnPerformCulling](/engine/6000.7/script-reference/unityengine/rendering/batchrenderergroup/onperformculling.md) callback, it returns an empty [PickingIncludeExcludeList](/engine/6000.7/script-reference/unityeditor/pickingincludeexcludelist.md) object.
