Answered

Playing audio in Clip Editor

Anonymous 3 years ago updated by Erik Hermansen 3 years ago 3

I am creating an animation, and I need to sync it to an audio clip. How can I play an audio clip in the clip editor if that's possible?

UMotion Version:
latest
Unity Version:

Answer

Answer
Answered

Hi,
thank you very much for your support request.

Yes you can do that by using Unity Timeline and sync UMotion with Unity Timeline. I tested the following in Unity 2020.3. Audio scrubbing might not be available in old Unity versions. Here's how to do that:

  1. Create an empty GameObject in your scene and add an audio source component to it.
  2. Open Unity Timeline (Window --> Sequencing --> Timeline).
  3. Make sure your empty GameObject is selected and then click on the create button in Unity Timeline to create a new sequence.
  4. Click on the "plus" button and select "Audio Track".
  5. Right click on the empty track and select "Add From Audio Clip". Then select the audio clip you want to add.
  6. Make sure that audio scrubbing is enabled by going into "Edit --> Preferences":
  7. Make sure that your character is assigned to the UMotion pose editor.
  8. Place the timeline window and the clip editor window next to each other. In case timeline isn't displaying your sequence, select your empty GameObject again in the scene view.
  9. Then click on "Sync --> Timeline Window --> No Offset" in the UMotion clip editor. Now the frame cursor of UMotion's clip editor and Unity Timeline move in sync thus also the audio is previewed in sync.


PS: In case audio preview isn't working, make sure that "Mute Audio" is disabled in the game view:

Please let me know in case you have any follow-up questions.

Best regards,

Peter

Answer
Answered

Hi,
thank you very much for your support request.

Yes you can do that by using Unity Timeline and sync UMotion with Unity Timeline. I tested the following in Unity 2020.3. Audio scrubbing might not be available in old Unity versions. Here's how to do that:

  1. Create an empty GameObject in your scene and add an audio source component to it.
  2. Open Unity Timeline (Window --> Sequencing --> Timeline).
  3. Make sure your empty GameObject is selected and then click on the create button in Unity Timeline to create a new sequence.
  4. Click on the "plus" button and select "Audio Track".
  5. Right click on the empty track and select "Add From Audio Clip". Then select the audio clip you want to add.
  6. Make sure that audio scrubbing is enabled by going into "Edit --> Preferences":
  7. Make sure that your character is assigned to the UMotion pose editor.
  8. Place the timeline window and the clip editor window next to each other. In case timeline isn't displaying your sequence, select your empty GameObject again in the scene view.
  9. Then click on "Sync --> Timeline Window --> No Offset" in the UMotion clip editor. Now the frame cursor of UMotion's clip editor and Unity Timeline move in sync thus also the audio is previewed in sync.


PS: In case audio preview isn't working, make sure that "Mute Audio" is disabled in the game view:

Please let me know in case you have any follow-up questions.

Best regards,

Peter

Amazing! Thank you very much!

Thanks very much for the detailed and helpful answer. I was able to get audio scrubbing working with UMotion using your help.

My UI in Unity 2019.4.29f was a little different and didn't have an "Edit Preferences" option that I could find. For anyone else who had difficulty in locating the "Allow Audio Scrubbing" option, try clicking on the gear icon in the top-right corner of the timeline window.