<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Shooter Game Tutorial]]></provider_name><provider_url><![CDATA[http://shootertutorial.com]]></provider_url><author_name><![CDATA[andrzejkoloska]]></author_name><author_url><![CDATA[https://shootertutorial.com/author/andrzejkoloska/]]></author_url><title><![CDATA[UMG: Adding materials]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><img class="alignnone" src="https://i0.wp.com/fat.gfycat.com/GentleLegalCoelacanth.gif" alt="" width="568" height="156" /></p>
<p>This will be quick and easy tutorial but I need to be sure you guys know that <strong>you can add materials to your UMG widgets</strong>.</p>
<p>Just one simple goal:</p>
<ul>
<li>Make health and armor bar more attractive,</li>
</ul>
<p><!--more--></p>
<pre><strong>This Tutorial has been created using Unreal Engine 4.8.2</strong>. 
Make sure you are working on the same version of the engine.</pre>
<p>Every time you see texture reference in your widgets you can assign material instead of texture. When working on UMG Material be sure that:</p>
<ul>
<li>It&#8217;s Unlit,</li>
<li>It&#8217;s using Translucent or Masked or Additive blend mode,</li>
<li>It won&#8217;t be heavy. Basically HUD is displayed always on screen and it&#8217;s taking lot of space. Translucent materials are heavy even on PC,</li>
</ul>
<p>There are some limitations to be aware of:</p>
<ul>
<li>Customising UV will look weird on hi-end Mobile even if you are using customised UV channels,</li>
<li>Customising UV won&#8217;t be seen on low-end Mobile devices. For example if you are animating texture it won&#8217;t be animating on device,</li>
<li>Material parameters won&#8217;t work, but as far I can know Epic is working on it,</li>
<li>World Position Offset isn&#8217;t working,</li>
</ul>
<p>So basically if you are working on PC game you could use 100% power of UMG materials but when working on mobile game keep in mind that some features aren&#8217;t supported!</p>
<p>Thanks to materials you are able to create cool effects for your UI. Good example is Crysis shield:</p>
<p><img class="alignnone" src="https://i0.wp.com/www.wikinoticia.com/images2//ecetia.hipertextual.netdna-cdn.com/files/2013/03/crysis-3-armadura-escudo-ceph.jpg" alt="" width="770" height="433" /></p>
<p>It can be done using UMG and materials without a problem.</p>
<hr />
<p><strong>IMPROVING HEALTH BAR</strong></p>
<p>Let&#8217;s start by improving health bar. Create material from progress bar fill texture.</p>
<p><a href="https://shootertutorial.files.wordpress.com/2015/07/healthbarmaterial.jpg"><img class="alignnone wp-image-748 size-large" src="https://shootertutorial.files.wordpress.com/2015/07/healthbarmaterial.jpg?w=1024&#038;h=606" alt="healthbarmaterial"   /></a></p>
<p>Material is really simple. Just panner animation added to BeamPulse texture.</p>
<p>Now go back to your UMG widget and assign this material to fill image.</p>
<p><img class="alignnone wp-image-749 size-full" src="https://shootertutorial.files.wordpress.com/2015/07/assignmaterial.jpg?w=497&#038;h=647" alt="assignmaterial" width="497" height="647" /></p>
<p>And that&#8217;s all!</p>
<hr />
<p><strong>IMPROVING ARMOR BAR</strong></p>
<p>Do the same thing as with health bar material.</p>
<p><a href="https://shootertutorial.files.wordpress.com/2015/07/armormaterial.jpg"><img class="alignnone wp-image-750 size-large" src="https://shootertutorial.files.wordpress.com/2015/07/armormaterial.jpg?w=1024&#038;h=497" alt="armormaterial"   /></a></p>
<p>Here is the result:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='https://www.youtube.com/embed/by1WzWsaI4s?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0' allowfullscreen='true'></iframe></span></p>
]]></html><thumbnail_url><![CDATA[https://i1.wp.com/shootertutorial.files.wordpress.com/2015/07/armormaterial.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[213]]></thumbnail_height><thumbnail_width><![CDATA[440]]></thumbnail_width></oembed>