![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Spawns a prefab. This function can be triggered by a Unity Event. This was initially made to drop potions when pots break.
Documentation updated 3/9/2024
Public Member Functions | |
void | Spawn () |
Spawns the prefab. | |
Private Attributes | |
Transform | prefabToSpawn |
Reference to the prefab we want to spawn. | |
bool | inheritScale |
True if the spawned prefab should spawn with the same scale as the object that runs this script. | |
bool | inheritRotation |
True if the spawned prefab should spawn with the same rotation as the object that runs this script. | |
void SpawnPrefab.Spawn | ( | ) |
Spawns the prefab.
Spawns the prefab at the parent object's position.
|
private |
True if the spawned prefab should spawn with the same rotation as the object that runs this script.
|
private |
True if the spawned prefab should spawn with the same scale as the object that runs this script.
|
private |
Reference to the prefab we want to spawn.