Function GodotObject.set

Assigns a new value to the given property. If the property does not exist, nothing will happen.

void set(VariantArg1) (
  in String property,
  in VariantArg1 value
);