FMOD.Studio.EventInstance.setParameterValue C# (CSharp) Method

setParameterValue() public method

public setParameterValue ( string name, float value ) : RESULT
name string
value float
return RESULT
        public RESULT setParameterValue(string name, float value)
        {
            return FMOD_Studio_EventInstance_SetParameterValue(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), value);
        }
        public RESULT getParameterValueByIndex(int index, out float value)

Usage Example

Beispiel #1
0
	// Use this for initialization
	void Start () {
		theSound = FMODUnity.RuntimeManager.CreateInstance(soundEvent);

		// a bunch of default vaiables which trick fmod into looping
		theSound.setParameterValue("Distance", 0.0f);
		theSound.setParameterValue("Direction", 0.0f);
	}
All Usage Examples Of FMOD.Studio.EventInstance::setParameterValue
EventInstance