MusicComponent

This component add music to game object.

Editor

In the editor, you can change music by selection or drag and drop, volume, if is currently playing and if it loops.

Script

Variables

  • game_object: Object which own this component (GameObject)

  • engine: Utility class to control the game (Engine)

  • music: Current music (string)

  • volume: Current volume from 0 to 100 (integer)

  • play: True if is current playing (boolean)

  • loop: True if it loops (boolean)

Functions

No public function in this component.