Media Textures & Materials won't generate dynamically in BP
Hey fellow devs!
My goal is to construct a full videoplayer when firing an event.
I am constructing a File Media Source, fill it with a path, construct a Media Player and a Media Texture. Then I take a material with a texture parameter named "media", create a dynamic material instance of it, set the constructed Media Texture as new Texture parameter and assign the Material to a static mesh. Last but not least I assign the Media Texture to the Media Player and open a File that should be played.
The result is a gray material on my static mesh and a "LogUObjectGlobals:Warning: Failed to find object 'Class None." in my Output Log.
Also when I try to convert the Texture Input of a Media Texture to a Texture Parameter I get the Error "Param2D> requires Texture2D". Meaning that a Media Texture isn't technically a Texture 2D and due to that won't work as a parameter?
Maybe there is something very simple I just missed?
Hey Schnittbrot and anyone else having this problem, If you left click on the drop down in ("Your Material">Material Expression Texture Base>Sampler Type) you should see "External". Just select that and you should be good. Just on here looking for answers to my own issues thought I would help out....
answered Jun 21 '18 at 08:31 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here