# gameObjects

> Returns the actual game object selection. Includes Prefabs, non-modifiable objects.

## Definition

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

```csharp
public static GameObject[] gameObjects { get; }
```

### Remarks

When working with objects that are primarily in a Scene, it is strongly recommended to use [Selection.transforms](/engine/6000.0/script-reference/unityeditor/selection/transforms.md) instead.
