Skip to main content

AudioSource.SetSpatializerFloat(number index, number value)

Sets a user-defined parameter of a custom spatializer effect that is attached to an AudioSource.

Parameters:

NameTypeDescription
indexnumberZero-based index of user-defined parameter to be set.
valuenumberNew value of the user-defined parameter.

Returns:

typeDescription
booleanTrue, if the parameter could be set.

Usage

---@type AudioSource
local audiosource;

---@type number
local index;

---@type number
local value;


local val0 = audiosource.SetSpatializerFloat(index, value)