I’ve added a sprite component to a blueprint. I’d like to add functionality to the blueprint graph to set the alpha-transparency of the sprite. I can’t seem to find a way to do that, nor any related properties on the sprite.
Hello,
Sprites are created from textures, not materials, so by default they do not have transparency. You should use a “Material Sprite” with a material that has a parameter feeding into the alpha value. Then you can create a Dynamic Material Instance from it, adjust the parameter and set it to the sprite again. That will let you adjust the alpha of the sprite. Please let me know if this has helped.
Cheers!
Alexander
Hi Alexander, thanks for your answer, I too am working on something wherein I would like to implement alpha transparency to sprites in order to harness their collision system instead of having to manually ‘cut out’ geometry with materials for the same result.
Can you elaborate on these so called ‘material sprites’ as I can’t find any reference to them anywhere on the web other than this post. How do I go about creating them and do they still allow the generation of collision domains?
Hi Prizm Izm,
This is an archived post from our Beta users and is here only for reference. If you have any questions on this subject please feel free to create a new question.
Thanks, TJ