Cue.SetVariable Method (Microsoft.Xna.Framework.Audio)

Sets the value of a cue-instance variable based on its friendly name.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.String
Friendly name of the variable to set.
Type: System.Single
Value to assign to the variable.
The friendly name is a value set from the designer.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop