Answered
0
0

Hi,

Could Someone help with script changing parametr attached to sprite ??

This is simple Drag and drop based on UI panels. What i want to do is to change parametr attached in “Violin” when droping on “violinslot”. Music will fade in and fade out when violin will be taken away.

I know that i should use EventTrigger Componet on panel
https://i.imgur.com/WTWmUHf.png

  • You must to post comments
Best Answer
1
0

If the violin is a separate event, you could add volume modulation in Studio to make it fade in and fade out instead of a parameter.

Otherwise if the violin is an instrument in an event you want to turn on and off, StudioEventEmitter has a SetParameter function that takes the name and value of the parameter you want to set.

  • You must to post comments
0
0

Hi thx Cameron
Violin is a separate event. I want it to start playing with the game with 0 volume and change volume to 100 when put violin sprite in slot

https://imgur.com/a/DxbMO

https://imgur.com/a/CujIq

p.s
collisions doesn’t work on UI Panels. We have to do it via Add Script–> Event–> Event trigger. thats why i need script or something else. I just dont know what should i do

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.