ScriptPlayable<T>
A IPlayable implementation that contains a PlayableBehaviour for the PlayableGraph. PlayableBehaviour can be used to write custom Playable that implement their own PrepareFrame callback.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
- Implements: IPlayable, IEquatable<ScriptPlayable<T>>
public struct ScriptPlayable<T> : IPlayable, IEquatable<ScriptPlayable<T>> where T : class, IPlayableBehaviour, new()
Remarks
A branch of a PlayableGraph must be connected to an output to be evaluated.
NOTE: You can use PlayableExtensions methods with ScriptPlayable objects.