---
title: "sceneCameraBehavior()"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220801352/sceneCameraBehavior()"
format: markdown
---
> ℹ️ **Information**
> ℹ️ 
> ℹ️ Implementation version: beta 1.07

# Description

Modifies the viewfinder camera's operating options, simulating a 2D or 3D map effect depending on the parameters.

# Invocation

```javascript
sceneCameraBehavior(
	sceneMode
)
```

# Input parameters

## sceneMode

Parameter that specifies the camera mode that you want to use on the map. It is received as a text string that accepts one of these two options:

1. **scene2D**: locks the camera, preventing any movement other than its movement over the horizontal (as if it were a two-dimensional map).
2. **scene3D**: the camera lacks restrictions, allowing its free movement (normally on a map in three dimensions).

# Use examples

Set up the camera to simulate a 2D map:

```javascript
sceneCameraBehavior(
	'scene2D'
)
```


Set up the camera to simulate a 3D map:

```javascript
sceneCameraBehavior(
	'scene3D'
)
```

![image](media://b6f10fc7-aed8-463b-bb8e-406f7df5bff9)