Code Examples
v4.0
Creating a Speak()
method
Speak()
methodWhile there are many ways to play audio, using the PlayClip
method on the Voice.cs
script is an easy way to get audio to play. You can create a very simple Speak()
method to use as well:
If this is attached to your Player()
class, you can then easily get your players to speak with something like:
Last updated