Don't make grids without knowing THIS in Unity

Don't make grids without knowing THIS in Unity

Tarodev

1 год назад

108,059 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

mikoulol
mikoulol - 20.11.2023 19:29

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

Ответить
Gutzim Mumdo
Gutzim Mumdo - 05.10.2023 11:17

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

Ответить
Layarion
Layarion - 26.08.2023 19:25

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

Ответить
Rizz Lord
Rizz Lord - 25.08.2023 09:28

ambatukaaaaaaaaaaaaam

Ответить
Panagiotis A
Panagiotis A - 23.08.2023 03:06

make this a short.

Ответить
jae jay
jae jay - 22.08.2023 04:11

Thanks mate, looking forward to the next one!

Ответить
HollowedEyeHounds
HollowedEyeHounds - 17.08.2023 21:05

how would this work with vertical grid pieces?

Ответить
Liz Kimber
Liz Kimber - 10.08.2023 16:14

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

Ответить
CapTheObbyist
CapTheObbyist - 03.08.2023 14:43

bro just made a yt short

Ответить
Yi Ou
Yi Ou - 02.08.2023 12:31

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.

Ответить
Ghost
Ghost - 02.08.2023 07:38

I wish this worked in godot :~:

Ответить
Posidonius
Posidonius - 31.07.2023 02:33

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?

Ответить
Nikola Tasev
Nikola Tasev - 30.07.2023 23:03

Awesome!

Ответить
Albin Grahn
Albin Grahn - 28.07.2023 21:16

didn't know this, thanks :)

Ответить
twinfyre
twinfyre - 27.07.2023 17:48

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

Ответить
Davon Allen
Davon Allen - 27.07.2023 16:48

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.

Ответить
SingSingFan
SingSingFan - 27.07.2023 10:37

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?

Ответить
black citadel9
black citadel9 - 26.07.2023 18:28

oh nice. I was just researching how to deal with hex grids

Ответить
ccoodduu
ccoodduu - 26.07.2023 17:12

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

Ответить
Moon Devs
Moon Devs - 26.07.2023 06:16

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)

Ответить
Orange Peals
Orange Peals - 26.07.2023 05:38

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...

Ответить
SUCACU
SUCACU - 25.07.2023 15:06

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.

Ответить
Larry D
Larry D - 25.07.2023 13:49

king

Ответить
TsKinGT Ter-Stepanyan
TsKinGT Ter-Stepanyan - 25.07.2023 01:34

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

Ответить
Dany
Dany - 24.07.2023 23:45

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 ?

Ответить
Tic Tac Toc
Tic Tac Toc - 24.07.2023 04:07

My fav unity channel

Ответить
Gaura Cappelletti
Gaura Cappelletti - 24.07.2023 03:32

can someone explain why this is better than the other system

Ответить
LetsPlayCrazy
LetsPlayCrazy - 24.07.2023 01:23

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

Ответить
ザン
ザン - 24.07.2023 00:54

Damn this is a lifesaver. But whats bad about tilemap compared to this? Can you use them together?

Ответить
JB the WAR Villain
JB the WAR Villain - 23.07.2023 04:04

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.

Ответить
AGreatTsunami
AGreatTsunami - 23.07.2023 01:24

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

Ответить
Andreas
Andreas - 22.07.2023 18:56

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

Ответить
Puddle_11
Puddle_11 - 22.07.2023 07:41

this is a gamechanger

Ответить
Krastyo
Krastyo - 22.07.2023 00:58

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.

Ответить
Jacob Kinsley
Jacob Kinsley - 21.07.2023 12:36

How to use unity effectively:
1) build a different game engine inside unity

Ответить
MEH MEH
MEH MEH - 20.07.2023 17:48

👑

Ответить
Philip Chi
Philip Chi - 19.07.2023 20:20

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

Ответить
shh
shh - 19.07.2023 20:11

Is there a framework that supports this kind of tiling feature in threejs?

Ответить
Ze Great Pumpkinani
Ze Great Pumpkinani - 19.07.2023 18:44

I'm relatively new to unity and have only worked on real time projects so far. Is there an in built system for turns and turn countdowns?

How does that interact with real time animations before a turn is confirmed and ended?

Ответить
Whitefox
Whitefox - 19.07.2023 15:01

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

Ответить
Dardasha Studios
Dardasha Studios - 19.07.2023 07:37

Thanks!!

Ответить
Fist Full of Shrimp
Fist Full of Shrimp - 19.07.2023 01:28

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

Ответить
TheGreenFox011
TheGreenFox011 - 18.07.2023 19:01

:)

Ответить
Aleksandar Prokopovic
Aleksandar Prokopovic - 18.07.2023 13:51

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

Ответить
Άτλας Official
Άτλας Official - 18.07.2023 09:40

What about path finding? Do we also get that out of the box?

Ответить
Badescu Andrei
Badescu Andrei - 18.07.2023 02:47

Because the hexagon is the bestagon

Ответить
JanTheGameDev
JanTheGameDev - 17.07.2023 23:21

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

Ответить
Zbyszek Kiełbasa
Zbyszek Kiełbasa - 17.07.2023 19:36

You forgot to add GridTileBase to the repository

Ответить
R̶e̷n̴a̷n̷ S̷i̷l̸v̵a̵
R̶e̷n̴a̷n̷ S̷i̷l̸v̵a̵ - 17.07.2023 16:12

Hexagonal grids must be annoying to calculate distance and areas.

Ответить