Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSpeed<U>(U, double)

Changes the speed multiplier that is applied to the the current Playable.
Read time 1 minuteLast updated 6 days ago

Definition

SetSpeed<T>(T, double)

public static void SetSpeed<U>(this U playable, double value) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

value

The new speed.

Remarks

This affects the speed at which the local time is incremented when the Playable is playing.
Use this templated extension method on any type that inherits from IPlayable.