# selection

> Get the current selection in a frame time sample based Profiler modules, such as the CPU Usage module and the GPU Usage Profiler module.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.Profiling](/engine/6000.0/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor

```csharp
ProfilerTimeSampleSelection selection { get; }
```

### Remarks

When there is no active selection in this module, this vaule is null. Additional Resources: [IProfilerFrameTimeViewSampleSelectionController.SetSelection](/engine/6000.0/script-reference/unityeditor/profiling/iprofilerframetimeviewsampleselectioncontroller/setselection.md), [ProfilerEditorUtility.SetSelection](/engine/6000.0/script-reference/unityeditor/profiling/profilereditorutility/setselection.md) and [IProfilerFrameTimeViewSampleSelectionController.ClearSelection](/engine/6000.0/script-reference/unityeditor/profiling/iprofilerframetimeviewsampleselectioncontroller/clearselection.md).
