How to Make an Animated Dotted Line in Unity 🔍 (the Easiest and Most Efficient Way!)

  Рет қаралды 10,159

Wild Cockatiel Games

Wild Cockatiel Games

Күн бұрын

Пікірлер: 26
@jussirautiainen3784
@jussirautiainen3784 7 ай бұрын
That is a really neat way to animate the line ... sweet! You know that I love Unity because of the community and content like this, thanks!
@seangailey9035
@seangailey9035 Жыл бұрын
If you change the corner vertices to be 1 instead of 0, the line doesn't get skewed/warped, but it adds a weird melding animation of the sprite at each turn. I'm not sure what I like better. I think I'll probably end up adding a new line renderer at each turn and see how that works out. Thanks for the video!
@dilanovich
@dilanovich 4 ай бұрын
Thanks so much for this. It's exactly what I needed for my game and I learned quite a bit about how unity handles textures.
@wildcockatielgames
@wildcockatielgames 4 ай бұрын
Awesome! Happy it helped you!
@i.k4854
@i.k4854 Жыл бұрын
Really helpfull tutorial ! You got a new Subscriber.
@wildcockatielgames
@wildcockatielgames Жыл бұрын
Happy it helped you!
@kozavr
@kozavr Жыл бұрын
About the coordinates you should have mentioned Use World Space check box. In your case the line listens only the Position field because the Use World Space check box is checked. If you unckeck it, the line will follow the object it's attached to
@wildcockatielgames
@wildcockatielgames Жыл бұрын
Thanks for pointing this out. You're right. I didn't consider this as in my game the objects never move so the line will never move. But if the object is moving and the line renderer is attached to it, you should uncheck world space and use local coordinates instead.
@razeenag8478
@razeenag8478 Жыл бұрын
Great and detailed tutorial
@AdrianRosarioPR
@AdrianRosarioPR Жыл бұрын
Thank you so much for this amazing video it really helped me out.
@kozavr
@kozavr Жыл бұрын
Somewhere at 11:22 in Animation View you use a material Main_Tex_ST. Where does this come from? I didn't see it before in the tutorial. Could you explain that please?
@wildcockatielgames
@wildcockatielgames Жыл бұрын
It should appear under the list of possible animation options, but you have to have added a material to the line renderer first. If your line renderer doesn't have a material it won't show up in the list of properties to add.
@DiegoPerezUU
@DiegoPerezUU 2 ай бұрын
Rly helpful thank you!
@杨悍文
@杨悍文 4 ай бұрын
how do you download with white background and white icon?I cant find where to change the color
@wildcockatielgames
@wildcockatielgames 4 ай бұрын
I show how to colour the sprite at 5:07. But if you want to remove the background click the "Studio" button at the top-left of the page and set the dropdown to "Background". Then set type to "None" (this will remove the background)
@杨悍文
@杨悍文 4 ай бұрын
And one more question the animator controller doest work when my linernder has several points?
@wildcockatielgames
@wildcockatielgames 4 ай бұрын
It should work no matter how many points you have. Make sure you've set a material for the line renderer.
@杨悍文
@杨悍文 4 ай бұрын
@@wildcockatielgames Thanks for your reply,I'll try later
@SirFrosty84
@SirFrosty84 Жыл бұрын
Thank you very much!
@SirFrosty84
@SirFrosty84 Жыл бұрын
The more points you add the less sharp of a turn, don't make it the same coordinates, make it slightly different. For example if you want to turn at point (1,1) make 2 more points; one at (0.9,0.9) and (1.1,1.1)
@wildcockatielgames
@wildcockatielgames Жыл бұрын
Thank you for the tip! Will be trying this out next time I'm dealing with a line renderer. The "curved" line issue has always been one of those little things I haven't found a great solution for.
@MisterBr0wn
@MisterBr0wn Жыл бұрын
hey do you have a ko-fi page?
@phambaoha170
@phambaoha170 Жыл бұрын
Wow, awsome
@MoonJellyGames
@MoonJellyGames 9 ай бұрын
Quick note: You don't need to worry about the Z-position at all if you're in 2D. Set all of the points to zero. Just make sure the sorting laying is in front of background graphics, as needed.
@petersnayde4873
@petersnayde4873 Жыл бұрын
Don't forget to set "Render Mode" to "Screen Space - Camera" or it won't work!
Drawing a line in Unity - Happy Glass / Love Balls Style!
10:49
Kinematic Equations (E03: ball problem)
17:53
Sebastian Lague
Рет қаралды 115 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
Logo & Branding Trends 2025
13:20
Envato Tuts+
Рет қаралды 1,1 М.
How to Make Softbody Physics in Unity!
6:04
PyroPhysics
Рет қаралды 66 М.
Use any texture and animations for Unity's Line Renderer
16:43
How I would restart my game dev journey (if I could do it all again)
9:56
Wild Cockatiel Games
Рет қаралды 1 М.
Projectile Trajectory Prediction in Unity
17:20
Sunny Valley Studio
Рет қаралды 10 М.
Automatic Line Smoothing with Bezier Curves | Unity Tutorial
20:15
Projectile Movement & Why is it Useful? ( Unity Engine Tutorial )
13:41
A Bit Of Game Dev
Рет қаралды 37 М.
How To Make UIs without frustration | Unity Beginner Tutorial
16:58
This is GameDev
Рет қаралды 38 М.
Make an Angry birds-like sling mechanic in Unity
20:32
FreakyFeet
Рет қаралды 31 М.
Mini Golf Tutorial - Episode 5 - Camera Control
21:33
Tyler Tronnes
Рет қаралды 21