# SettingsSchema

Class · category: Other

Source: https://github.com/playcanvas/editor-api/blob/4303c34bcee9a418297350899ad3a3f555526ec4/src/schema/settings.ts#L7

Provides methods to access the settings schema

## Constructors

### constructor

```ts
new SettingsSchema(schema: Schema)
```

Creates new instance of API

**Parameters**

- `schema` ([`Schema`](https://api.playcanvas.com/editor/classes/Schema.md)): The schema API

## Methods

### getDefaultProjectSettings

```ts
getDefaultProjectSettings(): Record<string, any>
```

Get the default settings for the project

**Returns** `Record<string, any>`: The default settings for the project

**Example**

```javascript
const projectSettings = editor.schema.settings.getDefaultProjectSettings();
```

### getDefaultProjectUserSettings

```ts
getDefaultProjectUserSettings(): Record<string, any>
```

Get the default settings for the user in the project

**Returns** `Record<string, any>`: The default settings for the user in the project

**Example**

```javascript
const projectUserSettings = editor.schema.settings.getDefaultProjectUserSettings();
```

### getDefaultUserSettings

```ts
getDefaultUserSettings(): Record<string, any>
```

Get the default settings for the user

**Returns** `Record<string, any>`: The default settings for the user

**Example**

```javascript
const userSettings = editor.schema.settings.getDefaultUserSettings();
```
