Item Spawner
Scripting with the ItemSpawner class.
An ItemSpawner
is a GameObject
that spawns item drops.
Fields & Properties
spawnMethod
The spawn method type.
SpawnMethod
public
spawnTarget
The target object type used to spawn items.
SpawnTarget
public
afterSpawn
What to do when items are spawned.
AfterSpawn
public
itemStack
The item stack to spawn. Used when spawn target is set to Single.
ItemStack
public
itemPouch
The item pouch used to spawn items. Used when spawn target is set to Pouch.
ItemPouch
public
lootBox
The loot box used to spawn items. Used when spawn target is set to LootBox.
LootBox
public
collisionTarget
The collision target used for when the spawn method is set to any collision type.
GameObject
public
spawnRange
The item drop spawn range.
float
public
spawnDelay
The length of time passed before the item(s) are spawned.
float
public
useTimeout
If timeout should be enabled for dropped items.
bool
public
canSpawn
If spawning should be possible. This is automatically set to false after spawn if afterSpawn is set to Disable.
bool
public
Spawn
Use the Spawn
method to spawn item drops based on the set fields.
Last updated