LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

AudioClipPlayable.Create

public static Audio.AudioClipPlayable Create(Playables.PlayableGraph graph, AudioClip clip, bool looping);

Parameters

graphThe PlayableGraph that will contain the new AnimationLayerMixerPlayable.
clipThe AudioClip that will be added in the PlayableGraph.
loopingTrue if the clip should loop, false otherwise.

Returns

AudioClipPlayable A AudioClipPlayable linked to the PlayableGraph.

Description

Creates an AudioClipPlayable in the PlayableGraph.