Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AudioClipPlayable.Create

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

Parameters

graph The PlayableGraph that will contain the new AnimationLayerMixerPlayable.
clip The AudioClip that will be added in the PlayableGraph.
looping True if the clip should loop, false otherwise.

Returns

AudioClipPlayable A AudioClipPlayable linked to the PlayableGraph.

Description

Creates an AudioClipPlayable in the PlayableGraph.

Did you find this page useful? Please give it a rating: