playMaker

Author Topic: Get audio/animation length?  (Read 2143 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Get audio/animation length?
« on: August 20, 2021, 05:49:40 PM »
Hi, I need to get an animation or audio clip length is there any action for this? thnaks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get audio/animation length?
« Reply #1 on: August 21, 2021, 02:03:09 PM »
Hi.
I made this action a while ago.

it can get the clip time, but it must be used inside a animator

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: Get audio/animation length?
« Reply #2 on: August 22, 2021, 02:15:47 PM »
Hi.
I made this action a while ago.

it can get the clip time, but it must be used inside a animator
//
Thanks you. It works nicely, Is there same action for audio clips too?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get audio/animation length?
« Reply #3 on: August 22, 2021, 06:19:50 PM »
Hi.
You can find it on the Ecosystem.

i case you have issues with the Ecosystem, here is a direct link

https://github.com/PlayMakerEcosystem/PlayMakerCustomActions_U2018/blob/master/Assets/PlayMaker%20Custom%20Actions/Audio/GetAudioClipLength.cs