AudioEngine.GetGlobalVariable Method (Microsoft.Xna.Framework.Audio)

Gets the value of a global variable.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public float GetGlobalVariable(
	string name

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.String
Friendly name of the variable.

Return Value

Type: System.Single
float value of the queried variable.
A global variable has global scope. It can be accessed by all code within a project.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop