# ScopeSpace

Class · category: Graphics

Source: https://github.com/playcanvas/engine/blob/f059dc005842f76e052cdf44d8370c8c7ec475ac/src/platform/graphics/scope-space.js#L8

The scope for variables.

## Constructors

### constructor

```ts
new ScopeSpace(name: string)
```

Create a new ScopeSpace instance.

**Parameters**

- `name` (`string`): The scope name.

## Properties

### name

```ts
name: string
```

The scope name.

## Methods

### resolve

```ts
resolve(name: string): ScopeId
```

Get (or create, if it doesn't already exist) a variable in the scope.

**Parameters**

- `name` (`string`): The variable name.

**Returns** [`ScopeId`](https://api.playcanvas.com/engine/classes/ScopeId.md): The variable instance.
