# Scene.createNullLayer
Creates a null layer

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## Scene.createNullLayer() method

Creates a null layer.

**Signature:**

```typescript
createNullLayer(opts?: NullLayerCreateOptions): NullLayer;
```

## Parameters

<table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        opts
      </td>

      <td>
        [NullLayerCreateOptions](../../types/null-layer-create-options)
      </td>

      <td>
        _(Optional)_ The options for the null layer.
      </td>
    </tr>
  </tbody>
</table>

**Returns:**

[NullLayer](../null-layer)

The null layer.

## Example

```ts
// Create an empty null layer.
const controller = scene.createNullLayer({ name: "Controller" });

// Create a null layer as the transform parent of two existing layers.
const rig = scene.createNullLayer({
  name: "Rig",
  position: { x: 250, y: 250 },
  layers: [head, body],
});
```
