> For the complete documentation index, see [llms.txt](https://bkortbus.gitbook.io/unreal-python-recipe-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bkortbus.gitbook.io/unreal-python-recipe-book/actors/spawning-actors.md).

# Spawning Actors

Spawning an Actor from a Content browser Asset

There are two methods to spawning an actor in our current 3D level: from [an unreal class](https://docs.unrealengine.com/5.2/en-US/PythonAPI/class/EditorActorSubsystem.html#unreal.EditorActorSubsystem.spawn_actor_from_class) or from [an asset](https://docs.unrealengine.com/5.2/en-US/PythonAPI/class/EditorActorSubsystem.html#unreal.EditorActorSubsystem.spawn_actor_from_object).

## From an Unreal Class

For Unreal Classes such as a CineCameraActor we can use:

```python
EditorActorSubsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)

actor = EditorActorSubsystem.spawn_actor_from_class(
    unreal.CineCameraActor, 
    unreal.Vector()
)
```

## From a Content browser Asset

For assets such as Blueprints and Static Meshes in the Content browser we can use:

```python
EditorActorSubsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)

asset_path = "/Game/some/asset/path"
asset = unreal.load_asset(asset_path)
actor = EditorActorSubsystem.spawn_actor_from_object(
    asset, 
    unreal.Vector()
)
```

## Default Location

The second parameter on both of these functions is the Location parameter, with additional code you can spawn actors along a path, under the mouse, or in front of the viewport camera as a few examples
