Hello world !
I got a question:
I’m developing a widget that sets my light temperature and intensity, its working, but i would have to turn on and off my light so it will update. And would be better if it react in real time.
I’m triggering it by line trace by channel. So on first click it would open de sliders and turn the lights on, the second click it will just close the widget, and the for the last it would turn the light off.
I understand that I would’ve to manage to update light not only when i cast the line trace (what its happening right now), but on “tick rate” or on “mouse capture end” ( … maybe), but I’m failing on manage that.
1- Light can be set to Movable in the details panel under transformation, this makes it Dynamic.
2- Set the timer when you want to begin the interaction, so if you’re using a slider with the left mouse button, use it on button is first clicked, but remember to only trigger it once, not while the button is held.
Then clear and invalidate when button is released.
And the event that is plugged into the timer is this
I think the getter works fine since the lights are turning on, right?
But the light changes when you begin the interaction, so when he begins an interaction it applies the previously cached values.
Am I misunderstanding?
No, what you said worked fine! Lights are updating in real time, but now they are not turning off.
I guess i called the “completed” to my other bp in a wrong manner, would it be by blueprint interface ?
Make this select node with 1 and 0 (If that messes up your widget then make it 2 and 0), plug lights on to “Pick A” and the output to the Start index of your multigate, here
I guess the light doesn’t turn off because I couldn’t understand how to call the “completed” to my timer handler. It would be by the blueprint interface ?
I used the “clear and invalidade” of one to set the other.
Tried some here and seens to work for now!! Thank you guys for your support !
Specialy you SpectreKelevra !