---
title: Spawn game object
brief: This example shows how to dynamically spawn game objects with a factory component.
scripts: bunny.script,carrot.script
---

![spawn](spawn.png)

The "carrotfactory" factory component uses the file *carrot.go* as prototype, meaning that it produces game objects that are all copies of that file.

![carrot](carrot.png)
