gabriel
New Member
Posts: 29
Posts: 29
|
Post by gabriel on Jan 22, 2016 21:19:28 GMT
I've got three animations that I'm designing a sound to. Each is associated with a prefab and has an Animator component. I open the Animation window (cmd +6) and I can see the anim state name there (e.g. CueUnlock, LevelUnlock and Skill Unlock). One of the sounds works when I tell MasterAudio to play a sound when that state is entered (SkillUnlock), but not for the other two.
Any ideas on what I might be missing?
|
|
DarkTonic Dev
Administrator
Posts: 4,390
Posts: 4,390
Member is Online
|
Post by DarkTonic Dev on Jan 22, 2016 22:02:22 GMT
We use this a lot and haven't seen it fail before. I am not sure how to debug this since the script is assigned in the Mechanim window...
If no errors in Console window, turn on "log all sounds" to make sure things aren't just inaudible. If they're not playing at all you may need to ask this question about Mechanim state script in particular (script not firing) on the Unity forum. Let me know if you figure it out.
|
|
gabriel
New Member
Posts: 29
Posts: 29
|
Post by gabriel on Jan 26, 2016 21:37:49 GMT
It's really weird. For our game, some animations work fine with this mechanim way of triggering sound, and others don't - can't really figure it out. Maybe it's something that we're doing. Either way, the animation Start way of triggering the audio worked with this specific example, so I'll move on for now.
|
|
DarkTonic Dev
Administrator
Posts: 4,390
Posts: 4,390
Member is Online
|
Post by DarkTonic Dev on Jan 26, 2016 22:51:48 GMT
Ok cool.
|
|