gabriel
New Member
Posts: 29
Posts: 29
|
Post by gabriel on Sept 15, 2015 2:44:12 GMT
I notice that for a single instance of the Event Sound Component, you can't have the same Event to Activate (e.g. 2 Button Clicks). If you try to select "Button Click (uGUI)" from the drop down again, you'll see it's not there. So, if I want two sounds to fire on a particular button click, I have to make 2 instances of the Event Sound Component and select "Button Click" as the Event to Activate on both. Is that true? Would be nice not to have to make another Component and be able to have 2 Button Click Event to Activates on one Component.
|
|
|
Post by DarkTonic Dev on Sept 15, 2015 3:45:40 GMT
That's correct, you can only have one of each event if it's not a Custom Event or a Mechanim Sound. However each event (like Button Click) can have any number of Actions. Go ahead and add more actions if you need it to do more than one thing.
|
|
gabriel
New Member
Posts: 29
Posts: 29
|
Post by gabriel on Sept 15, 2015 12:02:09 GMT
Ah, I see. I the "add" button to add another action when a Button Click happens. Is it more resource intensive to add a whole new Event Sound component, or is it about the same to "add" another action on Button Click with the same Event Sound Component?
|
|
|
Post by DarkTonic Dev on Sept 15, 2015 15:26:59 GMT
I wouldn't add a 2nd EventSounds, just to keep things tidy. Since everything is event-driven, it's not more resource intensive though unless you're using the Mechanim event which has a update loop.
|
|
gabriel
New Member
Posts: 29
Posts: 29
|
Post by gabriel on Sept 18, 2015 11:45:16 GMT
Thanks for the advice! Can't believe I missed that "add" button instead of adding a whole new Event Sounds component...
|
|
|
Post by DarkTonic Dev on Sept 18, 2015 15:13:45 GMT
No problem!
|
|