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 Жыл бұрын
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!
@dilanovich4 ай бұрын
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.
@wildcockatielgames4 ай бұрын
Awesome! Happy it helped you!
@i.k4854 Жыл бұрын
Really helpfull tutorial ! You got a new Subscriber.
@wildcockatielgames Жыл бұрын
Happy it helped you!
@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 Жыл бұрын
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 Жыл бұрын
Great and detailed tutorial
@AdrianRosarioPR Жыл бұрын
Thank you so much for this amazing video it really helped me out.
@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 Жыл бұрын
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.
@DiegoPerezUU2 ай бұрын
Rly helpful thank you!
@杨悍文4 ай бұрын
how do you download with white background and white icon?I cant find where to change the color
@wildcockatielgames4 ай бұрын
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?
@wildcockatielgames4 ай бұрын
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 Жыл бұрын
Thank you very much!
@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 Жыл бұрын
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 Жыл бұрын
hey do you have a ko-fi page?
@phambaoha170 Жыл бұрын
Wow, awsome
@MoonJellyGames9 ай бұрын
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 Жыл бұрын
Don't forget to set "Render Mode" to "Screen Space - Camera" or it won't work!