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.SetTime

public static void SetTime(U playable, double value);

Parameters

playableThe Playable used by this operation.
valueThe current time in seconds.

Description

Changes the current local time of the Playable.

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