Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (19 sloc) 838 Bytes
title keywords sidebar permalink folder
Spawning Prefabs

Spawning Prefabs

Use blueprints to spawn prefabs at runtime

{% include inline_image.html file="spawn_prefab/01.png" %}

{% include inline_image.html file="spawn_prefab/02.png" %}

The Spawn Prefab function takes in the following parameters:

  • World Context Object: Pass a reference to any actor in the scene. This is needed by the library to grab a reference of the world to create the prefab in
  • Prefab: The prefab asset that should be spawned on the scene
  • Transform: The world transform of the spawned prefab actor
  • Seed: Used for randomization. Randomize it with your game's seed or pass in a random number

{% include links.html %}

Explore the next section from the side bar

You can’t perform that action at this time.