AddInput<U, V>(U, V, int, float)
Create a new input port and connect it to the output port of the given Playable.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
AddInput<T, U>(T, T, int, float)
public static int AddInput<U, V>(this U playable, V sourcePlayable, int sourceOutputIndex, float weight = 0) where U : struct, IPlayable where V : struct, IPlayable
Parameters
Returns
Type | Description |
|---|---|
| int | The index of the newly created input port. |
Remarks
If several inputs are needed, it is better to use PlayableExtensions.SetInputCount and PlayableExtensions.ConnectInput.
This method is a mere helper on top of PlayableGraph.Connect.
Use this templated extension method on any type that inherits from IPlayable.