Still in the learning curve of making blueprints. I’m having trouble with adjusting the location of the spotlight components in the blueprint after having fixed the relative transform of the main static component I’m trying to attach to.
I have attached some screenshots along with this post. Im making this blueprint for a spotlight track lighting where I can adjust the length of the track and increase and decrease the number of spotlights according to my project on a single blueprint. https://imgur.com/C5YMyKV
The error occurs from this point on.
And looks like this in the editor.
Any suggestion(another way) or help with this would be greatly appreciated. I’m all out of ideas to proceed with this.
I want to adjust the location and angle of the spotlight component(not the static mesh component) like the second picture for reference. The one on the right is from another blueprint I made where I only stacked the spotlight mesh and the spotlight component together without creating any construction script or event graph, but in that, I had to create 3-4 separate blueprints and use them separately everytime I needed to place a spotlight track lighting in my project. I wanted to create a single blueprint where I can simply adjust the settings of the blueprint(like a procedural mesh). Everything was fine in the blueprint until I added the spotlight component (for light), and I cant seem to figure out the solution to bring it to a position to match this.
Ideally, I want it to look like the one in B(which is a blueprint without the scripts), and not A(the blueprint with the issue).
Would you happen to know any solution to this? I would be grateful for any suggestions or help.
Ok, just to get the real spot in line with the mesh.
Very easy, once the mesh is set up correctly. Basically, you need the X axis pointing out of the part where the light comes out. Then you can just give them both the same transform.
Sorry if I didn’t make myself clear, I have attached a video showing the function of the blueprint. I want the location of the spotlights in relative to the mesh, but not in an exact X=0.0, Y=0.0, Z=0.0 location. The problem is that I want to be able to adjust the angle of the spotlight component without compromising the ability to move the spotlight component together with the mesh(increase the numbers etc).
Thank you, I’ll try to look into the scene component(haven’t used one before). I hope it works.
I’ll attach the spot mesh too. ST_Lgt_Spot.uasset (106.2 KB)
Thank you so much for the solution!! I’m sorry for the late reply since I had to leave work at the time I sent the last message. I tried it this morning and it works!! Thank you so much once again!! Theres so much to learn, and I’m so grateful that angels like you exist to help newbies like us.