Комментарии:
Thank you as for your tutorial.
I have a question. How does this save load system work with assets? Like sprite, sound, prefab,...
For example, I want to save and load sprite at each grid position, and when I save sprite, in the file it writes:
"sprite":{"instanceID":29168}
I am able to save and load normally. But I want to know if it's still the same when I build and run game in other devices? And does it apply to other assets as well?
I am tormented by vague doubts))) 😆 now I will try )
Ответитьand it will work like saving the level and the game itself with loading the game back?
ОтветитьHi @CodeMonkeyUnity!
Can you please give some advice - how to get array of gridNode objects that you creating in test script?
Or may be is exist different metod to get coordinates of all gridNode objects with isWalkable false value?
I LOVE YOU
ОтветитьHi, I can't figure out how to this to work in a 3D environment / along the z axis and not the y? When I try to fiddle with the MeshUtils I can't get it to work. When I just use your code as is, then all the vertices "stand upright" but along the x and y axis.
I have tried looking through your 2d to 3d video, Mesh and Grid Building (and through your project files) but I can't find a solution.
Just want to say: thanks for all the amazing videos!
Took me a bit of tinkering to get everything right but that thought me so much more than any of the superficial yt videos other creators put out!
Really love the fact that you don't use the unity standard functions for everything bc those are really limited when it comes to making something truly custom.
One question though: currently the enum is implemented in the tilemap object and is then serialized in the tilemap visual. what would you suggest to do for multiple tilemap sets (i.e.: ground, props, walls etc)? create a custom tilemap object for each and everyone? Or forego the specific naming altogether and just name the enums after quadrants of same sized materials? Would rly appreciate your input on this!
Thanks!
ОтветитьWould there be a reasonably ... "simple"? way of building colliders into this to prevent players going through walls? You might already have a video on it but I couldn't find anything
ОтветитьHello Code Monkey! I have a question. How do we convert this for a hex grid like in the latest videos? I tried to use this for my hex grid but the tilemap is not created correctly. Thanks in advance and have a nice day!
ОтветитьSo I think I’m going to use scriptable object to make a 3D dungeon. This should work pretty well as long as I don’t try to overlap pieces. The scriptable object will just save the prefab and height.
ОтветитьCould anyone share a working version of the .cs files or the project by a git repo? I am pretty sure that many visitors are unable to make it work after hours of researching... thank you!
ОтветитьMy visual grid has huge gaps in between each cell but my code is exactly how it is in the video. How do I fix this????
ОтветитьIt's not shown in the video, but towards the end of adding saving and loading, you also need to add the Tilemap parameter to the calling of the SetGrid function.
It threw me off I didn't see it mentioned in the video, so I went back and rewatched it because I thought I missed something.
Hey Code Monkey - I'm interested to hear how you'd implement collisions into the tilemap? What if you were creating these tilemaps for players to explore and didnt want them running through wall tiles?
ОтветитьI started following your channel and learned a lot of things I didn't know before. Thanks for all the detailed explanation which helps me to make my codes cleaner and easier to use.
I used to hard code all the logic and waste tons of time on unnecessary places, and now I start to use generic class and namespace to store methods that can be reused in other projects, plus some cool system features I learned from you.
It's great to find an awesome mentor like you on the internet.
With any grid above 100*100 my width is staying stuck at 100 and height increasing only it seems. The mesh starts to look all distorted... any idea? Is this something like max vertices in a single mesh? I would have to create multiple mesh' at this point?
Ответитьyou’re an amazing person
ОтветитьI added the MeshUtils and followed everything but somehow all I get are a few yellow lines that are drawn over my grid randomly, I can't get the color from the black red yellow green texture to be applied in the grid, it's all transparent with None/Ground, and then those weird yellow lines. Any idea what I'm missing?
ОтветитьI've been following your great tutorials around the grid system & pathfinding, thank you so much for these tutorials! This is my next hurdle.
My first question is should I make another grid entirely for this tilemap, or edit the PathNode object to include the sprite stuff and just have one grid of objects?
Second question: I have my tilesets set out seperate for grass, dirt, water, with corners, sides, etc for each, I've imported them using normal unity tilemap and cutting them out with multiple on sprite editor and painting a scene just for testing purposes. But whats the best way to use these or turn them into what you've done? Should I have all water/grass/dirt on one big mesh renderer thing and use a vector to select which one? Is there a smart way to group them by grass/dirt/etc?
Hey Monke, is there any chance of getting this to work with tilemap chunks and auto-tiling?
ОтветитьWhy o why would you have so many classes inside of other classes? Its bad practise to have a class within a class
ОтветитьHey CM do you reccomend using this grid system for inventory and quick item slots? Or should I just use the other tutorial you made?
Ответитьhello/ i imported the Project files and Utilities from package in link, and when i run the game i just see gray screen. Can you help me? what can be a problem?
ОтветитьDude slow down, wtf
ОтветитьIt is possible to do in 3d?
Ответитьhey small problem when I click on the square its not changing from none to ground
the part that it is not working is the SetTilemapSprite
update fixed it
Hello CM!
I was wondering if you could help me out.
I am currently trying to do this Tutorial, but some things just dont want to work sadly.
Following the tutorial step by step (Using your Grid system implemented in another video) i get an Error:
"The non-generic type 'Grid' cannot be used with type arguments"
This is spat out for multiple lines.
Even if I copy your script from the UnityPackage provided for download (awesome btw!), it does not work.
Trying to see if i have done something wrong i tried the "GameScene_Tilemap" which is in the tilemap assets folder where everything seems to be set up. Sadly the GameHandler and other Objects are missing Scripts.
Since there is no README included i want to ask you if you know of a possible solution for this project. I really love the idea and would love to get it working.
Keep up the great work CM!
Someone has a clue about how to use this system with a Tileset? because this system is a little bit hard to use with 2d games with a side look :(
ОтветитьWhen you create the constructor for the tilemap on the function part you send as a parameter grid. when it should be g.
Just letting other know since it took me a while to figure out.
I don't like the packaging of the Util class with everything in every project. Tons of useless junk in packages. Also the Utils class is just a nice way to hide the fact Camera.main is used everywhere. This is not code you should use. Nor should you hide it in such a manner. Shame on you.
ОтветитьMy tilemap cells are larger in size in compare to grid cells size. Any idea why that happens.
ОтветитьHey, I just wanted to know if there any significant performance differences between your tilemap system VS Unity's built-in tilemap. I'm thinking about digging into some large scale procedural generation and this system seems practically perfect for that, but at the same time, I want to know if there's a significant performance difference between the two because then I'll have to choose the built-in system instead to decrease the performance hit (even though jerry rigging procedural tile generation in the built-in will be more difficult in the short term). Which do you think will be better from an optimization perspective? This or built-in?
ОтветитьHello, I tried making the tilemap account for variable tile sizes, and therefore render the quads at different sizes, but it leads to overlaying quads. Is there a way to control the rendering order of individual quads? I tried sorting them by the Z axis and also by flipping the order in which they're updated, but nothing seems to work. As it stands right now tiles higher on the y axis always render in front. Thank you for all hypothetical responses!
ОтветитьHow can I use it isometrically?
ОтветитьI don't understand how do you make your tilemapvisual to be visible in play mode? I added the scripts and the visuals but still cannot see the black grid that you have in your video
ОтветитьIs there a reason you would use this over unity's built-in tilemap system?
ОтветитьHow can i do this with job system ?
ОтветитьHas anyone found a solution they like for determining and updating the transitions between different tilemap types, such as corners and edges of dirt up against path or grass tiles etc?
Ответить