MCPcopy Index your code
hub / github.com/4ian/GDevelop / setText

Method setText

Extensions/TextObject/textruntimeobject.ts:456–463  ·  view source on GitHub ↗

* Set the string displayed by the object. * @param text The new text

(text: string)

Source from the content-addressed store, hash-verified

454 * @param text The new text
455 */
456 setText(text: string): void {
457 if (text === this._str) {
458 return;
459 }
460 this._str = text;
461 this._renderer.updateString();
462 this._updateTextPosition();
463 }
464
465 /**
466 * Get the font size of the characters of the object.

Callers 3

updateFromObjectDataMethod · 0.95
setStringMethod · 0.95

Calls 2

_updateTextPositionMethod · 0.95
updateStringMethod · 0.45

Tested by

no test coverage detected