> For the complete documentation index, see [llms.txt](https://docs.avataar.ai/knowledge-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avataar.ai/knowledge-center/ide-low-code/ide-functions/add-room-to-the-scene.md).

# Add Room to the Scene

addRoomtoScene: to add room to the scene (returns objId of the room)

| assetName | asset name          | required | string                 | Unit     |
| --------- | ------------------- | -------- | ---------------------- | -------- |
| position  | default: \[0, 0, 0] | optional | \[float, float, float] | 3D Units |
| rotation  | default: \[0, 0, 0] | optional | \[float, float, float] | Radian   |
| scale     | default: \[1, 1, 1] | optional | \[float, float, float] | 3D Units |

```javascript
// Some codevar roomId = IDE.addRoomtoScene({
    assetName: 'ROOMglb', //room object name
    position: [0, 0, 0],
    scale: [1, 1, 1],
    rotation: [0, 0, 0]
})

```

**removeRoomfromScene:**

```javascript
// Some codeIDE.removeRoomfromScene({ id: roomId })

```
