Creating a UI Line Renderer in Unity

preview_player
Показать описание
Unity's Line Renderer Component doesn't work in the UI system... So, let's create one that does...

--------------------------------------------------------------------------------
Want to support the channel?

Use these links to grab some cool assets from the asset store:

--------------------------------------------------------------------------------
Socials and Other Stuff:

Рекомендации по теме
Комментарии
Автор

It would be awesome if you could make a second video showing how to keep the lines uniform. It looks pretty unprofessional at the minute.

RugbugRedfern
Автор

god you are one of the few Unity Youtubers i can actually learn something from. Really love you for this and the choice of content for your videos.
Where did you get this knowledge from? this is stuff the developers at my work don't know anything about :D

YuriNoirProductions
Автор

00:11 "This thing" is a Radar Graph. one of my favorite ways to display stats.

danthesandman
Автор

Great job !, I think calculating the average direction of the prev and next point will give you the correct direction of the middle point!

emad-dev
Автор

I really like your tutorials, simple, concise and well sequenced. Thanks for that. Totally recommended.

ThatAcc
Автор

Watching this video in the future(2023), so you probably know this already, or have learned since making this video. Either way some other future viewers might benefit from this comment. You CAN use a line render component in Unity's UI system. The caveat is your canvas has to be in "screen space - CAMERA" view and set to the right camera view. You also need to set the linerenderer component's "use world space" to off. This might be a newer feature of Unity tho. And I can't figure out how to get the thing to sort its layers properly, so I'm still using your version

vickrpg
Автор

Nice, I tried to make my own a while ago before I watched this, but didn't know about the Graphic class or the OnPopulateMesh method so this is a lot cleaner than my attempt.

DiagonalFaceroll
Автор

Absolutely not what i was looking for on youtube but watched till the end because your video skills are too damn good!

adeventura
Автор

Nice! Lots of fun maths here - definitely learned some things in this one 😊

TurboMakesGames
Автор

Are you the new Brackeys? I keep finding your videos for exactly what I happen to be looking for

Tomatech
Автор

This video is great. I was stuck in my task dozens of hours until I see this video.

ieltsmrba
Автор

On the newer versions of Unity replace the inherited class Graphic with MaskableGraphic if it doesnt work. Ur welcome!

ericomaso
Автор

Hey I'm not sure if you take criticism too but ill go on anyways.

I normally love all your videos and this one is pretty awesome as well but not as good as the intro and thumbnail makes it seem. You show fully functional graphs that look really good but the finished product is far from finished.
It lacks labels and the straight lines and more.

I'd love if you would continue on this and create a more functional graph or if you wouldve explained better that this won't be any of that but just a starting point.

Anyway, I love your videos, especially the ones about UI as you're the only one making them and they're always very educational.

vasil-yt
Автор

This is much better then drawing on a texture. Thanks for the work!

theturtle
Автор

Wow, another amazingly useful tutorial! Thank you so much.

RugbugRedfern
Автор

Great video! 4:43 why do you localize the position arfuments? Whybnot directly use the arguments for all the calculations? Thx in advance

TheRaje
Автор

I just discovered you, you are really talented on describing stuff, the Scriptable objects video was perfect, I wish you would do stuff like that in any theme's like for example playerprefab, RPC, abilities and ect

Really great stuff you do

ConchStreetStories
Автор

Amazing Tutorial, learnt a lot, needed it for drawing lines for a moving inventory in my game!

joerickwood
Автор

Hi! I am a big fan from a long time. But I have a question for a future video. Can yuo make a system that instantiate an obj and if they are close to each other it snaps to it. Something like a house building system. And than can we save that full building so when we restart the game it will be still there.

PreslavKolev
Автор

amazing tutorial, thank you very much!

MisterBrwn