How to create a new collision layer in TileMap?

Hi All,

I’m looking a way to add a new collision layer in TileMap, or mark some tiles as collision in visual layer. Looks like this functionality was missed from Tile Map editor.

I checked source of STileLayerList.cpp and there is a method to add a new layer:

void STileLayerList::AddNewLayerAbove()
{
	AddLayer(/*bCollisionLayer=*/ false, GetSelectionIndex());
}

This bCollisionLayer flag should mark a new layer as collision, but it’s always false in code. I tried to replace its value with true, and editor began to draw white squares for each tile, which looks like an expected behaviour, but my character still can move through these tiles without any affect.

My question is, should I report a new bug for this missed functionality or this editor is still in progress (I think only this one button is missed)? And, what else should I change in code to make this white squares really represent a collision?

I use editor 4.7 preview 5 and MacOS 10.10.2

I found a comment in code that 2d collision isn’t supported yet, so I switched a Sprite Collision Domain to “Use 3DPhysics” and now it works, I can’t move my character through these tiles. In any case, this button is still missed on UI.

Hi NeoShka,

TileMap is still experimental feature not fully implemented, and as you discovered, 2D collision is not currently supported. Until TileMap is moved out of experimental state, it’s going to be somewhat limited. I’m glad you found a workaround for your project, though!

How did you got that working? I switched to 3D collision but I am still falling through my tilemap