Skip to reading
GDScript Programming & Godot

ChangeCharacterProperty()

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

Change Character Property

Change a selected character property in runtime data.

Source table from ChangeCharacterProperty(), page 121
Option key / fieldMeaning and inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Property propertyChoose a supported character property.Blank
To valueA value of the type required by the selected variable, operation or property.Blank

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

Code example
await ChangeCharacterProperty({"characterId": "player", "property": "visible", "value": true})

In use. Change a character's display or movement property supported by the picker. Use a value of the right type. A generic property assignment is not guaranteed to rebuild an already loaded model, material or animation setup.

Page 121 of 378Permalink
Go to page