Projectile Spawner

The Projectile Spawner allows you to select from a list of different projectiles and spawn them simply by pressing the left mouse button.

You can configure the following properties:

Fire Point

Transform reference that defines the position and direction from which projectiles are spawned.

Default Target

Target object the projectiles will travel toward.

Fire Rate

Defines how many projectiles can be fired per second.

Effect Name

TextMeshPro UGUI reference that displays the name of the currently selected projectile.

Next/ Previous Key

Customizable input keys used to switch between available projectiles.

Gun

Optional visual object representing the firing source, such as a pistol or machine gun. This object will automatically rotate to face the target.

Enable VFX Overlay

Enables the optional VFX layer overlay system. When enabled,following will happen:

On impact, the hit VFX will be moved to the specified overlay layer and rendered by the overlay camera. This ensures the effect is always visible and not partially clipped by surrounding geometry, such as walls.

VFX Layer Overlay

Defines the layer used for rendering overlay VFX.

Overlay Cam

Separate camera that renders only the specified VFX overlay layer.

Projectiles

List of available projectile prefabs that can be selected and spawned.

Last updated