Unity Tutorial: Shooting bullets using a particle system

Veröffentlicht am: 16 Juni 2021
auf dem Kanal: Fross09
1,250
23

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


Auf dieser Seite können Sie das Online-Video Unity Tutorial: Shooting bullets using a particle system mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Fross09 16 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,250 Mal angesehen und es wurde von 23 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!