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

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

Parameters

playableThe Playable used by this operation.
valueThe new speed.

Description

Changes the speed multiplier that is applied to the the current Playable.

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

This affects the speed at which the local time is incremented when the Playable is playing.