Cue.SetVariable Method

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

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public void SetVariable (
         string name,
         float value
)

Parameters

name
Friendly name of the variable to set.
value
Value to assign to the variable.

The friendly name is a text string that the designer can associate with the cue when it is built.

Exception typeCondition
ArgumentNullException The name parameter is null.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: