# Sandbox.GameObjectDirectory

New GameObjects and Components are registered with this class when they're created, and 
unregistered when they're removed. This gives us a single place to enforce
Id uniqueness in the scene, and allows for fast lookups by Id.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`ComponentCount`](/api/Sandbox.GameObjectDirectory/ComponentCount)
- [`Count`](/api/Sandbox.GameObjectDirectory/Count)
- [`GameObjectCount`](/api/Sandbox.GameObjectDirectory/GameObjectCount)

## Methods

- [`FindByGuid`](/api/Sandbox.GameObjectDirectory/FindByGuid): Find a GameObject in the scene by Guid. This should be really really fast.
- [`FindByName`](/api/Sandbox.GameObjectDirectory/FindByName): Find objects with this name. Not performant.
- [`FindComponentByGuid`](/api/Sandbox.GameObjectDirectory/FindComponentByGuid): Find a Component in the scene by Guid. This should be really really fast.
- [`GetAll`](/api/Sandbox.SceneExtensions/GetAll)
