Skip to reading
GDScript Programming & Godot

ChangeObjectProperty()

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 Object Property

Assign a property on an object's runtime record.

Source table from ChangeObjectProperty(), page 130
Option key / fieldMeaning and inputDefault
Scene sceneIdChoose a scene ID.Blank
Object entityIdChoose an entity in the selected scene.Blank
Property propertyChoose a supported object 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 ChangeObjectProperty({
    "sceneId": "lab",
    "entityId": "archive_door",
    "property": "visible"
})

In use. Change a supported property such as a display field or simple state value. Dedicated visibility, animation and effect actions are preferable when they exist: a generic record edit may not rebuild the corresponding live visual resource.

Page 130 of 378Permalink
Go to page