Multiple properties in one line of script

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Eidam

I need write multiple properties in one line of script.
For example this:

$"Button".scale.y = 0.8
$"Button".scale.x = 0.8

To something like this:

$"Button".scale.x;y = 0.8

Is it possible in Gdscript?
Thanks for all answers.

PS: Sorry for my bad english.

:bust_in_silhouette: Reply From: njamster

Any reason why you haven’t tried this yourself before asking?

$Button.rect_scale.y = 0.8; $Button.rect_scale.x = 0.8;

Given that a Button is a Control-node, it’s rect_scale, not just scale.