Skip to reading
GDScript Programming & Godot

SetMousePointerVisible()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Show Mouse Pointer

Show or hide the mouse pointer.

Source table from SetMousePointerVisible(), page 196
Option key / fieldMeaning and inputDefault
Visible visibleExplicit visible/hidden state.true

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetMousePointerVisible({"visible": true})

In use. Hide it for a cinematic, then show it when play returns. A hidden cursor can still leave other controls active, so do not use this as an input lock.

ChangeVerb()#

Change Current Verb Command

Select a verb from the project's Verb Designer.

Source table from SetMousePointerVisible(), page 196
Option key / fieldMeaning and inputDefault
New Verb verbIdChoose a Verb Designer ID.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ChangeVerb({"verbId": ""})

In use. Select Look when an inspection interface opens. The verb ID is stored even when the display name is translated or renamed. Choosing the verb alone does not execute it on an object.

Page 196 of 378Permalink
Go to page