SKAction.PlaySoundFileNamed(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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