ConnectInput
Connect the output port of a Playable to one of the input ports.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
ConnectInput<T, U>(T, int, T, int)
Connect the output port of a Playable to one of the input ports.
public static void ConnectInput<U, V>(this U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex) where U : struct, IPlayable where V : struct, IPlayable
Parameters
Remarks
This method is a simple helper on top of PlayableGraph.Connect.
Use this templated extension method on any type that inherits from IPlayable.
ConnectInput<T, U>(T, int, T, int, float)
Connect the output port of a Playable to one of the input ports.
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
Remarks
This method is a simple helper on top of PlayableGraph.Connect.
Use this templated extension method on any type that inherits from IPlayable.