# Sandbox.RequireComponentAttribute

When added to a property on a Component, we'll try to make that component value non null.
We will first look on the GameObject for the component type. If it's not found, we'll create one.

- Kind: attribute
- Namespace: `Sandbox`
- Assembly: `Sandbox.System`

## Constructors

- [`RequireComponentAttribute`](/api/Sandbox.RequireComponentAttribute/.ctor)
