原文链接:
Using Materials in Unreal UIs
How to apply shader effects to your UIs.
7th June 2017
For 90% of the time when creating UIs, using static textures inside Image widgets is good enough. Some of the time static textures are not enough and you need to display a material.
Luckily the standard Image widget accepts both static textures (UTexture2D
) and materials.
Creating a User Interface Material
First we need to create a material that we can use within our UI.Create > New Material
We want to use our material in our UI so the first thing we do is mark it as a User Interface material. We want to be able to make our widget semitransparent so we will set the Blend Mode to Transparent.