VisionaireObject Command: getName

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 16:52, 31 August 2023 by EK (talk | contribs) (Created page with "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 na...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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