Description of situation: I have multiple tilemaps in my game. One for each chunk. I am debugging something by placing a ring of noticeable debug tiles around my current tilemap boarders. Each chunk is Square 64x64, so encompassing this would be 66x66. When I run the code for each chunk to place these debug tiles around my tilemap, it works ONLY on the outside of the the ENTIRE world. This is really strange because I know the placement of each tile is CORRECT as they boarder each side corectly. However, whenever they overlap with another chunk (this is by design), they disapear. I do not understand why this could happen, as tilemaps are seperate from each other and shouldn't intefear with one and another bceause they are on different tilemaps.
#Tiles keeps disappearing when placed in layered tilemap!
1 messages · Page 1 of 1 (latest)
As you can see in the image, the entire world is surrounded by debug blocks
example B:
This is taken from the bottom right quadrant and it shows that they are placing correctly, just not on the overlapping tilemaps
Gemini said something about tilemap bleeding and they all use the same grid, and possibly the draw order overwrites ?
However, I don't think this is the case because each tilemap is seperate and i couldn't find much on google about tielmap bleeding.
The code is correct because I run the same code on EACH chunk. The same code. So the side effects of something going wrong should appear on every tilemap.
📃 Large Code Blocks
Use links to services like:
https://paste.mod.gg/, https://hastebin.skyra.pw/, https://paste.ofcode.org/, https://paste.myst.rs/
📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To format as C#, add cs to the first line:
```cs
// Your code here
```
Add a comment with a line number if there is an error message.
Also, the side effects of something going wrong do seem to be appearing on every tilemap, that's why none of them draw the border correctly
A tool for sharing your source code with the world!
Can you send a screenshot of your heirarchy view of the scene?
I'm looking through your code and the docs and I don't have the exact solution just yet, (I'm struggling to understand the code a bit since not everything is shown)
But one thing to try is to move the "chunks" away from each other and then try generating the boundary, and see if the same issue persists. If it does, then the issue is in the code for generating the boundary positions, and if it doesn't then the issue is specifically the overlap of the two.
Sorry, the code is a bit messy because it has a lot of debug things in there. I'll try moving the chunks away from each other and seeing if anything happens
I tried disabling all the other chunks game object's to be inactive while I added the boarder, but still the same result, then I tried moving the chunks one at a time and placing the boarder, still same result. hmmm This is really strange,
btw thanks for trying :))
yeah still having the same issue, its reallly strange, tried it with a smaller chunk length size, and still the inside tiles do not get the boarder placed.
its 12x12 now
If one tilemap on its own, fully separated from any others, can't generate the border, there's most likely something wrong with the way you assign your borders, i.e. the wrong coordinates