AudioSource.SetSpatializerFloat(number index, number value)
Sets a user-defined parameter of a custom spatializer effect that is attached to an AudioSource.
Parameters:
Name | Type | Description |
---|---|---|
index | number | Zero-based index of user-defined parameter to be set. |
value | number | New value of the user-defined parameter. |
Returns:
type | Description |
---|---|
boolean | True, 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)