Skip to main content

AudioSource.GetSpatializerFloat(number index)

Reads 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 read.

Returns:

typeDescription
booleanTrue, if the parameter could be read.
numberReturn value of the user-defined parameter that is read.

Usage

---@type AudioSource
local audiosource;

---@type number
local index;


local val0, val1 = audiosource.GetSpatializerFloat(index)