Skip to content

Class AudityTransportBehaviour

Anchors the transport on the first processed frame: anchor = now minus how far the playhead already is into the clip, so beat 0 ≡ clip start even when playback begins mid-clip. One-shot per clip entry; the grid is anchor math and needs no further updates while the clip plays.

Declaration
[Serializable]
public sealed class AudityTransportBehaviour : PlayableBehaviour

Inheritance: System.Object -> UnityEngine.Playables.PlayableBehaviour

Declaration
public string transportName
Declaration
public double bpm
Declaration
public int beatsPerBar
Declaration
public int phraseBars

This function is called when the Playable play state is changed to Playables.PlayState.Playing.

Declaration
public override void OnBehaviourPlay(Playable playable, FrameData info)
Type Name Description
UnityEngine.Playables.Playable playable The Playable that owns the current PlayableBehaviour.
UnityEngine.Playables.FrameData info A FrameData structure that contains information about the current frame context.

This function is called during the ProcessFrame phase of the PlayableGraph.

Declaration
public override void ProcessFrame(Playable playable, FrameData info, object playerData)
Type Name Description
UnityEngine.Playables.Playable playable The Playable that owns the current PlayableBehaviour.
UnityEngine.Playables.FrameData info A FrameData structure that contains information about the current frame context.
System.Object playerData The user data of the ScriptPlayableOutput that initiated the process pass.