Don't make grids without knowing THIS in Unity

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 178

  • @datablob
    @datablob Рік тому +491

    Grid component: attached.
    Power: harnessed.
    Tarochan: returned.
    Hope: restored.

  • @NoTimeLeft_
    @NoTimeLeft_ Рік тому +136

    Someone hacked Tarodevs channel and uploaded a video. Someone should alert him! 😂

    • @vanivan5202
      @vanivan5202 Рік тому +5

      I fear the day when I will see Quaternions video. That's when I will now this channel is done 100%.

    • @NoTimeLeft_
      @NoTimeLeft_ Рік тому +1

      @@vanivan5202 his Magnus opus

    • @LunarSoul255
      @LunarSoul255 Рік тому

      @@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
      @mihast3273 Рік тому +2

      No! Whoever hacked the channel, thank you, this way very helpful

  • @rishavnathpati
    @rishavnathpati Рік тому +38

    This is the most productive 1 min of my life

  • @krastyo9825
    @krastyo9825 Рік тому +28

    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.

  • @LivanderGamedev
    @LivanderGamedev Рік тому +6

    been waiting for your new tutor content and fortunately this grid tutorial is related to 1 of my projects, thanks :)

  • @AetherXIV
    @AetherXIV Рік тому +7

    Tarodev your vids are little nuggets of gold. Thank you for all you've taught me.

  • @chizuru1999
    @chizuru1999 Рік тому +9

    Finally you uploaded. Its a hope for developers like me who just started out with unity. 👌🤭

    • @Tarodev
      @Tarodev  Рік тому +4

      I wish you luck on your journey

  • @JBtheWARVillain
    @JBtheWARVillain Рік тому +5

    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
      @Tarodev  Рік тому +1

      Good luck with your project 😊

  • @windwalkerrangerdm
    @windwalkerrangerdm Рік тому +15

    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
      @Tarodev  Рік тому +15

      I'm here for you 🙏

  • @SUCACU
    @SUCACU Рік тому +1

    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
      @Tarodev  Рік тому +1

      I've been through the same process my man... I know your pain

  • @DocuFlow
    @DocuFlow Рік тому +2

    Thanks mate, looking forward to the next one!

  • @NominativoUnivoco
    @NominativoUnivoco Рік тому +1

    I literally checked yesterday if I had missed any new videos because it seemed like they haven't been out for too long 😂

  • @winston8589
    @winston8589 Рік тому +4

    Please do more. I really love ur videos❤

  • @ThatLucasGuy93
    @ThatLucasGuy93 5 місяців тому +1

    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
      @Tarodev  5 місяців тому

      Pop into my discord and mention this comment. I'll fill you in

  • @gutzimmumdo4910
    @gutzimmumdo4910 Рік тому +1

    can i get the vertex positions of an spesific tile if im using a grid or a tilemap?

  • @PeterMilko
    @PeterMilko 2 місяці тому

    what would you use this for?

  • @zerohidz
    @zerohidz Рік тому +2

    Where have you been Mr Taro? We miss your content

  • @kevinscaglioni8020
    @kevinscaglioni8020 Рік тому +1

    Another amazing video, thanks mate

  • @restushlogic5794
    @restushlogic5794 Рік тому +1

    Modular Quest System would be nice.

  • @kbxv925
    @kbxv925 Рік тому +1

    hey welcome back!

  • @everythingguy8422
    @everythingguy8422 Рік тому +1

    Thanks, Sensei.

  • @frustratedj
    @frustratedj Рік тому +1

    i frickin love you man

  • @tictactoc9311
    @tictactoc9311 Рік тому

    My fav unity channel

    • @Tarodev
      @Tarodev  Рік тому

      And you're my favourite subscriber

  • @aleksandarprokopovic7497
    @aleksandarprokopovic7497 Рік тому

    Is there a way to check if point is inside a cell gap?

  • @dany3310
    @dany3310 Рік тому

    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
      @Tarodev  Рік тому

      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 😊

  • @rootbindev
    @rootbindev Рік тому +1

    You are the gridmaster

  • @magusonline
    @magusonline Рік тому

    Do you still update your Patreon? It seems like it hasn't been touched since December.

  • @WhitefoxSpace
    @WhitefoxSpace Рік тому +1

    Legit question Taro, are you busy working on any long term game projects atm?

    • @Tarodev
      @Tarodev  Рік тому

      I am... Video coming soon. All will be revealed 😊

    • @WhitefoxSpace
      @WhitefoxSpace Рік тому

      @@Tarodev then your absence I expect has been related to this, good luck, looking forward to it

    • @WhitefoxSpace
      @WhitefoxSpace Рік тому

      @@Tarodev ooh ooh, I got an idea, is it related to GMTK?

    • @Tarodev
      @Tarodev  Рік тому

      @@WhitefoxSpace not even close 😂

  • @albingrahn5576
    @albingrahn5576 Рік тому

    didn't know this, thanks :)

  • @filesstorage7854
    @filesstorage7854 Рік тому +1

    i miss your videos man

  • @Rovsau
    @Rovsau Рік тому +1

    Sweet. Thank you, friendly neighborhood cephalopod.

  • @ibrahimokur4169
    @ibrahimokur4169 Рік тому +1

    You are a god man thanks a lot

  • @BLUGTheK
    @BLUGTheK Рік тому +1

    Hope you doing well.
    See you again in the future

  • @FelipeDermann
    @FelipeDermann Рік тому

    Can this component and script be used for 3D as well?

    • @fintik9907
      @fintik9907 Рік тому

      yes change cell swizzle parameter from XYZ to XZY

  • @jyamas1382
    @jyamas1382 4 місяці тому +1

    oh god, i def didn't just coded a grid system to then find this video ...

  • @nikolatasev4948
    @nikolatasev4948 Рік тому

    Awesome!

  • @zbyszekkiebasa906
    @zbyszekkiebasa906 Рік тому +1

    Took a break to finish that Quaterions video I assume.

    • @Tarodev
      @Tarodev  Рік тому

      Oh yeah man, that's next

  • @Hazzel31337
    @Hazzel31337 Рік тому +1

    awsome

  • @lizkimber
    @lizkimber Рік тому

    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

  • @janthegamedev
    @janthegamedev Рік тому +1

    Important!!! You forgot to add GridTileBase to the repo.

    • @Tarodev
      @Tarodev  Рік тому +1

      Thanks! I fixed it up. It was actually just video-specific functionality.

  • @AlexBlackfrost
    @AlexBlackfrost Рік тому

    Every video is a step closer to the Quaternions video

  • @ggwp8618
    @ggwp8618 Рік тому

    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
      @Rammbriel 8 місяців тому

      Maybe try the entity component system?

    • @ggwp8618
      @ggwp8618 8 місяців тому

      @@Rammbriel okay thanks for the tip

  • @mikrokaulis32k68
    @mikrokaulis32k68 Рік тому

    make this a short.

  • @MassimoRough
    @MassimoRough Рік тому +1

    Stop spamming, take a break from yt

    • @Tarodev
      @Tarodev  Рік тому +1

      Can't man, just so addicted to uploading

  • @Star_Wars_Galaxy
    @Star_Wars_Galaxy Рік тому +33

    I was literally just about to start a project with a grid so this is super useful and well timed. Thanks!

  • @mikoulol
    @mikoulol 10 місяців тому +2

    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

  • @KeyboardKrieger
    @KeyboardKrieger Рік тому +3

    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

  • @DavonAllen92
    @DavonAllen92 Рік тому +5

    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.

  • @youcancallmedoggie
    @youcancallmedoggie Рік тому +3

    Hello there stranger

  • @ImmortalTimothyM
    @ImmortalTimothyM Рік тому +5

    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.

  • @dibaterman
    @dibaterman Рік тому +2

    Noice

  • @PeterMyler
    @PeterMyler Рік тому +2

    hate to tell you this but your " :) " is backwards

    • @Tarodev
      @Tarodev  Рік тому +1

      I was hoping it'd trigger somebody

    • @PeterMyler
      @PeterMyler Рік тому +1

      @@Tarodev well congratulations, it worked. ):
      Good to have you back btw, love your tutorials

  • @gauracappelletti3893
    @gauracappelletti3893 Рік тому +1

    can someone explain why this is better than the other system

  • @Will_Zhao
    @Will_Zhao Рік тому +1

    Ah shiet I only just made my own tile system, didn't know this is a thing.

  • @notDiru
    @notDiru Рік тому +1

  • @zbyszekkiebasa906
    @zbyszekkiebasa906 Рік тому +1

    You forgot to add GridTileBase to the repository

  • @__Rizzler__
    @__Rizzler__ Рік тому +1

    ambatukaaaaaaaaaaaaam

  • @MrJotaFelipe
    @MrJotaFelipe Рік тому +2

    Good to see you back! Thanks for the video!

  • @winston8589
    @winston8589 Рік тому +2

    Such a long time 🎉❤

  • @puddle.studios
    @puddle.studios Рік тому +1

    this is a gamechanger

    • @Tarodev
      @Tarodev  Рік тому

      Agreed 😊 let's make some grid games

  • @felfurion8624
    @felfurion8624 Рік тому +2

    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
      @Tarodev  Рік тому +2

      Just my hand drawn tiles 😊

  • @AGreatTsunami
    @AGreatTsunami Рік тому +1

    It is ridiculous how LITTLE there is content on the native grid/tilemap system other than "HEY LOOK ITS A FANCY PENCIL"

  • @littleowlgaming-unity-tutorial

    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
      @littleowlgaming-unity-tutorial Рік тому

      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

  • @davedoublee-indiegamedev8633
    @davedoublee-indiegamedev8633 2 місяці тому

    Do you know if this also snaps vertices?

  • @yaboishadowninja
    @yaboishadowninja Рік тому +1

    So is this video basically saying you can make a grid without using tilemaps? That's awesome.

  • @bowler28
    @bowler28 5 місяців тому

    Bro.... I have wasted SOOOOO many hours writing my own system...

  • @noodle-eater
    @noodle-eater Рік тому +1

    Thanks a lot, as always your video gimme new knowledge, now I dont neet to DIY grid system

  • @MIDGETPANCAKES
    @MIDGETPANCAKES Рік тому +1

    This is amazing, I've been using the crappy prefab brush this whole time

  • @knownas2017
    @knownas2017 Рік тому +1

    me: I wanna make a grid based game
    UA-cam: look at this video

  • @Nebulaoblivion
    @Nebulaoblivion Рік тому +1

    every video is a banger tarodev.

  • @yufisjr
    @yufisjr Рік тому +1

    We want more

    • @Tarodev
      @Tarodev  Рік тому +1

      Greedy!! But okay :)

    • @yufisjr
      @yufisjr Рік тому

      I want more from my favorite channel. Dont be like Brackeys haha. Tell me if I can help, thanks :)

  • @Layarion
    @Layarion Рік тому

    bold of you to assume i know wtf serialized means :P

  • @DemsCreates
    @DemsCreates Рік тому +1

    We're so back.

  • @DiegoCastares
    @DiegoCastares Рік тому +1

    So happy to see you back! 🎉

  • @StratoCatster
    @StratoCatster Рік тому +1

    I remember you and you awesome...❤

  • @tskingtter-stepanyan5993
    @tskingtter-stepanyan5993 Рік тому +1

    Thank you! So easy and in 1 min video! You're awesome!

  • @tomaslaaperi5849
    @tomaslaaperi5849 8 місяців тому +1

    i love short and exact videos like these

  • @TheKr0ckeR
    @TheKr0ckeR Рік тому +1

    I love that! Thank you man.

  • @firstprimehunter
    @firstprimehunter Рік тому +1

    Can you implement this feature in 3D? Like if you made levels out of blocks

    • @Tarodev
      @Tarodev  Рік тому

      Absolutely. Just convert the xy to xz 😊

  • @Viski982
    @Viski982 Рік тому +1

    Man you're great

  • @Ricochetaglet
    @Ricochetaglet Рік тому +1

    My God!! 😎

  • @vic_710
    @vic_710 Рік тому +1

    idk why I read the grids as "girls", ig I'm just too lonely

    • @Tarodev
      @Tarodev  Рік тому

      Sorry to disappoint 😂

  • @olegrolik
    @olegrolik Рік тому +2

    there is the source code?

    • @Tarodev
      @Tarodev  Рік тому +3

      Woops. I'll add it in a tick

    • @olegrolik
      @olegrolik Рік тому

      @@Tarodevthank you!

  • @orangepeals7210
    @orangepeals7210 Рік тому +1

    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
      @Tarodev  Рік тому +1

      Checkout my old school grid series. You can use this technique in conjunction with that series

  • @vigscodes
    @vigscodes 8 місяців тому

    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
      @Tarodev  8 місяців тому +1

      Nope. It's that people don't know about it. I didn't even know about it for many years.

  • @steviedev
    @steviedev Рік тому +1

    wooooooooooh!!!!

  • @larryd9577
    @larryd9577 Рік тому

    king

  • @mehmeh8883
    @mehmeh8883 Рік тому

    👑

  • @thegreenfox011
    @thegreenfox011 Рік тому

    :)

  • @ccoodduu
    @ccoodduu Рік тому +1

    I would have liked to know this a year, hehe. Very informative video. Thank you!

    • @Tarodev
      @Tarodev  Рік тому

      You know it now 😊

  • @FistFullofShrimp
    @FistFullofShrimp Рік тому

    Incredibly happy to see this post! You're the best Tarodev. Don't leave us so lonely out here bby!!! 🍤

  • @unluckyyooo6598
    @unluckyyooo6598 2 місяці тому

    Is there way to check if there is a grid above me before I insstantiate a grid above me?

    • @Tarodev
      @Tarodev  2 місяці тому

      @@unluckyyooo6598 define 'above me'. If you mean where your character is, you can get the world location of any particular cell (on phone so can't give you the name) and check if it overlaps with your characters world location.

  • @Ryöken17
    @Ryöken17 2 місяці тому

    isometric grid, rotate your main camera 45 degres...

    • @Tarodev
      @Tarodev  2 місяці тому

      Not quite buddy...

  • @posidon114
    @posidon114 Рік тому +1

    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
      @Tarodev  Рік тому

      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
      @posidon114 Рік тому +1

      @@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
      @Tarodev  Рік тому +1

      @@posidon114 good luck buddy

  • @rapaltiar
    @rapaltiar Рік тому +1

    Welcome back

  • @erixxl
    @erixxl Рік тому

    Because the hexagon is the bestagon

  • @LetsPlayCrazy
    @LetsPlayCrazy Рік тому

    Ah yes. I totally know what these words meant! Thank you a lot for helping me out!

  • @Sodomantis
    @Sodomantis Рік тому

    Fine. I'll go make a shitty tilebased game then.

  • @MoonGameDev
    @MoonGameDev Рік тому

    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)

  • @ghost8602
    @ghost8602 Рік тому

    I wish this worked in godot :~:

    • @Tarodev
      @Tarodev  Рік тому

      Just download Unity and you're good to go :)