This project is read-only.

Introduction

The Y Units variable controls how a unit is vertically positioned relative to its parent. By default an object is positioned relative to the top of its parent, where each unit represents 1 pixel downward.

PixelsFromTop

The followingshows a child ColoredRectangle positioned 50 PixelsFromTop relative to its parent:

PixelsFromTopGum.PNG

PixelsFromCenterY

The followingshows a child ColoredRectangle positioned 50 PixelsFromCenterY relative to its parent:

PixelsFromCenterYGum.PNG

PixelsFromCenterYInverted

The followingshows a child ColoredRectangle positioned 50 PixelsFromCenterYInverted relative to its parent. Note that coordinates are "inverted", which means that increasing the Y value moves the object up rather than down. This value exists to simplify integration with engines which may use positive Y as up:

PixelsFromCenterYInvertedGum.PNG

PixelsFromBottom

The followingshows a child ColoredRectangle positioned 50 PixelsFromBottom relative to its parent:

PixelsFromBottomGum.PNG

PercentageHeight

The followingshows a child ColoredRectangle positioned 50 PercentageHeight relative to its parent:

PercentageHeightGum.PNG

Last edited Nov 20, 2015 at 3:20 PM by vchelaru, version 3

Comments

No comments yet.