> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-pt/scene-editor/construir/spawn-areas.md).

# Áreas de Spawn

Usando Áreas de Spawn para definir visualmente a posição de spawn e a posição da Spawn Camera.

O criador pode definir a **Spawn Position** e **Spawn Camera Target** no Creator Hub editando uma **Spawn Area** Entity.

Isso oferece ao criador uma forma visual de definir a Spawn Area e a direção para a qual o avatar estará virado quando aparecer, assim como acontece com outros objetos na scene.

Spawn Areas definem onde os jogadores aparecem quando acessam sua scene diretamente, seja digitando as coordenadas ou teleportando. Sua scene pode ter objetos que bloqueiam os jogadores de se moverem se acontecer de spawnarem exatamente sobre eles, como árvores ou escadas, ou sua scene pode ter um terreno elevado. Seria uma má experiência para os jogadores se eles aparecessem sobre algo que não os deixasse se mover. É por isso que você tem a opção de definir uma ou várias spawn positions em locais ad hoc.

{% hint style="warning" %}
**📔 Nota**: Todos os spawn points devem estar dentro dos parcels que compõem a scene. Você não pode fazer spawn de um jogador fora do espaço desses parcels.
{% endhint %}

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-03f89e74cc5e8d88c5b72611a188f78346f24f70%2Fspawn-entity-scene-editor.png?alt=media" alt="" width="200">

O Spawn Area é composto por duas entities diferentes que trabalham juntas:

* **Spawn**  Entity: pode ser encontrada dentro da **Player** Entity. Define o Spawn Point real do Player.

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-a429daf2399dff521c426b6c93f594134d3d85d1%2Fspawn-entity.png?alt=media" alt="" width="200">

* **Camera Target**  Entity: pode ser encontrada dentro da **Spawn Area** Entity. Mova-a para a direção desejada na qual o Player será spawned.

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-d02cfe4e8573326cce5cccb4dc0fa433943da7dd%2Fspawn-camera-entity.png?alt=media" alt="" width="200">

## Alterando Spawn Areas

**Spawn Areas**  e seus **Camera Target** podem ser movidas diretamente do Scene Editor como qualquer outro objeto na scene, ou modificar seus valores manualmente (como com Transforms em outras Entities).

### Parâmetros

Quando um Spawn Area é selecionado, o criador consegue ver e definir os seguintes valores na seção Components:

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-7795398a2f7ea8b1adcbb202a31edb1e1f932569%2Fdefault-spawn-point-component.png?alt=media" alt="" width="600">

* **Posição**: Posição de Spawn do Avatar. São coordenadas dentro da scene, relativas à origem da scene, semelhantes ao que você usaria em um componente Transform.
* **Spawn Camera Target**: A direção para a qual a câmera (e o avatar) estarão voltados depois de aparecer na scene. Use isso para ter mais controle sobre a primeira impressão do Player quando ele entrar na sua scene.
* **Área Randomizada**: Adiciona aleatoriedade à Spawn Area em metros, habilitando e desabilitando-a com o **Não randomizar** toggle. Quando habilitada, uma área é renderizada no Scene Editor, mostrando a área em que o Player pode ser spawnado aleatoriamente. O deslocamento aleatório se aplica nos eixos X e Z, e impede que todos os jogadores apareçam sobrepostos quando fazem spawn, o que fica especialmente ruim em scenes lotadas.

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-c0fa3d111dded3970cfe65fbb2560df57c7f9c74%2Fspawn-point-randomized.png?alt=media" alt="" width="600">

## Múltiplas Spawn Areas

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-f83239964ac95e195a07f435a1abda38a11f2e9a%2Fspawn-area-multiple-scene-editor.png?alt=media" alt="" width="600">

O criador pode ter múltiplas **Spawn Areas** definidas. Para criar uma nova Spawn Area, siga estes passos:

1. Selecione qualquer Spawn Area, **spawn1** sendo o padrão.
2. Todas as Spawn Areas aparecem no painel da direita. Você pode adicionar novas clicando em **+ Adicionar Nova Spawn Area**&#x20;

   <img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-904df69cb6b4e6772b82bd2f5006022a40cc886b%2Fspawn-area-add-new.png?alt=media" alt="ícone" width="200">

   .

<img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-a7d4c514ad3b81c4dd994ba4c7e75b3a6754dc82%2Fspawn-area-multiple-components.png?alt=media" alt="" width="600">

3. Ative o **Main Spawn**&#x20;

   <img src="https://2402076176-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-746d667c0a3c33f23c0b47ab6f2d7cd330309296%2Fspawn-areas-main-spawn-toggle.png?alt=media" alt="ícone" width="100">

   &#x20;da Spawn Area desejada. Se houver muitas Spawn Areas alternadas como **Main Spawn**, o jogador aparecerá aleatoriamente em uma delas.
4. Pré-visualize a scene.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-pt/scene-editor/construir/spawn-areas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
