12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.Playables;
- namespace UnityEngine.Timeline
- {
-
-
-
- [Serializable]
- [Obsolete("For best performance use PlayableAsset and PlayableBehaviour.")]
- public class BasicPlayableBehaviour : ScriptableObject, IPlayableAsset, IPlayableBehaviour
- {
- public BasicPlayableBehaviour() {}
-
-
-
- public virtual double duration { get { return PlayableBinding.DefaultDuration; } }
-
-
-
- public virtual IEnumerable<PlayableBinding> outputs { get { return PlayableBinding.None; } }
-
-
-
-
- public virtual void OnGraphStart(Playable playable) {}
-
-
-
-
- public virtual void OnGraphStop(Playable playable) {}
-
-
-
-
- public virtual void OnPlayableCreate(Playable playable) {}
-
-
-
-
- public virtual void OnPlayableDestroy(Playable playable) {}
-
-
-
-
-
- public virtual void OnBehaviourPlay(Playable playable, FrameData info) {}
-
-
-
-
-
- public virtual void OnBehaviourPause(Playable playable, FrameData info) {}
-
-
-
-
-
- public virtual void PrepareFrame(Playable playable, FrameData info) {}
-
-
-
-
-
-
- public virtual void ProcessFrame(Playable playable, FrameData info, object playerData) {}
-
-
-
-
-
-
- public virtual Playable CreatePlayable(PlayableGraph graph, GameObject owner)
- {
- return ScriptPlayable<BasicPlayableBehaviour>.Create(graph, this);
- }
- }
- }
|