Instant properties: y

The instant property y corresponds to the y coordinate stored within a point operand.

Declaration

int32 point.y

Discussion

The read access to this property returns the y coordinate of a point operand. The write access modifies the y coordinate of a point operand. The value of the x coordinate is not affected by the modification. For example:

var point p = <100,200>; // Read the y coordinate var int32 result = p.y; // result = 200 // Modify the y coordinate p.y = 250; // p = <100,250>

Usage in Inspector

When working with Inspector you can easily access, evaluate and modify the y coordinate. For this purpose select in Inspector the desired point property or attribute and click on the small triangle on its left side to expand and display the subordinated values:

Please note, the Inspector displays the y value also when you have expanded a rect property or attribute. This function exists just for the convenience allowing you to easily inspect and modify the rect's origin value: