Düzenle

Aracılığıyla paylaş


SKAction.PlaySoundFileNamed(String, Boolean) Method

Definition

Plays the sound file that is located in the app's bundle and is named soundFile, setting the action duration to the length of the sound file if wait is set to true.

[Foundation.Export("playSoundFileNamed:waitForCompletion:")]
public static SpriteKit.SKAction PlaySoundFileNamed (string soundFile, bool wait);
static member PlaySoundFileNamed : string * bool -> SpriteKit.SKAction

Parameters

soundFile
String
wait
Boolean

Returns

Attributes

Applies to