Gabriel Aguiar Prod.: How To Create and Shoot a 2D Laser in Unity

How To Create and Shoot a 2D Laser in Unity
Let’s see how to create and shoot a 2D Laser in Unity, using Shader Graph and a bit of code. Laser is procedurally generated, which means no textures involved!

Made in the 2D Renderer of the URP with Unity 2020.1

2D Sci-Fi Gun: https://assetstore.unity.com/packages/2d/textures-materials/2d-sci-fi-weapons-pack-22679?aid=1100l3Jhu
2D Scenario: https://assetstore.unity.com/packages/2d/characters/warped-caves-103250?aid=1100l3Jhu

Enjoy!

———————————————————————-

2D LASERS AVAILABLE HERE: https://www.patreon.com/posts/unity-2d-laser-39800075

———————————————————————-

UDEMY COURSE – VFX FOR GAMES: https://www.udemy.com/course/vfx-for-games-in-unity-beginner-to-intermediate/?couponCode=16.99_EXPIRES_14-08

VFX Packages:

Unique Projectiles Volume 1: https://assetstore.unity.com/packages/vfx/particles/unique-projectiles-volume-1-124214?aid=1100l3Jhu

Unique Projectiles Volume 2: https://assetstore.unity.com/packages/vfx/particles/unique-projectiles-vol-2-156067?aid=1100l3Jhu

Unique Explosions Volume 1: https://assetstore.unity.com/packages/vfx/particles/unique-explosions-volume-1-98839?aid=1100l3Jhu

Unique Lasers Volume 1: https://assetstore.unity.com/packages/vfx/particles/unique-lasers-volume-1-118909?aid=1100l3Jhu

Unique Magic Abilities Volume 1: https://assetstore.unity.com/packages/vfx/particles/unique-aoe-magic-abilities-volume-1-132947?aid=1100l3Jhu

Unique Toon Projectiles Volume 1: https://assetstore.unity.com/packages/vfx/particles/unique-toon-projectiles-vol-1-139417?aid=1100l3Jhu

VFX Graph Tutorials:

VFX Graph – Magic Orb: https://youtu.be/7bMOhNUA1bI?list=PLpPd_BKEUoYhN8CiOoNLTSVh-7U5yjg3n

VFX Graph – Weapon Effects: https://youtu.be/H5QZhChfa1I?list=PLpPd_BKEUoYhN8CiOoNLTSVh-7U5yjg3n

VFX Graph – Portals: https://youtu.be/V2NZb0WN7SY?list=PLpPd_BKEUoYhN8CiOoNLTSVh-7U5yjg3n

VFX Graph – Flamethrower: https://youtu.be/IY2K2cOE0R8?list=PLpPd_BKEUoYhN8CiOoNLTSVh-7U5yjg3n

Shader Graph Tutorials:

Shader Graph – Introduction: https://www.youtube.com/watch?v=O75iGGUQXBI&list=PLpPd_BKEUoYjcFaqriaMchx5gOqBs2tDh&index=2

Shader Graph – Fire Flames: https://www.youtube.com/watch?v=glSsaRpHKos&list=PLpPd_BKEUoYjcFaqriaMchx5gOqBs2tDh&index=4

Shader Graph – Cartoon Water: https://www.youtube.com/watch?v=jBmBb-je4Lg&index=6&list=PLpPd_BKEUoYjcFaqriaMchx5gOqBs2tDh

Shader Graph – Laser Beam: https://www.youtube.com/watch?v=mGd3nYXj1Oc&list=PLpPd_BKEUoYjcFaqriaMchx5gOqBs2tDh&index=8

Shader Graph – Fire: https://www.youtube.com/watch?v=qlyIOmtrMMQ&list=PLpPd_BKEUoYjcFaqriaMchx5gOqBs2tDh&index=9

Shader Graph – Tornado: https://youtu.be/Qyh9RPxeKcA

Shader Graph – Blood: https://youtu.be/zNC65seEadI

Shader Graph – Slash: https://youtu.be/9Nv28O2OIoQ

Shader Graph – Electricity: https://youtu.be/u9lOaPVtSqg

Shader Graph – Nuke: https://youtu.be/28MQrE7fUk4

Shader Graph – Shield: https://youtu.be/hTJqo1HeEOs

Shader Graph – Waterfall: https://youtu.be/yJ0NRr-DdYU

Shader Graph – Galaxy: https://youtu.be/jLUGRGdji2o

Game VFX Tutorials:

Game Effects – Electric Explosion: https://www.youtube.com/watch?v=uR2jcU3x3kU&index=6&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX

Game Effects – Fireball Projectile: https://www.youtube.com/watch?v=-P09r-ALN38&index=8&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX

Game Effects – Slash Effect: https://www.youtube.com/watch?v=T-ZNkGwImcI&index=15&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX

Game Effects – Tornado Effect: https://www.youtube.com/watch?v=_VG_if3saBw&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX&index=18

Game Effects – Lightning & Thunder: https://www.youtube.com/watch?v=ewC_c6aHbf8&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX&index=21

Game Effects – Laser Beams: https://www.youtube.com/watch?v=YbWYc3W43EI&index=29&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX

Game Effects – Projectile / Bullet Raycast: https://www.youtube.com/watch?v=xenW67bXTgM&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX&index=31

Game Effects – Weapon Trails: https://www.youtube.com/watch?v=c8hijUge7IY&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX&index=32

Game Effects – Shatter / Destroy / Explode Objects: https://www.youtube.com/watch?v=w4aMtKeD2w4&list=PLpPd_BKEUoYh40LeJXTgA6E53gCMPq3MX&index=33

Game Effects – Meteor VFX: https://www.youtube.com/watch?v=YNHw4-DEpzE

Game Effects – Loot Box VFX: https://youtu.be/CKtazkqsGRA

Game Effects – Dragon Ball Aura VFX: https://youtu.be/FzzGB5gwUtA

Enjoy and feel free to ask any questions you may have, i’ll answer as quickly as possible. And don’t forget to like and subscribe. Thank you!

✦ Follow on TWITTER: https://twitter.com/GabrielAguiarFX
✦ Like on FACEBOOK: https://www.facebook.com/gabrielaguiarprod
✦ Subscribe On YOUTUBE: https://www.youtube.com/c/gabrielaguiarprod?sub_confirmation=1

Unity 2D Laser Shader Graph Tutorial
2D Laser Shader Tutorial
Game Effects in Unity
Unity VFX Graph
#ShaderGraph
Game Effects
Laser Shader
Unity VFX
2D Laser
#Laser
#Unity

View on YouTube

Join the Discussion

Share your thoughts, ask a question, or tell us what you learned. Your first comment is reviewed before it appears. Once approved, future comments using the same name and email can appear directly, subject to spam checks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fix the Blender logo

Drag the loose piece into the missing part. A close fit is enough.

Loading verification…

Keyboard: arrows to move, Shift for fine adjustment, Enter to check. Verification only; movement is not stored. Logo: Blender.