Extensions for all the types that implements IPlayable.
Extension methods are static methods that can be called as if they were instance methods on the extended type.
no example available in JavaScript
using UnityEngine; using UnityEngine.Playables;
public class ExamplePlayableBehaviour : PlayableBehaviour { void Start() { PlayableGraph graph = PlayableGraph.Create(); AnimationMixerPlayable mixer = AnimationMixerPlayable.Create(graph, 1);
// Calling method PlayableExtensions.SetDuration on AnimationMixerPlayable as if it was an instance method. mixer.SetDuration(10);
// The line above is the same as calling directly PlayableExtensions.SetDuration, but it is more compact and readable. PlayableExtensions.SetDuration(mixer, 10); } }
AddInput | Create a new input port and connect it to the output port of the given Playable. |
ConnectInput | Connect the output port of a Playable to one of the input ports. |
Destroy | Destroys the current Playable. |
GetDuration | Returns the duration of the Playable. |
GetGraph | Returns the PlayableGraph that owns this Playable. A Playable can only be used in the graph that was used to create it. |
GetInput | Returns the Playable connected at the given input port index. |
GetInputCount | Returns the number of inputs supported by the Playable. |
GetInputWeight | Returns the weight of the Playable connected at the given input port index. |
GetOutput | Returns the Playable connected at the given output port index. |
GetOutputCount | Returns the number of outputs supported by the Playable. |
GetPlayState | Returns the current PlayState of the Playable. |
GetPropagateSetTime | Returns the time propagation behavior of this Playable. |
GetSpeed | Returns the speed multiplier that is applied to the the current Playable. |
GetTime | Returns the current local time of the Playable. |
IsDone | Returns a flag indicating that a playable has completed its operation. |
IsValid | Returns the vality of the current Playable. |
SetDone | Changes a flag indicating that a playable has completed its operation. |
SetDuration | Changes the duration of the Playable. |
SetInputCount | Changes the number of inputs supported by the Playable. |
SetInputWeight | Changes the weight of the Playable connected to the current Playable. |
SetOutputCount | Changes the number of outputs supported by the Playable. |
SetPlayState | Changes the current PlayState of the Playable. |
SetPropagateSetTime | Changes the time propagation behavior of this Playable. |
SetSpeed | Changes the speed multiplier that is applied to the the current Playable. |
SetTime | Changes the current local time of the Playable. |
Did you find this page useful? Please give it a rating: