Instant properties: x
The instant property x corresponds to the x coordinate stored within a point operand.
Declaration
int32 point.x
Discussion
The read access to this property returns the x coordinate of a point operand. The write access modifies the x coordinate of a point operand. The value of the y coordinate is not affected by the modification. For example:
var point p = <100,200>; // Read the x coordinate var int32 result = p.x; // result = 100 // Modify the x coordinate p.x = 50; // p = <50,200>
Usage in Inspector
When working with Inspector you can easily access, evaluate and modify the x 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 x 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: