self:get_unit_size

Client

Retrieves the unit size of the audio-3d instance


Syntax

local result = self:get_unit_size()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatresultCurrent unit size

Examples

Get the unit size of an audio-3d instance
local entity = core.audio_3d.create("sounds/ambient.ogg")

core.engine.print("info", "Unit size:", entity:get_unit_size())

On this page