Click or drag to resize
SoundManagerPlayMusic Method
Play a background music.

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void PlayMusic(
	string name,
	bool inLoop = true,
	Nullable<float> volume = null
)

Parameters

name
Type: SystemString
Music content file path (must be of type song).
inLoop (Optional)
Type: SystemBoolean
If true, will play music in loop.
volume (Optional)
Type: SystemNullableSingle
If provided, will also set music volume. If not, will use last-set music volume.
See Also