top of page

Shadows in UMG

  • Oliver Stanton
  • Oct 17, 2021
  • 1 min read

From what I've seen on forums and other websites, there isn't a simple way to make shadows in UMG. The best solution is just to make an image that acts as the shadow, but when you're working with materials in the UI normally, a different approach is required. By using a RadialGradientExponential and plugging that into the Opacity of a Translucent UI Material node, a simple drop shadow can be made. Changing the size of this then can change the strength of it, however this is extremely limited in how far the strength can go, and how accurate it is. Not only this but the shadow works best for rectangular images with rounded corners, and looks off and weird on pointy corners and non-square or circular images (circles work because the gradient is circular to start with, and is just drawn as a Box with 0.5 Margins). Changing the Image Size also affects the strength of the gradient, and I found that using an image being -8 Offset on all sides with the Image Size being 48 to be a good strength.



Comments


bottom of page