Search Unity

Resolved Drawing audio wave to the custom clip.

Discussion in 'Timeline' started by KevinICT, May 5, 2023.

  1. KevinICT

    KevinICT

    Joined:
    Oct 4, 2021
    Posts:
    13
    Hello,
    Is there a way to draw an audio wave to the custom clip?
    Unity's built-in audio clip shows these graphs as a default and I was hoping to draw these on the custom clip by giving them a reference to audio assets.

    (I am talking about this graph that runs across the clip)
    upload_2023-5-4_21-21-15.png
     
    Last edited: May 5, 2023
  2. KevinICT

    KevinICT

    Joined:
    Oct 4, 2021
    Posts:
    13
    Found solution.
    ClipEditor:drawBackground() - created waveform texture from audio file and applied it with EditorGUI:drawTextureTransparent()
     
    Yuchen_Chang likes this.