GetInputCount<U>(U)
Returns the number of inputs supported by the Playable.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
GetInputCount<T>(T)
public static int GetInputCount<U>(this U playable) where U : struct, IPlayable
Parameters
The Playable used by this operation.
Returns
Type | Description |
|---|---|
| int | The count of inputs on the Playable. |
Remarks
The input count includes slots that aren't connected to anything. This is equivalent to, but much faster than calling GetInputs().Length.
Use this templated extension method on any type that inherits from IPlayable.