OK so i made a flashlight out of a spot light and i also created a widget (with a button in it) and i have that button showing on screen. I want to be able to click the button and turn the flashlight on and off. The problem is i don’t know how to do this as the flashlight is in a separate blueprint than the widget, any help would be great thank you.
Just call a function of flash light
https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/BlueprintComms/index.html
there many ways hoiw you can access flashlight object from widget
Im new with this though can you show me an example picture or something that would be very helpful thanks
see i already know how to do that i saw some tutorials online but when i did it the button just didnt work. (sorry for the inconvenience)
also when i put it on my phone it doesnt even show the light from the flashlight (its set to be on when it starts)
I tried what you said and it isnt working
Sorry to dissapoint You, but Your problem is the fact, that Movable lights are not supported in the mobile builds… all You did is probably fine, the light is just not computed on the device
Ah you right since it year old question i will convert your comment to answer and mark it as anwsered