Show / Hide Table of Contents

Class PlayableExtensions

Inheritance
Object
PlayableExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.Playables
Assembly: UnityEngine.dll
Syntax
public static class PlayableExtensions

Methods

| Improve this Doc View Source

AddInput<U, V>(U, V, Int32, Single)

Declaration
public static int AddInput<U, V>(this U playable, V sourcePlayable, int sourceOutputIndex, float weight = 0F)
    where U : struct, IPlayable where V : struct, IPlayable
Parameters
Type Name Description
U playable
V sourcePlayable
Int32 sourceOutputIndex
Single weight
Returns
Type Description
Int32
Type Parameters
Name Description
U
V
| Improve this Doc View Source

CanChangeInputs<U>(U)

Declaration
public static bool CanChangeInputs<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

CanDestroy<U>(U)

Declaration
public static bool CanDestroy<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

CanSetWeights<U>(U)

Declaration
public static bool CanSetWeights<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

ConnectInput<U, V>(U, Int32, V, Int32)

Declaration
public static void ConnectInput<U, V>(this U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex)
    where U : struct, IPlayable where V : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 inputIndex
V sourcePlayable
Int32 sourceOutputIndex
Type Parameters
Name Description
U
V
| Improve this Doc View Source

ConnectInput<U, V>(U, Int32, V, Int32, Single)

Declaration
public static void ConnectInput<U, V>(this U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex, float weight)
    where U : struct, IPlayable where V : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 inputIndex
V sourcePlayable
Int32 sourceOutputIndex
Single weight
Type Parameters
Name Description
U
V
| Improve this Doc View Source

Destroy<U>(U)

Declaration
public static void Destroy<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Type Parameters
Name Description
U
| Improve this Doc View Source

DisconnectInput<U>(U, Int32)

Declaration
public static void DisconnectInput<U>(this U playable, int inputPort)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 inputPort
Type Parameters
Name Description
U
| Improve this Doc View Source

GetDelay<U>(U)

Declaration
public static double GetDelay<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Double
Type Parameters
Name Description
U
| Improve this Doc View Source

GetDuration<U>(U)

Declaration
public static double GetDuration<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Double
Type Parameters
Name Description
U
| Improve this Doc View Source

GetGraph<U>(U)

Declaration
public static PlayableGraph GetGraph<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
PlayableGraph
Type Parameters
Name Description
U
| Improve this Doc View Source

GetInput<U>(U, Int32)

Declaration
public static Playable GetInput<U>(this U playable, int inputPort)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 inputPort
Returns
Type Description
Playable
Type Parameters
Name Description
U
| Improve this Doc View Source

GetInputCount<U>(U)

Declaration
public static int GetInputCount<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Int32
Type Parameters
Name Description
U
| Improve this Doc View Source

GetInputWeight<U>(U, Int32)

Declaration
public static float GetInputWeight<U>(this U playable, int inputIndex)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 inputIndex
Returns
Type Description
Single
Type Parameters
Name Description
U
| Improve this Doc View Source

GetLeadTime<U>(U)

Declaration
public static float GetLeadTime<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Single
Type Parameters
Name Description
U
| Improve this Doc View Source

GetOutput<U>(U, Int32)

Declaration
public static Playable GetOutput<U>(this U playable, int outputPort)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 outputPort
Returns
Type Description
Playable
Type Parameters
Name Description
U
| Improve this Doc View Source

GetOutputCount<U>(U)

Declaration
public static int GetOutputCount<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Int32
Type Parameters
Name Description
U
| Improve this Doc View Source

GetPlayState<U>(U)

Declaration
public static PlayState GetPlayState<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
PlayState
Type Parameters
Name Description
U
| Improve this Doc View Source

GetPreviousTime<U>(U)

Declaration
public static double GetPreviousTime<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Double
Type Parameters
Name Description
U
| Improve this Doc View Source

GetPropagateSetTime<U>(U)

Declaration
public static bool GetPropagateSetTime<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

GetSpeed<U>(U)

Declaration
public static double GetSpeed<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Double
Type Parameters
Name Description
U
| Improve this Doc View Source

GetTime<U>(U)

Declaration
public static double GetTime<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Double
Type Parameters
Name Description
U
| Improve this Doc View Source

GetTraversalMode<U>(U)

Declaration
public static PlayableTraversalMode GetTraversalMode<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
PlayableTraversalMode
Type Parameters
Name Description
U
| Improve this Doc View Source

IsDelayed<U>(U)

Declaration
public static bool IsDelayed<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

IsDone<U>(U)

Declaration
public static bool IsDone<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

IsNull<U>(U)

Declaration
public static bool IsNull<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

IsValid<U>(U)

Declaration
public static bool IsValid<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Returns
Type Description
Boolean
Type Parameters
Name Description
U
| Improve this Doc View Source

Pause<U>(U)

Declaration
public static void Pause<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Type Parameters
Name Description
U
| Improve this Doc View Source

Play<U>(U)

Declaration
public static void Play<U>(this U playable)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Type Parameters
Name Description
U
| Improve this Doc View Source

SetDelay<U>(U, Double)

Declaration
public static void SetDelay<U>(this U playable, double delay)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Double delay
Type Parameters
Name Description
U
| Improve this Doc View Source

SetDone<U>(U, Boolean)

Declaration
public static void SetDone<U>(this U playable, bool value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Boolean value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetDuration<U>(U, Double)

Declaration
public static void SetDuration<U>(this U playable, double value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Double value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetInputCount<U>(U, Int32)

Declaration
public static void SetInputCount<U>(this U playable, int value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetInputWeight<U>(U, Int32, Single)

Declaration
public static void SetInputWeight<U>(this U playable, int inputIndex, float weight)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 inputIndex
Single weight
Type Parameters
Name Description
U
| Improve this Doc View Source

SetInputWeight<U, V>(U, V, Single)

Declaration
public static void SetInputWeight<U, V>(this U playable, V input, float weight)
    where U : struct, IPlayable where V : struct, IPlayable
Parameters
Type Name Description
U playable
V input
Single weight
Type Parameters
Name Description
U
V
| Improve this Doc View Source

SetLeadTime<U>(U, Single)

Declaration
public static void SetLeadTime<U>(this U playable, float value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Single value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetOutputCount<U>(U, Int32)

Declaration
public static void SetOutputCount<U>(this U playable, int value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Int32 value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetPlayState<U>(U, PlayState)

Declaration
[Obsolete("SetPlayState() has been deprecated. Use Play(), Pause() or SetDelay() instead", false)]
public static void SetPlayState<U>(this U playable, PlayState value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
PlayState value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetPropagateSetTime<U>(U, Boolean)

Declaration
public static void SetPropagateSetTime<U>(this U playable, bool value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Boolean value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetSpeed<U>(U, Double)

Declaration
public static void SetSpeed<U>(this U playable, double value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Double value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetTime<U>(U, Double)

Declaration
public static void SetTime<U>(this U playable, double value)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
Double value
Type Parameters
Name Description
U
| Improve this Doc View Source

SetTraversalMode<U>(U, PlayableTraversalMode)

Declaration
public static void SetTraversalMode<U>(this U playable, PlayableTraversalMode mode)
    where U : struct, IPlayable
Parameters
Type Name Description
U playable
PlayableTraversalMode mode
Type Parameters
Name Description
U
  • Improve this Doc
  • View Source
Back to top Generated by DocFX