Unity 2D Water Tutorial in 100 Seconds (Dynamic Waves + Reflection Shader)

In this tutorial you'll learn how to add beautiful 2D water to your game! Simply download the 2d water system package and import all the assets. Then follow the tutorial for more details on how to use it.
Download the FREE 2D Water System Package + Other FREE Assets here:
bit.ly/free-game-dev-assets
If you get stuck, you can ask for help on our discord server! Join through this link:
/ discord
Here is the link to the 2D Dust effect tutorial mentioned in the video:
• Plug & Play DUST TRAIL...
-------------------------
This package would not be possible without the following tutorials that I watched while researching this...
The reflection was inspired by these tutorial videos:
2D Water Reflection Shader Graph - Easy Unity Tutorial - Binary Lunar:
• 2D Water Reflection Sh...
2D Water Shader in Unity - gamesplusjames
• 2D Water Shader in Unity
The dynamic ripples are inspired by these tutorial videos:
Creating a Bubbly Pixel Art Acid Pool in Unity - AdamCYounis
• Creating a Bubbly Pixe...
2D Water Tutorial with Sprite Shape in Unity - Memory Leak
• 2D Water Tutorial with...

Пікірлер: 81

  • @muhammadzubairirshad6724
    @muhammadzubairirshad67246 ай бұрын

    in 2024 I found amazing content creator channel thank you soo much

  • @yashmalhotra123
    @yashmalhotra1239 ай бұрын

    This is a great package. Would love to use it someday for one of my platformers.

  • @raycastly

    @raycastly

    9 ай бұрын

    Thank you for the kind words. I'm glad you like it and I hope you do!:)

  • @abraao666
    @abraao666Ай бұрын

    Dude, you're an unity master.

  • @eccentricstylist
    @eccentricstylist7 ай бұрын

    Amazing stuff! This will be a great time-saver, thank you so much!! :))

  • @raycastly

    @raycastly

    7 ай бұрын

    Glad it was helpful!:D

  • @eccentricstylist

    @eccentricstylist

    7 ай бұрын

    @@raycastly Very much so!! :) Also emailed you regarding a specific question if that is ok! :)

  • @emanueljonathanugartemerid7630
    @emanueljonathanugartemerid76308 ай бұрын

    ty dude, me sirviómuchísimo, excelente!

  • @seaderwerks3046
    @seaderwerks30468 ай бұрын

    I've recently come across your channel, and subbed based on how you explain your code in other videos like player attack & the dialogue system. I'd love to see you explain in depth how you did this. At least the basic form, without the reflective. I've searched and other tutorials while okay still leave me with questions along the way. Hope you consider making a tutorial on it because honestly there aren't a lot out there for a water system like this.

  • @raycastly

    @raycastly

    8 ай бұрын

    Hey! Thanks for the kind words! I will definitely consider coming back to this topic once my editing skills improve a bit and I can explain it well:D I would like to tackle more complex topics like this one in more detail very soon!

  • @seaderwerks3046

    @seaderwerks3046

    8 ай бұрын

    The way I see it, you'd have an advantage in the video space, if you search youtube for "2d water tutorial" there isn't a really solid video other than one that just mimics the camera view to make it look like 'reflecting' water. the other videos you'll find, are just people linking their store page to buy the asset. there is a good one based off of the spring system, but honestly the way the video is structured, it isn't easy to follow (at least for me) and it still doesn't have the same outcome. The water you show here is basically what everyone pictures when they think '2D water' Might give your channel the advantage. idk. just talking out my ass here. I gave up trying to find a water system with springs, or even building my own and just animated my water. (looks like hammered dog shit btw, but still better than staying up until 4 am pulling out my hair wondering why my springs are all reacting the same lol. @@raycastly

  • @shahzaybzain163
    @shahzaybzain1632 ай бұрын

    Thank you. You earned a sub :)

  • @user-by6tv7ht3d
    @user-by6tv7ht3d6 ай бұрын

    Amazing work, thanks!

  • @raycastly

    @raycastly

    6 ай бұрын

    Glad you like it!:D

  • @user-by6tv7ht3d

    @user-by6tv7ht3d

    6 ай бұрын

    @@raycastly But I have a problem, I have 2 reflective water in scene and they use same camera. How I fix it?

  • @raycastly

    @raycastly

    6 ай бұрын

    @@user-by6tv7ht3d I think you just need to create a separate render texture for each one and assign it to the respective water. If you get stuck, just write on discord help channel:)

  • @user-hf5ud9gi4q
    @user-hf5ud9gi4q6 ай бұрын

    oh,no!I am a beginner of unity.I drag the WaterSimple to the scene.But it's not water,It's just a purple rectangle.The first time I watched your video, I only downloaded the package at the beginning.Where is the problem?

  • @gatrxo7224

    @gatrxo7224

    4 ай бұрын

    You have to install universal render pipeline on the project, make sure to turn the project graphics into universal render pipeline graphics

  • @vand888
    @vand8888 ай бұрын

    Nice

  • @NikitaValeyev
    @NikitaValeyev5 ай бұрын

    Hi, for some reason, when opening a file, unity hub opens, unity itself and just nothing happens. Version 2022.1.24f1

  • @romarinoff5343
    @romarinoff53433 ай бұрын

    that work ! but when i add one more " realistic water "on the scene, the reflection of the second one are the same that the first one ! why ???

  • @DANTENLEE
    @DANTENLEE2 ай бұрын

    Getting Error: Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) The following scene GameObjects were found: Splash(Clone) when scene reloaded or game mode end

  • @Sh4dex
    @Sh4dex8 ай бұрын

    Awesome job, man. But i have a problem ... with the simplest water model, the splash particles are being displayed with a pink color, I think that there is a problem with the material but I can't solve it yet. TY

  • @raycastly

    @raycastly

    8 ай бұрын

    Yeah, when you see a pink material it's usually a material or shader problem. Have you tried replacing the material with a new one? Or maybe you can try and find the option to "Upgrade Selected Materials to URP Materials" or something like that. You select the material and then go to Edit and then find this option. Let me know if that helps, also you can join our discord and send some screenshots and I can help you there!:)

  • @Golukumawat-ui4mz
    @Golukumawat-ui4mz6 ай бұрын

    bro thanku for this but it working in unity 2d but not working in my mobile when i am buliding it .....why bro please reply mee???????????????

  • @wahhaab7
    @wahhaab74 ай бұрын

    How to import the package?

  • @SAJJAD-dh3xp
    @SAJJAD-dh3xp4 ай бұрын

    why mine in pink?

  • @xanalia1530
    @xanalia15306 ай бұрын

    Great job, man. But i have a problem ... with player jumping while in water

  • @rohitshinde5966
    @rohitshinde59669 ай бұрын

    Thanks❤ ....can you make next totorial or package on 2d waterfall please....🎉😽

  • @raycastly

    @raycastly

    9 ай бұрын

    Hey! That's a great idea, I put it on my list and will definitely make it soon!

  • @futurekip9590
    @futurekip95908 ай бұрын

    Very nice package but i have a problem the simple water is more black then blue in my scene and i dont know how to fix it do you have a solution?

  • @raycastly

    @raycastly

    8 ай бұрын

    Hello, thanks! Hmm it's hard to tell what the problem is, I need more information. Are you using any light sources? Maybe you can send some screenshots over on our discord and I can see if I can help!

  • @futurekip9590

    @futurekip9590

    8 ай бұрын

    @@raycastly I already solved and it works now but thanks for the reaction!

  • @broty9692
    @broty96928 ай бұрын

    Hello thanks for such a great pack i have a problem with it tho my water appears as pink how could i fix that

  • @raycastly

    @raycastly

    8 ай бұрын

    Hi! If you haven't already, feel free to join our discord server and I can help you out there, it's easier to communicate:)

  • @sogyshorts5662

    @sogyshorts5662

    5 ай бұрын

    same

  • @swiftcreations
    @swiftcreations8 ай бұрын

    This seems too good to be true, what are these licensed under? Am I allowed to use these commercially?

  • @raycastly

    @raycastly

    8 ай бұрын

    That's a good question! Yes, you can use it commercially or however you want; you also don't need to credit me. I think that formally this would fall under Creative Commons CC0 license.

  • @-EE-Rajeewa
    @-EE-Rajeewa7 ай бұрын

    Can we use these assets for a commercial project or is there a copyright issue?

  • @raycastly

    @raycastly

    7 ай бұрын

    Yes, you can use them in your commercial games:)

  • @angiebui5751
    @angiebui57513 ай бұрын

    The link to the free download doesn't work.

  • @MaxTasker_
    @MaxTasker_6 ай бұрын

    I'm using a perspective camera for my 2d game and all the reflections are broken because they use an orthographic camera, do you know how to fix it?

  • @raycastly

    @raycastly

    6 ай бұрын

    Hey! So under the reflective water just change the camera to perspective, it should work fine, and adjust the position on the z axis etc..

  • @MaxTasker_

    @MaxTasker_

    6 ай бұрын

    @@raycastly Appreciate the response, ive already tried switching it to perspective and it doesnt work because the position of the main camera is different to the child camera of the water, if you can id appreciate you trying this out and seeing if theres a workaround since i cannot seem to find a fix.

  • @Lajlaj

    @Lajlaj

    5 ай бұрын

    I am using a perspective camera aswell, but I am not having any issues with it though. It works fine for me.@@MaxTasker_

  • @EtileV
    @EtileV2 ай бұрын

    Hello I know this video is a bit old but everything is working just fine however My player will not float or anything in the water could someone help?

  • @suyogmainali4360

    @suyogmainali4360

    Ай бұрын

    Did you solve it ?

  • @raycastly

    @raycastly

    Ай бұрын

    Most likely the buoyancy component is not set up to recognize the player layer

  • @devinsyafa4582
    @devinsyafa4582Ай бұрын

    i got a problem when build the project, it because the unity editor from this script, any idea how to fix it?

  • @febriangiovanni9218

    @febriangiovanni9218

    23 күн бұрын

    do u get the solution?

  • @raycastly

    @raycastly

    21 күн бұрын

    on my discord server there is a forum with solution :/ I never got around to fixing that issue, you just need to add #editor preprocessors @febriangiovanni9218 @devinsyafa4582

  • @febriangiovanni9218

    @febriangiovanni9218

    19 күн бұрын

    @@raycastly thankyou, i already fix the issue

  • @whitedeath5057
    @whitedeath50578 ай бұрын

    Can you make an in depth guide on how to make this in the first place?

  • @raycastly

    @raycastly

    8 ай бұрын

    Thanks for the idea! I will definitely consider doing it. I am planning on making more in depth tutorials in the future. Although I think there are a few other tutorials out there that do a good job already on this topic (but they use different techniques which I think might be less performant like sprite shapes). You can find some of those tutorials I used for inspiration in the description.

  • @joaocarlosp.p.6550
    @joaocarlosp.p.65509 ай бұрын

    Thanks for the tutorial. Please, how to make a URP shader for distorted 2D water or caustics, the tutorials I see only work in 3D scenes, but I just need a 2D scene from 2D lights, and the tutorials don't work for me in 2D scenes. Can you make a tutorial on this if you know how to use shaders?!

  • @raycastly

    @raycastly

    9 ай бұрын

    Hello, I would like to look into this and maybe make a tutorial if I can. Could you explain a bit more exactly what you are looking for? Maybe join our discord server, it's easier to communicate there.

  • @joaocarlosp.p.6550

    @joaocarlosp.p.6550

    9 ай бұрын

    @@raycastly I explained what I wanted on discord, if I couldn't, that's okay.

  • @user-wp6fw7jc3m
    @user-wp6fw7jc3m8 ай бұрын

    Thank you for the package! But water is pink( How i can fix it?

  • @raycastly

    @raycastly

    7 ай бұрын

    Sorry for the late reply! You need URP installed on your project for the materials to compile properly.

  • @blameyourm8519
    @blameyourm85199 ай бұрын

    The water is more bouncy than wavy, the rest of the scene looks amazing tho

  • @raycastly

    @raycastly

    9 ай бұрын

    Thanks for the feedback, glad you like it! There are a lot of settings that can be tweaked to make it look more wavy too:)

  • @Starlight-vc9mc
    @Starlight-vc9mc8 ай бұрын

    Would this work with URP ?

  • @raycastly

    @raycastly

    8 ай бұрын

    I was using URP, so I think the answer is yes. If you encounter any problems just let me know and I'll do my best to help!:)

  • @Starlight-vc9mc

    @Starlight-vc9mc

    8 ай бұрын

    @@raycastly my problem now is that the waves doesn't seem to show when i expand it horizontally or increase its resolution

  • @raycastly

    @raycastly

    8 ай бұрын

    Maybe it's best to join our discord and send some screenshots or screen recording so I can help!

  • @blendersoy
    @blendersoy7 ай бұрын

    here dont work your links fore download !

  • @raycastly

    @raycastly

    7 ай бұрын

    Which links exactly? I just clicked the link in the description, and it works?

  • @blendersoy

    @blendersoy

    7 ай бұрын

    i think is my pc, others link is the same, and i dont know why@@raycastly

  • @Slagemer1

    @Slagemer1

    7 ай бұрын

    I used VPN and it worked for some reason, after I got email with new link it opened only with disabled vpn

  • @blendersoy

    @blendersoy

    7 ай бұрын

    @@Slagemer1 yes bro i used tor in brave for the download i dont know why the ip dont let me open in normal browser

  • @raycastly

    @raycastly

    7 ай бұрын

    @@Slagemer1 @darksephiroth98 @blendersoy Wow.. that's really weird... I will definitely look into the problem, sorry for the inconvenience guys! Thank you all for the information it helps pinpoint the issue! There will be a new better website soon

  • @mahmoudkebbi
    @mahmoudkebbi3 ай бұрын

    Are these free for me to use in a commercial product?

  • @raycastly

    @raycastly

    3 ай бұрын

    Absolutely, 100% free!:)

  • @user-nb7sx3he7t
    @user-nb7sx3he7t3 күн бұрын

    I'm creating on Mac and the package didn't work 😭

  • @user-nb7sx3he7t

    @user-nb7sx3he7t

    3 күн бұрын

    Sorry it works !!!

  • @SaijeMage
    @SaijeMage6 ай бұрын

    how come you dont put these on the unity store? that email sign up feels like phishing

  • @Golukumawat-ui4mz
    @Golukumawat-ui4mz7 ай бұрын

    bro can i use it to my mobile game???? i cam going to publish it on playstore plsss bro??? bro when i am increasing the num spring then it showing .... IndexOutOfRangeException: Index was outside the bounds of the array.

  • @raycastly

    @raycastly

    7 ай бұрын

    Of course! Use it wherever you want and however you want:) It's probably best to join our discord and send a screenshot so I can take a closer look at the problem.

  • @AKASHVERMA-fz8tt
    @AKASHVERMA-fz8tt6 ай бұрын

    Getting Error: Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) The following scene GameObjects were found: Splash(Clone) when scene reloaded or game mode end

  • @rodrigoalves8440

    @rodrigoalves8440

    3 ай бұрын

    i'm having the same issue. Did you figured out the cause?

  • @DANTENLEE

    @DANTENLEE

    2 ай бұрын

    Temporary fix, On the Water Script, Disable the OntriggerExit2D function.