MCPcopy
hub / github.com/4ian/GDevelop / setString

Method setString

GDJS/Runtime/variable.ts:606–609  ·  view source on GitHub ↗

* Change the value of the variable, considered as a string * @param newValue The new string to be set

(newValue: string)

Source from the content-addressed store, hash-verified

604 * @param newValue The new string to be set
605 */
606 setString(newValue: string): void {
607 this._type = 'string';
608 this._str = '' + newValue;
609 }
610
611 /**
612 * Get the value of the variable, as a number if it's one,

Callers 15

fromJSObjectMethod · 0.95
castToMethod · 0.95
setValueMethod · 0.95
concatenateStringMethod · 0.95
concatenateMethod · 0.95
setVariableStringMethod · 0.45
readStringFromJSONFileFunction · 0.45
onErrorFunction · 0.45
sendAsyncRequestFunction · 0.45
variable.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected