Don't make grids without knowing THIS in Unity
Utilizing this component dramatically simplifies the task of designing a grid. By defining the parameters such as tile size, gap, and type within the Grid Component, it automatically computes world positions based on the specified grid indices.
This reduces the complexity of placement, ensuring an efficient and streamlined grid creation process. Thanks GPT, lol :)
Source: gist.github.com/Matthew-J-Spe...
❤️ Become a Tarobro on Patreon: / tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: / discord
✅ MORE TUTORIALS: / tarodev
Пікірлер: 172
Grid component: attached. Power: harnessed. Tarochan: returned. Hope: restored.
@Tarodev
11 ай бұрын
See you in 3 months
@misterlonely6057
11 ай бұрын
Hotel: Trivago?
@captainnoyaux
11 ай бұрын
meme: succeeded like: engaged
@jimmyjohnjoe3700
11 ай бұрын
@@Tarodevbye, have a good life
@Paul-zh2jp
11 ай бұрын
tarochan AYAYA
This is the most productive 1 min of my life
I was literally just about to start a project with a grid so this is super useful and well timed. Thanks!
been waiting for your new tutor content and fortunately this grid tutorial is related to 1 of my projects, thanks :)
I just found you recently and you have saved me so much headache it is insane. So many forum posts, videos, etc. give examples on how to do things but in such a quick and sloppy way that I keep having to spend extra time looking for extra optimizations. Honestly thank you so much for your videos they are amazing.
Someone hacked Tarodevs channel and uploaded a video. Someone should alert him! 😂
@vanivan5202
11 ай бұрын
I fear the day when I will see Quaternions video. That's when I will now this channel is done 100%.
@NoTimeLeft_
11 ай бұрын
@@vanivan5202 his Magnus opus
@LunarSoul255
11 ай бұрын
@@vanivan5202 Oh Quaternions are easy, EASY! First you -#*%Q#, then you ??????, then you spiral into a state of insanity and self-loathing for a week or more, then boom! You know the magic behind Quaternions.
@mihast3273
10 ай бұрын
No! Whoever hacked the channel, thank you, this way very helpful
Tarodev your vids are little nuggets of gold. Thank you for all you've taught me.
I really appreciate this. I've been struggling with grids for a long time and have several projects that need it. This was by far the best way of handling it. and i also like that you went with the sprite renderer as 2d stuff gets overshadowed by UGUI layout stuff often.
Good to see you back! Thanks for the video!
Good to see you back and thanks for the share. Perfect timing!! Our next work project is going to feature a hex tile mechanic, and this is going to be a big help.
@Tarodev
11 ай бұрын
Good luck with your project 😊
Thanks mate, looking forward to the next one!
So happy to see you back! 🎉
i love short and exact videos like these
Please do more. I really love ur videos❤
Thank you! So easy and in 1 min video! You're awesome!
Another amazing video, thanks mate
Taro. I know it's a heavy burden. But we need you. As long as it doesn't compromise your mental well being, of course.
@Tarodev
11 ай бұрын
I'm here for you 🙏
every video is a banger tarodev.
This is amazing, I've been using the crappy prefab brush this whole time
I love that! Thank you man.
I literally checked yesterday if I had missed any new videos because it seemed like they haven't been out for too long 😂
This is really useful! I'm still awaiting that quaternion tutorial :>
I would have liked to know this a year, hehe. Very informative video. Thank you!
@Tarodev
10 ай бұрын
You know it now 😊
Finally you uploaded. Its a hope for developers like me who just started out with unity. 👌🤭
@Tarodev
11 ай бұрын
I wish you luck on your journey
Such a long time 🎉❤
I have actually been thinking a lot about the best ways to go about grids (particularly isometric and hexagon grids) so this video is useful. Though I can not seem to find the source code you mentioned.
@Tarodev
11 ай бұрын
Added :)
@ImmortalTimothyM
11 ай бұрын
@@Tarodev Thanks!
Incredibly happy to see this post! You're the best Tarodev. Don't leave us so lonely out here bby!!! 🍤
So is this video basically saying you can make a grid without using tilemaps? That's awesome.
didn't know this, thanks :)
hey welcome back!
Thanks, Sensei.
Love your videos. I am about to binge from now to the weekend. Do you take suggestions? I haven't seen a good all around save & load video. I know different games have different requirements. But, would you be able to cover this topic? (Different Save & Load methods, Encryption, Local vs Cloud, etc)
My fav unity channel
@Tarodev
10 ай бұрын
And you're my favourite subscriber
i frickin love you man
i just found this channel. and i really like those viedos you made. they are very easy to understand. i dont know why you dont upload more new videos recently. it must be some reasons. but i hope i could see your new video soon.
@Tarodev
10 ай бұрын
I will start uploading again 😊
I clicked this as soon as i saw the notification. A video from Tarodev is a joy. Is there a shader applied here or "just" 2D art?
@Tarodev
11 ай бұрын
Just my hand drawn tiles 😊
Thanks!!
I've had two projects where I wanted grid systems, they were 2D so I inherently used the TileMaps as a way to navigate the world, it was HELL, for anyone who ever wants to do moving things on a grid, DO NOT use the TileMap component. Glad I've seen this video, even if after the fact, it's a nice lesson for future dev.
@Tarodev
10 ай бұрын
I've been through the same process my man... I know your pain
Thanks a lot, as always your video gimme new knowledge, now I dont neet to DIY grid system
Ah yes. I totally know what these words meant! Thank you a lot for helping me out!
me: I wanna make a grid based game KZread: look at this video
Awesome!
Yo, new Tarodev video dropped!
Where have you been Mr Taro? We miss your content
Man you're great
Wait, I always work with grids and never knew I could read out the tiles. I always make an Array on top of my tilemap
I love your videos. Very useful and informative for someone who's just started like me... Maybe you have a tutorial like this that I missed, but do you have any tutorials on how to move characters on a grid in a limited way? Like in SRPGs where units have movement of 5 and can move 5 tiles? Right now my units just go wherever they please...
@Tarodev
10 ай бұрын
Checkout my old school grid series. You can use this technique in conjunction with that series
can i get the vertex positions of an spesific tile if im using a grid or a tilemap?
You are the gridmaster
Modular Quest System would be nice.
We're so back.
oh nice. I was just researching how to deal with hex grids
You are a god man thanks a lot
Welcome back
@Tarodev
11 ай бұрын
Thank you
this is a gamechanger
@Tarodev
11 ай бұрын
Agreed 😊 let's make some grid games
i miss your videos man
Sweet. Thank you, friendly neighborhood cephalopod.
Hi Tarodev, Very interesting. But, you made a video (game grid 1 & 2) where you made a grid from scratch, without the grid built-in component. When to use one method rather than the other? What method do you recommend for a tactical game ?
@Tarodev
10 ай бұрын
This can be used with those grid tutorials just fine. In those videos I used a simple nested for loop to gather world positions. Using this method you can continue using that nested for loop, but with the grid component you can transform those basic positions into whatever grid type you'd like 😊
Hope you doing well. See you again in the future
Hey! Wonderful video. Would you mind explaining just a little more about how to get this set up from scratch for someone dangerously early in their Unity journey? I should be able to handle just a few sentences of text, just not quite seeing how to get from the blank 2D screen with the built in hexagonal tile map instantiated all the way to your final outcome here. Where does your script go? And do I need to be using Unity 3D to get those cool perspective shifts, etc?
@Tarodev
2 ай бұрын
Pop into my discord and mention this comment. I'll fill you in
I remember you and you awesome...❤
awsome
how would this work with vertical grid pieces?
Is there a way to check if point is inside a cell gap?
You forgot to add GridTileBase to the repository
king
We want more
@Tarodev
11 ай бұрын
Greedy!! But okay :)
@yufisjr
11 ай бұрын
I want more from my favorite channel. Dont be like Brackeys haha. Tell me if I can help, thanks :)
OH Grids, I LOVE grids! i havent even watched it it, and I already gave it a thumbs up.... ofcoarse, now I'm going into this with high expectations.... omg, if you let me down though. that thumbs up... it will have to change, ill be heart broken!
@littleowlgaming-unity-tutorial
11 ай бұрын
jaw dropped. the like stays, i tried to give 2 likes, and that backfired. so I had to give you 3. which is only actually one
can someone explain why this is better than the other system
Is there a framework that supports this kind of tiling feature in threejs?
Hi, really appreciate your work. But here I am completely lost... I don't understand where I need to make the link between this script and the Grid component. you said that we need to serializeReference to it... Is there somoene willing to give a little explanation ? Thanks a lot
How do you guarantee that the grid size will = the size of your prefab? Since you're not using the tilemap system and creating "tile" presets in my code the worldspace coordinates provided are off and the tiles are inside of each other even though the prefab is a size(1,1,1) same as the grid size. Am I missing something or just mistaken?
@Tarodev
10 ай бұрын
If your tiles are 1x1 they should fit the default 1x1 rectangle grid. Are your pixels per unit set correctly? Put your tile against a unity cube to see if they're equal
@posidon114
10 ай бұрын
@@Tarodev Thanks for the answer, I think the problem is that I was trying to use a unity 3d prefab "cube" instead of sticking true to a 2d iso sprite. Messed up some math calculations so if I wanted to use the grid to place actual cube objects I would probably need to do a bit more verbose script logic. Thanks!
@Tarodev
10 ай бұрын
@@posidon114 good luck buddy
My God!! 😎
👑
Every video is a step closer to the Quaternions video
@Tarodev
11 ай бұрын
Or further away
What about path finding? Do we also get that out of the box?
@Tarodev
11 ай бұрын
Nope! But luckily you can just use the grid indices (the original vector3int) in your pathing algorithm and do real time conversion when the unit moves 😊
It is ridiculous how LITTLE there is content on the native grid/tilemap system other than "HEY LOOK ITS A FANCY PENCIL"
Can you implement this feature in 3D? Like if you made levels out of blocks
@Tarodev
10 ай бұрын
Absolutely. Just convert the xy to xz 😊
What needs to be coded to give player ability to select and drag individual grids?
@vanivan5202
11 ай бұрын
Raycast the grid cell and modify it's transform to be position of a mouse.
Took a break to finish that Quaterions video I assume.
@Tarodev
11 ай бұрын
Oh yeah man, that's next
Important!!! You forgot to add GridTileBase to the repo.
@Tarodev
11 ай бұрын
Thanks! I fixed it up. It was actually just video-specific functionality.
wooooooooooh!!!!
Legit question Taro, are you busy working on any long term game projects atm?
@Tarodev
11 ай бұрын
I am... Video coming soon. All will be revealed 😊
@WhitefoxSpace
11 ай бұрын
@@Tarodev then your absence I expect has been related to this, good luck, looking forward to it
@WhitefoxSpace
11 ай бұрын
@@Tarodev ooh ooh, I got an idea, is it related to GMTK?
@Tarodev
10 ай бұрын
@@WhitefoxSpace not even close 😂
Ah shiet I only just made my own tile system, didn't know this is a thing.
Can this component and script be used for 3D as well?
@fintik9907
11 ай бұрын
yes change cell swizzle parameter from XYZ to XZY
Hello there stranger
its odd how many people on grid tutorials make their own and not use this. Leading to there to be little information out there and finding it hard because so much has grid in the words or components but not actually using this
Hi i am developing an android game with Pedestrians in the city. I have 48 game objects(pedestrians) with Skined Meshrender, a script that moves them on wayppont, a ragdoll setup and a animator. But when i turn them on my game lags Any solution to pool them or some tricks?
@Rammbriel
4 ай бұрын
Maybe try the entity component system?
@ggwp8618
4 ай бұрын
@@Rammbriel okay thanks for the tip
Do you still update your Patreon? It seems like it hasn't been touched since December.
oh god, i def didn't just coded a grid system to then find this video ...
Noice
ambatukaaaaaaaaaaaaam
there is the source code?
@Tarodev
11 ай бұрын
Woops. I'll add it in a tick
@olegrolik
11 ай бұрын
@@Tarodevthank you!
If Unity provides a Grid component why does it seem like somany projects are implementing their own? Is there some con to the Unity Grid?
@Tarodev
5 ай бұрын
Nope. It's that people don't know about it. I didn't even know about it for many years.
bold of you to assume i know wtf serialized means :P
Im new and wanna learn unity. My first objective is to learn the components to make a 2d turn base strategy game. However most grid based tutorials are obsolete cause unity has a built in grid function? Problem is, I cant find any resources to learn how to use it and it feels like im stuck at step 1. Anyone can guide me on how I should progress my journey?
@Tarodev
10 ай бұрын
Isn't that what this video taught you? 🤔 Also, go checkout my older grid series to learn the basics of grid building and turn based.
Because the hexagon is the bestagon
@Tarodev
11 ай бұрын
This man gets it
make this a short.
@Tarodev
9 ай бұрын
Landscape
Hexagonal grids must be annoying to calculate distance and areas.
@Tarodev
11 ай бұрын
Yup, they can be. But NO MORE, with my incredible grid component, annoying calculations are a thing of the past. Buy yours today and receive a second grid component FREE to give to a friend or loved one.
@Tarodev
11 ай бұрын
Also, that was probably the worst reply I've ever given on YT. Sorry
@renansilva3879
11 ай бұрын
@@Tarodev I'm happy to see you're back, even tho this is the first of yours I have watched 😅
@Tarodev
11 ай бұрын
@@renansilva3879 Hah. Welcome aboard