Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

[Solved~] Handful of Qs (Audio, wrapping, etc)

A topic by Buttons created Oct 10, 2017 Views: 324 Replies: 2
Viewing posts 1 to 3
(1 edit)

Hey Kai - I've loved what other people have done with your tool, but I've never given it a proper dive-in until now - and I might have bitten off more than I can chew.

The setup I'm currently trying to get up and running is using Super Text Mesh for dialogue UI, using  Yarn Spinner to feed Yarn-file-based dialogue text to STM, and finally, using Wwise for audio black magik. The most immediate thing I've noticed is that while STM offers a variety of audio options, they seem to rely on Unity's built-in audio system. I'm not sure how to bridge the gap outside of STM -- any thoughts on being able to call Wwise events from STM? For reference, the code for that is essentially: AkSoundEngine.PostEvent("NAME_OF_THE_EVENT", this.gameObject).

Additionally, I've been messing around with text wrap settings, but STM keeps wanting to wrap partially-completed words, rather than giving them a new line to live on. I'm sure there's a setting for this, but I don't know where I'm not finding it.

Thanks in advance for your help, and a belated thanks for making such a rad tool.

Developer

Hey!

I've never used Wwise before, but if it has functions similar to Unity's built-in audio source, it can probably be swapped out?

The only major functions you'd need are Play() and Stop(), and some way to change the pitch of an audio source, and what clip is currently being used. Try making the "audioSource" variable an "AkSoundEngine" instead of an "AudioSource", see what breaks, then replace with similar variables? I'm completely guessing at the functionality of this class, but this is how I'd do it!

For the text wrap, try checking and unchecking the "break text" boolean, that setting should be the cause of what you're describing! It's good for some situations, but not most.

(1 edit)

Oh my gosh I clearly need to get more sleep. I just realized you've included the code with STM. And that second answer - of course it's as simple as that!

Jeez, you're a saint. Thank you so much! I'll come back when I have actually tricky questions.