Text Animator for Unity
More ToolsTutorialsDiscord✨ Get Text Animator ✨
1.X 🇬🇧
1.X 🇬🇧
  • Installing and quick start
  • Effects
    • How to add effects to your texts
    • Built In Effects List
    • Creating effects in the inspector
  • Typewriter
    • Text Animator Players
    • Triggering Events While Typing
    • Performing Actions While Typing
    • Text Animator Players Sound
  • Extra Customization
    • Writing Custom Effects C#
    • Writing Custom Actions C#
    • Writing Custom TAnimPlayers (C#)
  • Integrations
    • Integrated Plugins & Dialogue Systems
    • How to manually integrate Text Animator
  • Info
    • Support
    • Changelog
Powered by GitBook
On this page
  1. Typewriter

Text Animator Players Sound

PreviousPerforming Actions While TypingNextWriting Custom Effects C#

Last updated 7 months ago

You're reading the documentation of an older/legacy version, Text Animator 1.X. To read the latest version, please visit this page instead . How to update:


To implement typewriter sounds in your game, you can subscribe to the TextAnimatorPlayer's "OnCharacterVisible" event and play sounds based on it.

The event passes a "char" as a parameter, so you can play different sounds based on different letters as well.

P.S. The event is not triggered with spaces.


Example Package

As an example, you can install the "TypeWriter Sounds" package found inside the "Extra" folder and check its implementation.

  • Source: main audio source where sounds will be played.

  • MinSoundDelay: minimum time that has to pass before playing another sound.

  • Interrupt Previous Sound: If true, the previous audio will be stopped.

  • Random Sequence: If true, the next audio clip to play will be chosen randomly from the "Sounds" array. If false, sounds will be played subsequently.

  • Sounds: Typewriter sounds to play.

2.X 🇬🇧
Upgrading from 1.X to 2.X