Тёмный

How to use Unity Animation Curves (NOT JUST ANIMATION!) 

Code Monkey
Подписаться 530 тыс.
Просмотров 60 тыс.
50% 1

✅ Get the Project files and Utilities at unitycodemonkey.com/video.php...
Let's learn the Awesome power of Animation Curves and how they can be used in tons of scenarios! 👇
❤️ Watch my FREE Complete Course • Learn Unity Beginner/I...
🌍 Get my Complete Courses! ✅ unitycodemonkey.com/courses
👍 Learn to make awesome games step-by-step from start to finish.
Character Controller in Unity 2D! (Move, Roll, Dodge, Dash)
• Character Controller i...
Level System in Unity
• How to make a Level Sy...
How to make Damage Popup Text (Unity Tutorial)
• POLISH your Game with ...
How to make a Health System
• How to make a Health S...
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!
✅ store.steampowered.com/app/12...
If you have any questions post them in the comments and I'll do my best to answer them.
🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
See you next time!
📍 Support on Patreon / unitycodemonkey
🤖 Join the Community Discord / discord
📦 Grab the Game Bundle at unitycodemonkey.com/gameBundl...
📝 Get the Code Monkey Utilities at unitycodemonkey.com/utils.php
#unitytutorial #unity3d #unity2d
--------------------------------------------------------------------
Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.
I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Website: unitycodemonkey.com/
- Twitter: / unitycodemonkey
- Facebook: / unitycodemonkey

Опубликовано:

 

