UE4 Niagara Tutorial - Laser and Niagara Parameters - Intro to Niagara UE4/Unreal Engine 4

Поділитися
Вставка
  • Опубліковано 18 чер 2024
  • This Video:
    In this video, we create a laser particle effect. Making the effect more dynamic by control the colour and length through a blueprint class.
    Niagara Particles:
    This playlist is dedicated to the Niagara particle system acting as an introduction to some of the basic concepts of creating emitters and systems.
    Consider supporting the channel on Patreon: / devenabled
    Chapters:
    00:00 - Setup Overview
    01:12 - Creating the Laser Emitter
    07:42 - Creating the Laser System
    08:30 - Creating the Impact Emitter
    12:42 - Creating the Impact System
    13:02 - Laser Blueprint
    Links:
    Get a 14-day Skillshare free trial: skl.sh/3tSddhe
    Download free projects from some complete tutorial series and more: mega.nz/#F!imQGFKgR!O0wu4xrnl...
    Join the Dev Enabled Discord: / discord
    Get my new UE4 Beginners course: devenabled.teachable.com/p/in...
    Beginner course now available on Udemy: www.udemy.com/course/unreal-e...
    Gamedev.tv Courses - Affiliate Links:
    Unreal C++ Developer: www.gamedev.tv/p/unreal-engin...
    Unreal Multiplayer: www.gamedev.tv/p/unrealmultip...
    Unreal Blueprints: www.gamedev.tv/p/unreal-bluep...
    Blender Characters: www.gamedev.tv/p/blender-char...
    Get a FREE Pluralsight trial and support the channel: pluralsight.pxf.io/DevEnabled
    My First Pluralsight Course: pluralsight.pxf.io/UnrealBlue...
    My Second Pluralsight Course: pluralsight.pxf.io/UnrealCPPI...
    My Third Pluralsight Course: pluralsight.pxf.io/UnrealFund...
    Check out my Website: devenabled.com/
    Twitter: / robbcreates
    RECOMMENDED READING - Game Theory Books -
    Theory of Fun for Game Design: amzn.to/2Y7a29z (Personal Favourite)
    Game Feel: A Game Designer's Guide to Virtual Sensation: amzn.to/3159Dl5 (Another read I couldn't put down)
    Level Up! The Guide to Great Video Game Design: amzn.to/2MkxcC8
    The Art of Game Design, Second Edition: amzn.to/2JY6EVz
    Rules of Play: Game Design Fundamentals: amzn.to/2YcfsA7
    Game Programming Patterns: amzn.to/2YbXnC2
    Drawing Basics and Video Game Art: amzn.to/2Ml6FVb
    Sound Effects (BFXR): www.bfxr.net/
    Get Affinity Designer: affinity.serif.com/en-gb/
    Get Unreal: www.unrealengine.com/
    Get Some great free assets here: www.gamedevmarket.net/
    #ue4, #unreal_engine, #niagara, #stylized

