Hi all… I’m pretty new to Unreal and BP but have been developing software for years.
Using the First Person Blueprint template, I’m trying to create a proof of concept where I have a “Plane”, that will display an image. Think road side billboard.
I dragged a JPG file into the project, right click, created a material. Assigned that material to the Plane. Created a BP out of that plane.
In the Plane Blue Print, I am subscribing to the On Component Hit event and printing a string when a projectile hits the plane. This is working.
Ultimately, what I want is the actual path and name of the JPG file that’s attached to the material, that’s attached to the Plane. Reason is, I need to take the JPG file and send it somewhere else for processing.
So basically, I shoot at the plane, On Component Hit fires, I need to get the StaticMeshComponent get the material, get the Texture, get the file name of the JPG file.
I was hoping that Get Material Index would help me out but, my lack of understanding how this function is working is stopping my progress. The documentation for this function does not say much. Which to be honest, I’m not even sure this would be the proper function in the first place.
This is the beginning of my Plane Blue Print. I know there is a LOT more to add.
Any help will be greatly appreciated!!!