Instant properties: y1

The instant property y1 corresponds to the position of the top-left corner stored within a rect operand.

Declaration

int32 rect.y1

Discussion

The read access to this property returns the y coordinate of the top-left corner of a rect operand. The write access modifies the y coordinate of the top-left corner of a rect operand. Other components (x1, x2 and y2) are not affected by the modification. For example:

var rect r = <100,200,110,220>; // Read the y1 coordinate var int32 result = r.y1; // result = 200 // Modify the y1 coordinate r.x1 = 50; // r = <100,50,110,220>

Usage in Inspector

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