Unity VFX Graph - Electric Arc Tutorial

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 84

  • @GabrielAguiarProd
    @GabrielAguiarProd  2 года назад +1

    Such a cool way of creating an Electricity Arc!
    Made it available in the Asset Store btw: assetstore.unity.com/packages/slug/222981?aid=1100l3Jhu
    Got a new VFX Graph course btw: www.udemy.com/course/unity-vfx-graph-thunderlord-magic-effects/?couponCode=29.99_UNTIL_20-09

  • @guitarbuddha74
    @guitarbuddha74 2 года назад +80

    I was trying this in URP. I know it's experimental but just for reference I had to enable Edit > Preferences > Visual Effects and enable Experimental Operators/Blocks. That allowed me to add the set custom attribute.

    • @KDSBestGameDev
      @KDSBestGameDev 2 года назад

      thank you

    • @christa23
      @christa23 2 года назад

      thanks,it's useful

    • @schneeritterstudios2648
      @schneeritterstudios2648 2 года назад

      Thanks!

    • @AlexanderEndless
      @AlexanderEndless 2 года назад

      Thank you so much. That was giving me trouble.

    • @drew0001807
      @drew0001807 Год назад

      Pal, thank you for your comment! This feature also enables to set ParticleStrip to Initialize Particle. I was soo frustrated before I found your comment! You've made my day )) Have a good one as well! ))

  • @EDGARMANUELNOVASPANIAGUAB-TSDV
    @EDGARMANUELNOVASPANIAGUAB-TSDV 2 года назад +22

    If anyone cant make the step of 2:22 u need to go to edit -> preferences -> visual Efects -> enable experimental / operator blocks -> restart Unity and that should do it

  • @devdelirium6359
    @devdelirium6359 2 года назад +5

    These videos give me extreme Brackeys vibes! Love it!

  • @XcutAngel
    @XcutAngel 2 года назад +1

    I used a method like this for my lasso character a few months back. There are things about it I'd like to change, but that's just game design lol. great tut!

  • @devbobcz
    @devbobcz 6 месяцев назад +2

    One small adition for this great tutorial :
    "Set custom attribute" block in VFX graph is disabled, you must enable it in Preferences->VisualEffects->Experimental Operators/Blocks.

  • @algorithmia196
    @algorithmia196 Год назад +1

    a huge fan of you Gabriel

  • @ธีรวัฒน์ทิพย์สุนทรพงษ์

    earned a sub literally the best kid ever

  • @beardyhogg
    @beardyhogg 2 месяца назад +1

    This is great. I've used it to create an arc, im trying to get my game to update the Pos values so that it can zap from an orbiting weapon to things that come near it. but all i am getting is the set bezier appearing in a fixed position on the map. what am i doing wrong?

  • @AspiringHeroGames
    @AspiringHeroGames 2 года назад +1

    This is awesome! I made one like this, so it'll be cool to update it with what you've shared here!

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад +1

      Sounds great! Just a quick heads-up this method is for VFX Graph only.

  • @brandonjacksoon
    @brandonjacksoon 2 года назад +2

    Awesome tutorial! Thanks man!

  • @ajithraj1206
    @ajithraj1206 Год назад +1

    How can we make this using particle effect????

  • @wolfeygamedev1688
    @wolfeygamedev1688 2 года назад +2

    Thanks much gabriel!

  • @JV-cz7db
    @JV-cz7db Год назад +1

    Ty for awesome video, worked perfectly for me! How would you go about making an object, a turret for example, continusly shoot that electric arc at enemies.

  • @benjaminswee-shaders
    @benjaminswee-shaders 2 года назад +1

    Great tutorial

  • @Schawder_Dev
    @Schawder_Dev Год назад +1

    God bless you! Amazing videos!

  • @rodbot
    @rodbot 2 года назад +4

    Hey Gabriel, great tutorial. How would I make the arc "travel" from position 1 to position 4 instead of lasting forever? I'm using this effect for a chain lightning attack, so the arc needs to dissipate after a little bit.

  • @zosiaczarnik781
    @zosiaczarnik781 6 месяцев назад

    Even if I change texture to "Default - ParticleSystem", electric arc is still disconnected from the first and last Pos objects. How can I fix that?

  • @UrbanArT69
    @UrbanArT69 2 года назад +5

    Amazing tutorial, Gabriel! Got some inspiration from this and made my own, and the amount of power I feel with lightning arcs coming out of my vr hands is undescribable lmao.
    By the way, any chance for a VFX Graph mirror? Is that even a thing? Or would it be more of a Shader graph thing?

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад +2

      Aw men in VR this must be super cool indeed :D
      Yeah that would a Shader, mirrors in reality are just an highly reflective surface. I'm sure you can find a tutorial around. Good luck!

  • @wye43
    @wye43 Год назад +3

    I tried with Unity 2020.3.25f1 and 2020.3.48f1, and there are some blocking issues:
    1. Default Visual Effect does not show anything in the Scene window.
    2. There is no Bounds mode in Initialize Particle
    3. There is no "Set Custom Attribute" in Initialize particle blocks list to be added
    Which version of unity does your tutorial require?

    • @NIKUNJ-vk2zo
      @NIKUNJ-vk2zo Месяц назад

      you need to go to edit -> preferences -> visual Efects -> enable experimental / operator blocks and restart unity

  • @kotkotow9128
    @kotkotow9128 2 года назад +2

    Oh man Its awesome, good job, keep going :D, btw in your Pateron u have more stuff with those kind of magic tricks ? or every trick is hiding behind vfx documenation and your imagination :D ?

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад +1

      On Patreon there's a lot of content, all the tutorials/videos shown here are also there. There's also unique packages of projectiles, AoE, lasers, etc. So yes there's a lot of magic tricks ;)

  • @MrFlashPash
    @MrFlashPash Год назад

    How can i modify the Bezier like yours, Mine is thicc in the middle but on the outside its just transparent i would love to create a thunderbolt with it

  • @enterlucent
    @enterlucent 2 года назад +1

    Thanks for sharing!

  • @chaostellar
    @chaostellar 2 года назад +1

    amazing stuff

  • @rajathb9130
    @rajathb9130 2 года назад +2

    Hey man, love your stuff, been using your tutorials for building my own game. I was wondering if you could take a crack at how the shield effect is done in Halo Infinite, seems like a cool feature to break down

  • @ComfortZoneGames
    @ComfortZoneGames 2 года назад +1

    Very cool!

  • @Volfox248
    @Volfox248 Год назад +1

    Thank you for your tutorial. I love all of them. How would you go about adjusting the size based on the curve so that it tapers at the ends?

    • @GabrielAguiarProd
      @GabrielAguiarProd  Год назад

      This is all very theoretical, as I'm not near my workstation now. But it probably needs to be based on the last point of the Bezier curve, and on that last point something will happen, like for example, the size will be smaller.
      It ain't much, but hope it helps point you in the right direction.

  • @eldar7964
    @eldar7964 2 года назад

    Looks really cool. Ty!

  • @beratcimen1954
    @beratcimen1954 2 года назад

    A Lightning Trail tutorial like The Flash's would be awesome!

  • @NoReason1111
    @NoReason1111 2 года назад

    "Set Custom Attribute" not getting it ... even after I checked the box in Edit>Preferences>Visual Effects>Experimental Operators/Blocks

  • @nhdeitmers
    @nhdeitmers 8 месяцев назад

    Thank you for this great tutorial! Much appreciated, I learned a lot from it!
    In my particular test scene I have an issue with the VFX disappearing from scene view at certain camera angles. It seems to be very sensitive to clipping in a way that other VFX are not. Zooming out solves the issue.
    Would there be a workaround to get consistent results from close up?

  • @jasonwilliams8730
    @jasonwilliams8730 2 года назад +1

    Nice!

  • @dhruvinchikhaliya
    @dhruvinchikhaliya 2 года назад

    VFX graph not updating when changing values in graph always have to press compile to update the effect. any idea how to solve it?

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      Yes I had that bug too. I noticed it in a few Unity versions but then, they fixed it in newer ones. It's a Unity bug, and an annoying one. But yeah, in newer versions it's fixed. :)

  • @ScientObject40
    @ScientObject40 2 года назад +1

    Thank you so much !

  • @zoezhang4705
    @zoezhang4705 2 года назад

    I was trying this in URP and have already enabled Visual Effects and enable Experimental Operators/Blocks. But I am missing single burst and a bunch of other functions.... any idea how to fix this?

    • @oldcat1790
      @oldcat1790 Год назад

      You prolly have old version of Unity.

  • @fosgamedev7780
    @fosgamedev7780 2 года назад

    Do you know how to make this effect seen in any direction?

    • @JadenGoter
      @JadenGoter 2 года назад +3

      Add a "Orient: Face Camera Position" block at the end of the "Output ParticleStrip Quad" section

  • @wasteurtime5677
    @wasteurtime5677 2 года назад

    I don't remember "Set Custom Attribute" available node? What version of vfxgraph is this?

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад +1

      Make sure to turn on Edit>Preferences>Visual Effects>Experimental Operators/Blocks

  • @suicune2001
    @suicune2001 2 года назад +1

    Ooooo, thanks!

  • @Relativ9
    @Relativ9 Год назад

    Great Tutorial,
    I've been trying to make a energy beam that uses this tutorial as a basis as I want it it curve between two points and have noise, but I also want it to appear sort of like the stylized laser you've made in another tutorial. I've got it working almost perfectly but I have one small issue, since the orient node doesn't work with the particle strip output, I'm having an issue where I am struggling to add "volume" to the beam by either angling multiple copies of it in a cross pattern or making it always face the camera (it's being fired in first person from a gunTip transform). Any idea how I can make it appear so it's not just a single "plane" stretching outwards?

    • @Relativ9
      @Relativ9 Год назад

      To those with a similar issue; a workaround is just to create two empty game objects instead of one with the visual effect on it, and then just rotate one 90 degrees on the z axis and fire them both otherwise identically. But I'm pretty sure there must be a way to have two identical particle systems within the same graph and just set the rotation there, but I can't seem to find it.

  • @nazarremerchant
    @nazarremerchant 2 года назад

    Great video! One question, how do you get the arc to have a more uniform thickness throughout? Mine taper out to nothing right before the first and last bezier points, making it look like the lightning doesn't connect to the end points. Yours clearly connect -- any suggestions on this? Thanks!

    • @nazarremerchant
      @nazarremerchant 2 года назад

      Found where you answer this in the video by setting the particle to something else which changes the endpoint behavior!

  • @olegvaganov8733
    @olegvaganov8733 2 года назад

    Gabriel, another awesome lesson ofc. But how to stop this ligthing unstoppable force? :D
    It's just infitine

  • @lilliiliilil
    @lilliiliilil 2 года назад +1

    thank you for awesome video!
    i have a question, this effect works on mobile? (especially android)

    • @GabrielAguiarProd
      @GabrielAguiarProd  2 года назад

      VFX Graph only works on mobile capable of Compute Shaders. Basically only on top tier mobiles for example.

    • @lilliiliilil
      @lilliiliilil 2 года назад

      @@GabrielAguiarProd thank you for your answer!

  • @gameingwithrage5731
    @gameingwithrage5731 2 года назад

    How about sasuke sussano man please

  • @joziermaster3269
    @joziermaster3269 2 года назад

    Ummmmm I had no clue Gabriel was so hawwwt

  • @olegvaganov8733
    @olegvaganov8733 2 года назад

    I find a solution to stop your arc. Script with destroying Gameobject. Not very easy and smooth, like setting lifetime in legacy particle system, but it works :D

  • @TheGameLecturer
    @TheGameLecturer 5 месяцев назад

    Message in a bottle:
    If anybody can help me, I'm trying to play with the direction of sparkles. Using the "Direction Blend" factor of the "Set Velocity from Direction & Speed (Spherical) component, I can get it to sparkle more or less in the direction of the arc but that's all I can do.
    My goal is to make it do the exact opposite of setting that slider to .5f, I want to make it sparkle in the opposite direction only.