КОМЕНТАРІ • 110

  • @DevEnabled
    @DevEnabled  2 роки тому +1

    Get my new UE4 Beginners course: devenabled.teachable.com/p/intro-to-ue4/
    Beginner course now available on Udemy: www.udemy.com/course/unreal-engine-4-ue4-complete-beginners-course/?referralCode=FB8E232D20F4A087F6D5

  • @KazukiP
    @KazukiP 4 місяці тому +17

    For anyone on UE5 stuck at the 6:00 mark:
    I think I worked out how to solve no "+" at User Exposed. As it states, "User Parameters are only supported in System Assets".This means In Unreal 5, you can only do this on Niagra **Systems**, which are the things that hold the emitter. Think of it like a painting and a canvas. We are using a Niagra Emitter and we need our canvas to show our painting on.
    In the explorer, right click on your Niagra emitter and select "create Niagra system" (shown at 7:48) you can then open this and you will be allowed to add user exposed parameters here instead!

    • @TabascoDev
      @TabascoDev 2 місяці тому +2

      thanks a lot. 😀

    • @Youshisu
      @Youshisu 2 місяці тому +2

      yup, much thanks, this should be pinned :D

    • @dustercrew
      @dustercrew 27 днів тому

      LEGEND

  • @ChrixB
    @ChrixB 2 роки тому +16

    This is by far the best tutorial on how to expose parameters in Niagara, very detailed and so well done, thanks !

    • @DevEnabled
      @DevEnabled  2 роки тому

      Thank you, glad you liked it.

  • @keegantompkins9553
    @keegantompkins9553 2 роки тому

    This video teaches ribbons, beams, and exposing parameters to blueprints. Despite all of that content, it is still simple and easy to follow with an amazing end-product to boot! Thank you so much!

  • @aaronsimon5527
    @aaronsimon5527 Рік тому +14

    For anyone like me who got stuck at the Line Trace By Channel in UE5 - Drag off the Out Hit node and create a Break Hit Result. This should unblock you from 18 min onwards.

    • @SicrosEye
      @SicrosEye 4 місяці тому +1

      Probably I am too late here but I did it like that, yet no Debug line shows up and nothing is being traced... :/

  • @sinksinkswim
    @sinksinkswim 2 роки тому

    Great tutorial, was looking for a Niagara laser and a bit of logic to set up the parameters so that I can modify them for my needs and this does the job really well!

  • @blobmon786
    @blobmon786 Рік тому +33

    For anyone using UE5, if you can't see the laser after adding the Beam Width dw, he adds an update Beam a few mins later that fixes the issue :D

    • @fernandoespinaruiz7277
      @fernandoespinaruiz7277 Рік тому +2

      Thank you!!!

    • @PhilipLemon
      @PhilipLemon Рік тому +1

      @@fernandoespinaruiz7277 Legend!

    • @PormithipicusProductions
      @PormithipicusProductions Рік тому +1

      hey since you seem to understand how the E5 version would work, how do I add stuff at the user exposed, I found the tab thing but it doesn't have a + sign, thank you

    • @blobmon786
      @blobmon786 Рік тому +1

      @@PormithipicusProductions unfortunately I dunno how you'd fix that sorry

    • @PormithipicusProductions
      @PormithipicusProductions Рік тому

      @@blobmon786 that’s lol roght

  • @zwww_ee5235
    @zwww_ee5235 2 роки тому

    Why didn't I discover you sooner TvT Such clear explanation and awesome quality!! Can't wait to see more tutorials from you! Gonna binge watch your channel next semester break~!

  • @wii58739
    @wii58739 2 роки тому +1

    Really awesome, well paced tutorial dude!

  • @QWERTY-qh9po
    @QWERTY-qh9po 2 роки тому

    Thanks so much for this video! Great into to the niagera system and what it can be used for. Seems way more advance than the classic particle system i was using before.

  • @DavidGWilliams1981
    @DavidGWilliams1981 9 місяців тому

    Excellent tutorial, good speed, and mostly importantly, it actually worked, thanks so much!

  • @ReubenAStern
    @ReubenAStern 2 роки тому

    Thanks, I wanted a laser that actually acts like a laser. This niagara laser is way better than my previous one because it looked flat and didn't do as it was told. Your light sabre logic is cool too.

  • @vanityvoodoo969
    @vanityvoodoo969 2 роки тому +5

    Finally a Niagara video. Please do more since the only ones are really very minimal ones which you are then forced to join patreon to see the actual tutorial.

    • @DevEnabled
      @DevEnabled  2 роки тому +1

      I hope it was useful. This is part of a small Niagara playlist so you might want to check that out in the channel playlist section.

  • @alexandrm3073
    @alexandrm3073 2 роки тому

    Wow. Have been looking for such tutorial for a week by now. Thanks a lot!

    • @DevEnabled
      @DevEnabled  2 роки тому

      Happy to hear UA-cam revealed my channel to you after just a week of searching 😂

  • @etchasketch222
    @etchasketch222 2 роки тому +1

    Awesome tutorial. I needed this a few months ago! Looks great!

    • @DevEnabled
      @DevEnabled  2 роки тому

      Ah, sorry I was a little late. I usually get a comment saying I was looking for this today, but a few months ago is a bit late..

  • @rupeshmandke
    @rupeshmandke 2 роки тому

    Thanks for this. Very clean explanation.

  • @omerhatay2676
    @omerhatay2676 2 роки тому +1

    So simple and amazing. Thank You Dev Enabled.

  • @crs11becausecrs10wastaken
    @crs11becausecrs10wastaken 9 місяців тому

    excellent, you've earned my sub.

  • @zakariazeddam1438
    @zakariazeddam1438 2 роки тому

    it was really helpful thank you a lot

  • @faisalee
    @faisalee 2 роки тому

    This is awesome! 👍🏽

  • @lvl90dru1d
    @lvl90dru1d Рік тому

    Good job!

  • @picatsso6721
    @picatsso6721 Рік тому +1

    Distance and rotation. What I did: Beam Emitter Setup -> Absolute Beam Start(Check), Beam End (0, 0, 999999) (completely ignoring the variable). This gave me what I wanted - a straight laser beam. Changing other parameters in Beam End will give you different angle.

    • @picatsso6721
      @picatsso6721 Рік тому

      But the key thing is that it doesn't work with my volumetric fog. So fok it...

  • @GaryParkin
    @GaryParkin 2 роки тому

    Thank you so much for the video! Great into to the Niagara system. Can you please do more on Niagara?

  • @jacobtouchstone5280
    @jacobtouchstone5280 Рік тому +4

    For whatever reason my laser beam is going off at a 45 degree angle and refuses to work with the line trace. I got everything else working except that. Any idea whats wrong?

  • @pullsar7449
    @pullsar7449 2 роки тому

    Thanks!

  • @charliemason7085
    @charliemason7085 2 роки тому +1

    Very awesome video this helped me out big time with my uni course work, is there anything u would suggest to get this reflecting off items, I've managed to do it with a debug line but its a bit different with the beam?

  • @cyphermur9t
    @cyphermur9t 2 роки тому +2

    18:30 The LineTraceByChannel node doesn't have all those options on the right like 'Out Hit Blocking Hit', etc.. It just has 'Out Hit' & 'Return Value'. How did you get those? I'm using UE 4.26.2

    • @DevEnabled
      @DevEnabled  2 роки тому +5

      right-click on the out pin and select split

    • @cyphermur9t
      @cyphermur9t 2 роки тому +2

      @@DevEnabled thanks!

  • @antonr1194
    @antonr1194 Рік тому +1

    on 5.1 use NS insted of NE. It fixes the problem when you can't see the laser after adding the Beam Width and that you can't create user parameters

  • @ohtontheknight3879
    @ohtontheknight3879 Рік тому

    Now i can make my laser mines

  • @sebastianwest828
    @sebastianwest828 2 роки тому

    thx

  • @ztormsink5931
    @ztormsink5931 2 роки тому +1

    Good video and easy to follow.
    I'm wondering why the distance (float) does not work regardless of the number a put in and the laser disappear few second after from the world.

  • @valentindanclaude2209
    @valentindanclaude2209 2 роки тому

    Thank you for this great tutorial, it's easy to follow. Do you found out a solution, that the laser draws into a different direction editor/ingame?

    • @yuriychemezov
      @yuriychemezov 10 місяців тому

      Did you find answer to this problem?

  • @GameDevAraz
    @GameDevAraz 2 роки тому

    Hi Any Reason Why The Beams Would All of A Sudden Start Shooting Anywhere But The Point Of The Line Trace Profiles Impact? Thanks

  • @analysierer9456
    @analysierer9456 2 роки тому +1

    Thank you for the cool video to expose parameters in Niagara :-) If the laser moves very fast, then I have a 1-2 cm long lateral spread. I tried to set the lifetime in the Particle Spawn from 5 to 1, but that makes no difference. And I can't make the laserend smaller, I tried the Sphere Radius, can you give me a tip here?

  • @GoodguyGastly
    @GoodguyGastly 2 роки тому +1

    I cannot for the life of me figure out Niagra. I'm using UE5 and I even bought a preset lazer beam pack on the marketplace but cant get anything to show up. I get stuck around 3:00 in because I don't have the "view options" twirl down.
    Any help you can offer is awesome. thank you for the tutorial!

  • @jaxsun2924
    @jaxsun2924 2 роки тому +1

    Hi, great tutorial btw. But I cannot see my particle in preview window at all. how can I fix this? UE4.26 engine

  • @DronX_
    @DronX_ 2 роки тому

    Awesome.
    Is possible make a flocking system with Niagara? How difficult?

  • @stevenfodor3022
    @stevenfodor3022 2 роки тому

    Hello, i am curious on how it can interact with the player. i set it up the way you shown but my character can just run right through the laser.

  • @monkeyprime7193
    @monkeyprime7193 2 роки тому +1

    great video but how did u create the 'Distance Node'?

    • @LegitLord2000
      @LegitLord2000 2 роки тому

      Figured it out. When you do the Get Actor Forward Vector, do a Vector * Float node, and create your own Float variable and name it distance and plug it in and your good. Pretty much same with the trace end node.

  • @jh-lp7cg
    @jh-lp7cg 2 роки тому +1

    Hi, thank you for the tutorial. Do you have any idea why my sphere seems to be shooting a white laser 45 degrees off into the atmosphere while I'm in the editor, but when I play or simulate, the laser points in a completely other direction? I can understand the forward vector is the direction the laser fires, but I don't understand why there is one direction in the editor and another direction while playing.

    • @DevEnabled
      @DevEnabled  2 роки тому +1

      Hey, I think you can see that mine is doing the same thing at some point in the recording. So, I'm not 100% sure why it's starting off diagonally in the editor, I'd understand if it was a straight horizontal line as that would be (0,0,0). But in short, it's just because we've set direction to be based on an exposed variable which in the editor hasn't yet been set so it will choose a null or default value. Then remember we're setting this value only during play through our BP.

    • @jh-lp7cg
      @jh-lp7cg 2 роки тому

      @@DevEnabled Thank you.

    • @moutrave
      @moutrave 2 роки тому

      @@jh-lp7cg I've set the LAser beam end parameter to Absolute in the Niagara system and now the beam is not in the right direction in preview but it is when I simulate :D I'll keep digging as well. though this behavior corresponds to what's shown a bit later on the video

  • @oskartakac2305
    @oskartakac2305 2 роки тому +1

    How Im curios. Is posible to damge the player and little bit push him with this niagara system ? Thanks for answer

  • @aivsdeveloper
    @aivsdeveloper 2 роки тому

    @14:59, how did he get his Niagara Laser Impact variable to be a nice rectangle?

  • @RMC_
    @RMC_ 8 місяців тому +1

    how did you make the laser able to rotate with the blueprint? Mine is just stuck in the same direction even if I rotate the blueprint.. I went through the tutorial again but I can't see you mentioning it anywhere
    EDIT: I found the solution online. Check the 'Local Space' checkbox in the niagara system

  • @herodev7772
    @herodev7772 Рік тому +3

    Hey man thanks a lot for the tutorial!
    I have the particle system working but i have one issue. I am using it as a laser sight, and when my character moves, the laser jitters and shakes horribly. It's like it has trouble remaining in position. It is even worse when the character jumps. Any idea how to fix this, so the laser stays in position smoothly?

    • @blobmon786
      @blobmon786 Рік тому

      Hey, did you find a fix for this in the end? :D

    • @Frog423
      @Frog423 11 місяців тому

      I've also got this same problem, have you found a fix yet?

  • @frenchoism
    @frenchoism Місяць тому

    I've been having issues on how to add damage on laser collision. Niagara does not have event hits on collisions so it seems lime is not possible to do with Niagara but it needs to be hacked somehow. Any ideas?

  • @henryqprodllc
    @henryqprodllc Рік тому

    How can you add this to animate in Sequencer for UE5?

  • @speedistic899
    @speedistic899 Рік тому

    is it possible to check if this laser collides with a player?

  • @QWERTY-qh9po
    @QWERTY-qh9po 2 роки тому

    Quick Question in regards to this... so the laser color changes but over the course of a second it whites out and looses color. Any idea why or where to look?

    • @danielnewman1350
      @danielnewman1350 2 роки тому +1

      If you look at the particle count in the preview you'll see that the way he set it up is that he is spawning a bunch of lasers over top of on another. So with the additive material it will change to white after enough layers of particles stack on each other.
      So to fix that go to Emitter State and change Loop behavior to "Once" and Loop duration to "Infinite"
      then in particle update there's a setting to 'let infinitely lived particles die when emitter deactivates'
      So now you're only dealing with one laser beam and you can adjust the color in the blueprint.

    • @QWERTY-qh9po
      @QWERTY-qh9po 2 роки тому

      @@danielnewman1350 Thanks for your response

  • @Entolyfik
    @Entolyfik 4 місяці тому

    Where did he get the TraceByLineChannel setup? (I'm using UE 4.27. I know blueprint settings have been changed since the making of this video). I tried to make it myself, and I cannot get the multi and add floats to connect (vector to float), and that little pin that is off to the bottom, what is that?! I can't even continue, and I want to so bad...how do I get unstuck?

  • @liamnelson95TTV
    @liamnelson95TTV Рік тому

    How could i change the brightness of the laser?

  • @RichardRiegel
    @RichardRiegel 2 роки тому

    Hi all.. what kind of node is that 'distance' named.... (that black node below the two greens) ...in 16:15? I can't find it from options :/

    • @sandras8339
      @sandras8339 2 роки тому +3

      Drag a wire from the B (green circle) and select "Promote to variable" in the dropdown menu. That creates a new variable which you then rename to "Distance". To rename it, go to the "My Blueprints" tab on the left, under "Variables", find the one just created, select it, press F2 and rename it.

    • @RichardRiegel
      @RichardRiegel 2 роки тому +1

      ​@@sandras8339 oh, thank you :)

  • @SuperlativeCG
    @SuperlativeCG Рік тому

    How do you make it so that it only start shooting the laser when you press a key and make it stop when you press the key again?

    • @SuperlativeCG
      @SuperlativeCG Рік тому

      I figured out how to get it to turn on and off with the press of a key but now when I attach the laser niagara system to an eye socket of a 3rd person character, it shoots straight down to the ground but then rotates up 90 degrees to the same direction of where the eyes are looking which is straight forward. Why is this happening?

    • @SuperlativeCG
      @SuperlativeCG Рік тому +1

      OK. I figured out why it's doing that. Apparently, the line trace is starting from the hip.

  • @Immortal_BP
    @Immortal_BP Рік тому +1

    none of the parameters worked, like "laserend" or "color", in the details menu it says "override parameters" and when i change the color there then it changes the beams color, same with laserend. im using 5.0.1

  • @kiseli666
    @kiseli666 10 місяців тому

    Mi colour is always plain white no meter what I do and what color I put in variable. How did you get that nice glowing color? UE 5.2

    • @4ndr3wR
      @4ndr3wR 3 місяці тому +1

      Check Spelling because it has to be perfect. Make sure you set up Color in begin play and choose the color there - try with both and then with them alone and should get both to work. Make sure you chose niagra systems when attaching them to the target in setting color. Make sure they are systems

  • @mbarker_lng
    @mbarker_lng Рік тому +1

    Tried this twice in UE 5.03 and nothing. :/ Unsure why.

  • @robertbowen2075
    @robertbowen2075 Місяць тому

    Your laser beam is generating light and looks thick and full. I appreciate this video is old but I made a laser with the same settings and it doesn't look like that.

  • @meliodas2177
    @meliodas2177 2 місяці тому

    running in a whole lot of trouble at the nodes part because in unreal 5 the nodes are totally diffrent.

  • @faddlewaddle2615
    @faddlewaddle2615 Рік тому

    Trying to follow through on Unreal 5.1 and that "User Exposed" doesn't allow me to add anything in there. 😞
    It's at that point in the tute that I'd given up.

    • @KazukiP
      @KazukiP 4 місяці тому

      I think I worked out how to solve this. In Unreal 5, you can only do this on Niagra Systems, which are the things that hold the emitter. Think of it like a painting and a canvas. We are using a Niagra Emitter and we need our canvas to show our painting on. In the explorer, right click on your Niagra emitter and select "create Niagra system" (shown at 7:48) you can then open this and you will be allowed to add user exposed parameters here instead!

  • @PhilipLemon
    @PhilipLemon Рік тому

    In UE 5.1 there is no User Exposed parameters showing as they are in 6:18.

    • @KazukiP
      @KazukiP 4 місяці тому

      yes also stuck on this!

    • @KazukiP
      @KazukiP 4 місяці тому

      I think I worked out how to solve this. In Unreal 5, you can only do this on Niagra Systems, which are the things that hold the emitter. Think of it like a painting and a canvas. We are using a Niagra Emitter and we need our canvas to show our painting on. In the explorer, right click on your Niagra emitter and select "create Niagra system" (shown at 7:48) you can then open this and you will be allowed to add user exposed parameters here instead!

  • @mo-dev
    @mo-dev Рік тому

    apart from the beutiful tutorial, how come your Ue4 looks like Ue5 with the blueprints and such?

    • @DevEnabled
      @DevEnabled  Рік тому

      flattery will get you answers. Google Minimal UI for UE4. It should be one of the first git repositories.

    • @mo-dev
      @mo-dev Рік тому

      @@DevEnabled Amazing! Thank u!

  • @SAYRESS
    @SAYRESS Рік тому +1

    well, my LIneTraceByChannel doest have same pins...

    • @SAYRESS
      @SAYRESS Рік тому +1

      so if someone have the same problem - just right click pins from right side and you will find a way.

  • @Dragonuc
    @Dragonuc 2 роки тому

    Hello Sir I Need Your Help in Unreal Engine 4

  • @LegitLord2000
    @LegitLord2000 2 роки тому

    Tried to use a color curve to have multiple colors and screwed myself lol Idk why it won't work omnaggashdfgasdhfgvd I missed the most important step. Setting the color parameter, i'm like omg hours of work and my laser is invisible and won't work

  • @iliasiosifidis4532
    @iliasiosifidis4532 9 місяців тому

    cant find the "logic" that you copy pasted, also cant make the laser turn like in the intro

  • @pawnix4122
    @pawnix4122 Рік тому

    Doesn't work for UE 4.27.2. RIP

  • @HasimFN
    @HasimFN 9 місяців тому

    youre voice is really low

  • @Zero_hk
    @Zero_hk Рік тому

    is there anyway the end of the laser be a simple dot?