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