VisionaireObject Command: getName

From The Official Visionaire Studio: Adventure Game Engine Wiki

Returns the internal name of the VisionaireObject.

Not to be confused with the "Name" property which is available for some objects and contains the multi-language object name used in the game.

Related functions setName


Syntax

getName()


Parameters

none


Return values

Type Description
string The internal name of the VisionaireObject


Examples

Example 1: Get the internal name of the current scene.

local cur_scene_name = game:getLink(VGameCurrentScene):getName()

-- The shorthand notation offers a more convenient way to achieve the same
local cur_scene_name = game.CurrentScene.name