Set material close on the edges of an object?

Is it possible to set some material on surface that is close to the edges of an object (not to use Vertex Painting)? Like dirty places in the areas of the corners of the walls and floor.

You are talking about ambient occlusion I presume. This is a texture usually done in a 3d package. In UE4 you can then use this texture as an alpha to blend in textures of dirt.

Hello , thanks for your respond. I am actually taking how to achieve effect of dirty edges of the object without to use UV mapping in some 3d software or without to use Vertex Painting. Is there a system (script, code) in Material Editor or Blueprint Editor which determine the close surface around the edges of the object and blend it with dirty texture? The object can have different forms and sizes