In this video I will Show you the method I use to fire bullets from a gun. This is the best method I have tried so far. It uses far fewer resources than Instantiating, and is more flashy and easier to customizable than raycasts.
This method works similar to instantiating, however we will use the particle system to emit our projectiles via the ParticleSystem.Emit() function.
the particle system will also utilize collisions, sending messages that will allow us to get some information from each individual particle within the system.
0:00 Intro: why this method is better
3:39 Scene Set Up
5:54 Gun and particle system Set up
15:40 bullet Script
24:03 Gun Script
30:58 Script Over View (skip here for the full code)
33:37 Shooting the bullet and outro
@1:14 I say shooting 3 bullets per second caused the frames to drop I meant to give a higher number like 20 or 30
On this page of the site you can watch the video online Unity Tutorial: Shooting bullets using a particle system with a duration of hours minute second in good quality, which was uploaded by the user Fross09 16 June 2021, share the link with friends and acquaintances, this video has already been watched 1,250 times on youtube and it was liked by 23 viewers. Enjoy your viewing!