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 3.8.0.796)
  • C#
  • VB
  • F#
public float GetGlobalVariable(
	string name
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

name
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
    
 Web