12 окт 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 80   
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
🌐 Have you found the videos Helpful and Valuable? ❤️ Get my Courses unitycodemonkey.com/courses or Support on Patreon www.patreon.com/unitycodemonkey
@Khoura
@Khoura 3 года назад
Just got your course, it was awesome! Definitely going to buy more if you make them.
@viceroy___
@viceroy___ 3 года назад
I use AnimationCurves to simulate climate, average temperatures over the year, moon phases, wind strength, blending and even keyframing the generated weather to vary rain and wind. Then I use this info to calculate dewpoint and evaluate that combined with our temperature and humidity to determine fog. AnimationCurves are awesome indeed.
@mahmutucak2293
@mahmutucak2293 3 года назад
i was about to say recently i have used curves to make a blinking star effect simply by changing its size .i was really proud tough but then i see you simulate conditions of an entire planet.
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Yup, tons of awesome use cases!
@Prakaz
@Prakaz 3 года назад
Not sure if sarcasm or real comment 🤔
@stevenbraun918
@stevenbraun918 3 года назад
@@mahmutucak2293 :D :D
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
💬 Animation Curves are Awesome! Did you know you could use them for just about anything?
@MrCaptainbirdman
@MrCaptainbirdman 3 года назад
I love how I can search 90% of unity 2d topics and Code Monkey is always there to give an informative and practical video that explains such topics :D
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Heh yeah my goal is to cover just about every topic imaginable! Already made 400 videos, it will be over 1000 in a few years!
@J3R3MI6
@J3R3MI6 Год назад
@@CodeMonkeyUnity absolute legend in the game dev community 🏆✨
@rezaanataj6978
@rezaanataj6978 3 года назад
I didn't expect animation curve to be this much useful I'm always lazy to watch videos to learn something new in unity. But you always prove me it worth doing it ❤️
@YairVich
@YairVich 3 года назад
I saw that animation curve in the particle system and wanted to use in normal scripts but never knew the name of it, and how usefull they are... thanks!
@bittenbroccoli9901
@bittenbroccoli9901 3 года назад
This is a great way to get a somewhat normal distribution! If you evaluate a random float on the interval from 0 to 1 then make the curve look like a zoomed in cubic function with an origin at (.5, avg). Depending on what you are going for the extremities can be around four standard deviations from the mean. This can be used to determine the average health of a enemy, but give it some variety upon instantiation. A better example would probably be tree height in a well developed forest. Thanks for the tutorial! I would have never thought of using animation curves for other purposes.
@jean-michel.houbre
@jean-michel.houbre 3 года назад
I already know them, but I use them quite little. Thank you for this useful video which opens up some interesting possibilities.
@wazaDev
@wazaDev 3 года назад
To think I used to manually write linear equations if I wanted to scale a value over time, this is really helpful. Thanks for the video
@nothingatall6703
@nothingatall6703 3 месяца назад
Awesome! This is just what I needed. Thank you!
@StealthyShiroeanGames
@StealthyShiroeanGames 6 месяцев назад
Wow, this video blew my mind. I never would have thought to use animation curves this way and it seems super useful! I'm excited to try this out with a future project of mine. Thanks, Code Monkey!!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 месяцев назад
I'm glad the video helped! Best of luck with your project!
@drewvananne1796
@drewvananne1796 3 года назад
Thanks for the awesome vid! Definitely going to start using them more! Although for your last example where you evaluate the curve at each index I would probably prefer to just make a serializable struct or scriptable object called "WaveInfo" that has an int for amount of enemies and an int for enemy health. Then you could just have a WaveInfo array on the spawner and set the stats for each wave in the inspector. I think that would feel more intuitive than matching two different curves for each wave
@dspartan007
@dspartan007 3 года назад
Awesome, didn't know about animation curves, this opens lot of possibilities. Thanks for sharing this information friend.
@PorcoPorchetto
@PorcoPorchetto 2 года назад
You literally saved my game jam game, man you're THE BEST! Waiting for your Xcom game style course to grab it! Learnead a lot from your builder defender course! Keep going ^^
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
That's great! Best of luck with your Game jam entry!
@benjaminlehmann
@benjaminlehmann 3 года назад
Great video, mate. Really helpful - just what I was looking for :D
@an9l1c1sm6
@an9l1c1sm6 3 года назад
Thanks for this. It took me some time to adapt it to my own project, since I'm a noob. :)
@Oxmond
@Oxmond 3 года назад
Last example is really awesome. What a great way to make fast & interesting levels! 👍🤓
@cristiano4826
@cristiano4826 3 года назад
Helpful content 👍
@SkinnerSpace
@SkinnerSpace Год назад
Awesome tutorial! That's what I was looking for! I spent so much time writing crappy progression systems for my game and now you saved me from that!
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
I'm glad you liked it, best of luck with your game!
@rubencrespo9699
@rubencrespo9699 3 года назад
Thank's for the tutorial, it's awesome...
@XRelabs
@XRelabs 3 года назад
really awsome thank you man....you have just gave me what i need ...thank you a ton
@sidbell929
@sidbell929 3 года назад
That is superb!
@user-ub7mi2ou6v
@user-ub7mi2ou6v 3 года назад
Awesome!! Really great tool.
@MaksMikhnevych
@MaksMikhnevych 3 года назад
Very nice! Using animation curves I prefer to clamp the curve within range of [0,1] on both axes, and send/apply its evaluation to normalized values. Advantage would be simpler configuration adjustments just from the class or scriptableObject, afterall it's just the curve shape we're interested in, not the values it posses.
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
I find it great that it can support both! I used the same values as in the logic to keep the video simple but yup if I was making this in a proper game I would probably end up normalizing the graph.
@AzizTheGazele552
@AzizTheGazele552 Год назад
AM SO FUCKING GLAD I CLICKED ON THIS I THOUGHT I WAS GONNA HAVE TO INTERGRATE MY ACCELERATION FUNCTION AND THEN HAVE TO REINTEGRATE EVERYTIME I WANTED TO CHANGE THE FEEL OF THE ACCELERATION CURVE. btw the shooting in ur game looks so fucking fun
@arcday4281
@arcday4281 3 года назад
Cool! Especially when the video builds on previous lessons. CM - is the best !
@edbrick3368
@edbrick3368 3 года назад
Awesome !!
@alexsc7505
@alexsc7505 3 года назад
I feel like you teach way more than my teachers
@imdebestmoderfokingsosigin7861
@imdebestmoderfokingsosigin7861 3 года назад
Thank you this is the first time I knew about animation curves I wonder why no one is talking about them they're so useful
@JMIK1991
@JMIK1991 3 года назад
Yes, I have my own library to make pathfinding with it and plan to draw roads, attribute scaling... etc.
@therealmegaboi
@therealmegaboi 3 года назад
Thanks
@NameUnknown-
@NameUnknown- 3 года назад
Oh, ive been using gradients in the way you use the curves, a lot more easy to understand with curves tbh, but i didnt know about them so... i adapted with the things i knew
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Color gradients? How do you use them in the same way as Animation Curves?
@fabianobersovszky6987
@fabianobersovszky6987 Год назад
Can i use animation curves to simulate root motion? ( by copying the animations position and rotation curve to script)
@highimpact1
@highimpact1 2 года назад
Codemonkey you are the Bob Ross of unity programming.
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I love Bob Ross so that's quite the compliment, thanks!
@varnonzero
@varnonzero 3 года назад
I use animation curves to modify terrain generation and image filtering. I didn't even consider them for the longest time. Wish they were just called curves.
@imdebestmoderfokingsosigin7861
@imdebestmoderfokingsosigin7861 3 года назад
I will try to make camera movement effect with animation curves when the player walk or run I will make the camera move up and down
@watercat1248
@watercat1248 3 года назад
I have few questions about the animetion cocurved 1. ther is way to use one random value from my animation cocurved ? for example if want to instead i random numbers of enemies the way too the animation cocurved for this 2. Haw to make the animetion cocurved to return to 0 wean is go to the last stage and in eny other state? 3. Haw to stop and enable the animation cocurved?
@telecomanda
@telecomanda 3 года назад
Yep, I use animation curves for my flight "simulator".
@jacobcass2447
@jacobcass2447 3 года назад
can you make a tutorial of controlling vehicles inside unity
@fabianobersovszky6987
@fabianobersovszky6987 Год назад
You know how i can get the curve data from a animation clip?
@watercat1248
@watercat1248 3 года назад
I don't know in what way to use the animetion cocurved yet but thenx for the tourial the truth I knew that system existed before sew this video becuse i have see this system on meny code but i did not know how to use that system before this video
@guillenoble
@guillenoble 3 года назад
nice video
@benceszekely1831
@benceszekely1831 Год назад
Hi, thanks for this, it was nice :) But I have a problem, because I created a 2D game, where I used animationClip.SetCurve() to modify my animatoins in runtime. It worked well in Editor, but when I built it to an Android phone, it didn't worked any more. Can someone help, why?
@tobiacancelliere6972
@tobiacancelliere6972 Год назад
I don't know if you or others read comments on videos this old but I was wandering something: is it possible to modify several animation curves in one window (i.e. like the curves in the animation tab)? How? If I find the answer before anyone reads this, I'll put it here as an edit or answer
@CodeMonkeyUnity
@CodeMonkeyUnity Год назад
I don't think so, at least I've never seen that being used outside of official Unity tools so I don't think that behaviour is exposed to regular users.
@Hypocat
@Hypocat 3 года назад
Hey, have you tested how this animation curves work on jumping?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Sure, that's yet another valid use case! Use it to define how fast the character moves up and how fast it comes down.
@jhanolaer8286
@jhanolaer8286 2 года назад
Hi sir, please also make a video tutorial of fluid simulation using a code.Thank you🙏❤
@CodeMonkeyUnity
@CodeMonkeyUnity 2 года назад
I did make that here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_8v4DRhHu2g.html
@kamienel9941
@kamienel9941 3 года назад
13:32 you can press A
@sirskyy9920
@sirskyy9920 3 года назад
Is there a way of using Animation Curves with Post Processing Effects?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Curves are just numbers so yes you can sample a point in the curve and apply it to any post processing parameter
@2.5dboy20
@2.5dboy20 3 года назад
Please make a tutorial on cool boss fights...like if you killed the boss it will sub divided or something or anything like that !
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
I covered a Boss Fight here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qZC1VYWnHZ8.html
@2.5dboy20
@2.5dboy20 3 года назад
@@CodeMonkeyUnity thanks a lot!
@heavensfield494
@heavensfield494 7 месяцев назад
I want rto adjust the keys value at run time but it just doesnt work, any tips?
@CodeMonkeyUnity
@CodeMonkeyUnity 7 месяцев назад
That's an interesting question, I've never done it but apparently you can access the data inside the "keys" discussions.unity.com/t/altering-animation-curves-via-script/160511/3
@third3rd216
@third3rd216 3 года назад
Hey, I can't seem to find the link that was supposedly send to me when I created my account on your website unity code monkey.com
@sheeeeshhhhh2359
@sheeeeshhhhh2359 3 года назад
why i only have two points in curves?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
Double click to add more
@sauliusvincevicius8688
@sauliusvincevicius8688 3 года назад
Me and the boys compering pp: 1:32
@nooxTheHumanoid
@nooxTheHumanoid 3 года назад
Hmm
@mossupergamer1912
@mossupergamer1912 3 года назад
first comment yayyy
@advikmalwa379
@advikmalwa379 3 года назад
mine is second
@progCan
@progCan Год назад
WHY DID UNITY NAME THESE *ANIMATION* CURVES INSTEAD OF JUST CURVES
@TheAmeer3881
@TheAmeer3881 3 года назад
Bad design choice on unity part. "Animation curves can be used for much more than animations" Unless there is strict polymorphism, i do not see how this applies
@CodeMonkeyUnity
@CodeMonkeyUnity 3 года назад
What? In the video I show animation curves being used for the Enemy Spawn amount which is not an animation use case. I'm not sure I understand what you mean.
Далее
😍😂❤️ #shorts
00:12
Просмотров 314 тыс.
Escaping Unity Animator HELL
18:18
Просмотров 497 тыс.
Simple Turn-Based RPG Battle System (Unity Tutorial)
35:22
Simple Wind Shader Effect in Unity!
13:52
Просмотров 75 тыс.
The Beauty of Bézier Curves
24:26
Просмотров 2 млн
Animation Vs Geometry | AvG Reacts
10:08
Просмотров 226 тыс.
What are Events? (C# Basics)
15:05
Просмотров 378 тыс.
How to animate text in Unity? TextMesh Pro Effect.
0:29
What are Generics? (C# Basics)
13:48
Просмотров 142 тыс.
Why I’m switching from Unity to Unreal Engine
9:02