Custom Geometry generation in game

Hi, is there a way to generate custom geometry in game? For example triangle, boxes, or advanced things like weapons, trees, stones which wasn’t added to the unreal editor, you spawn them specially ingame by setting its properties before the game starts, And then texture it.