#These are two seperate tilemaps, and in

1 messages · Page 1 of 1 (latest)

subtle steeple
#

@trail geyser Here

#

Its here what i mean by higher index. the one that is higher in index is the one rendering before the other

trail geyser
#

you mean the tiles?

subtle steeple
#

Yes

trail geyser
#

I'm confused are there more than one tilemap or no

subtle steeple
#

The first two are my tilemaps

trail geyser
#

the two tilemaps look 100% identical

#

there's nothing that will disambiguate or sort them visually

#

so which one is drawn on top is more or less random

#

basically chosen by object id in the engine

#

this is what sorting layers and order in layer are for

#

use them

subtle steeple
#

SO i create a single tilemap and put the two sprites in there ?

trail geyser
#

I never said that

#

I said use the sorting layer and order in layer settings

#

If you want to tell the engine which tilemap to draw on top

subtle steeple
#

they both are at 0

trail geyser
#

Yeah

#

that's exactly the problem

subtle steeple
#

So what is the fix

trail geyser
#

set the one you want to draw on top to a higher order in layer

subtle steeple
#

i want to drwa both in the same level

#

Thats my whole issue

trail geyser
#

that doesn't make sense

subtle steeple
#

the thing is its wierd. Whatever i put here second renders on the top layer.****

trail geyser
#

I mean this is some custom script of yours

#

so i have no idea what it's doing

subtle steeple
#
    private void GenerateGrid()
    {
        for (int x = 0; x < gridWidth; x++)
        {
            for (int y = 0; y < gridHeight; y++)
            {
                    Vector3Int tilePosition = new Vector3Int(x, y, 0);
                TileBase randomTile = grassTiles[Random.Range(0, grassTiles.Length)]; // Randomly select a tile
                tilemap.SetTile(tilePosition, randomTile);
            }
        }
    }
#

This is all its doing

#

nothing else

trail geyser
#

then the order in that list shouldn't do anything

subtle steeple
#

Exactly, but it is

#

🤯

#

That's why i am requesting assistence

trail geyser
#

I don't understand what the multiple tilemaps are for

#

or how that was relevant then

subtle steeple
#

Can we just have a call, i think that would be easier

#

if you are available of course

trail geyser
#

I'm not available for a call

subtle steeple
#

Then what other approach would you suggest? a single tilemap?

trail geyser
#

I don't know what you're trying to accomplish so I can't suggest any approach

subtle steeple
#

Okay

#

so basically