VisionaireObject Command: setName

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 16:58, 31 August 2023 by EK (talk | contribs) (Created page with "Sets the internal name of the VisionaireObject. {| class="ts" |- | style="width:15%" | Related functions | getName |} == Syntax == <sy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets the internal name of the VisionaireObject.

Related functions getName


Syntax

setName(name)


Parameters

Parameter Type Description
name string The new internal name of the VisionaireObject


Return values

none


Examples

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

game:getLink(VGameCurrentScene):setName()

-- There is no shorthand method for setting the name
game.CurrentScene:setName()