LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

PlayableExtensions.GetDuration

public static double GetDuration(U playable);

Parameters

playableThe Playable used by this operation.

Returns

double The duration in seconds.

Description

Returns the duration of the Playable.

NOTE: This is a templated extension method that can be used on any type that inherits from IPlayable