space_ex v0.5.1 SpaceEx.UI.RectTransform

A Unity engine Rect Transform for a UI object.

See the Unity manual for more details.

Link to this section Summary

Functions

The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle

The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle

Position of the rectangles pivot point relative to the anchors

Position of the rectangles lower left corner relative to the anchors

Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself

Position of the rectangles pivot point relative to the anchors

Rotation, as a quaternion, of the object around its pivot point

Scale factor applied to the object in the x, y and z dimensions

Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle

The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle

The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle

Position of the rectangles pivot point relative to the anchors

Position of the rectangles lower left corner relative to the anchors

Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself

Position of the rectangles pivot point relative to the anchors

Rotation, as a quaternion, of the object around its pivot point

Scale factor applied to the object in the x, y and z dimensions

Width and height of the rectangle

Position of the rectangles upper right corner relative to the anchors

Width and height of the rectangle

Position of the rectangles upper right corner relative to the anchors

Link to this section Functions

Link to this function anchor_max(this)

The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle.

Link to this function anchor_min(this)

The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle.

Link to this function local_position(this)

Position of the rectangles pivot point relative to the anchors.

Link to this function lower_left(this)

Position of the rectangles lower left corner relative to the anchors.

Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself.

Position of the rectangles pivot point relative to the anchors.

Rotation, as a quaternion, of the object around its pivot point.

Scale factor applied to the object in the x, y and z dimensions.

Link to this function set_anchor(this, value)

Set the minimum and maximum anchor points as a fraction of the size of the parent rectangle.

Link to this function set_anchor_max(this, value)

The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle.

Link to this function set_anchor_min(this, value)

The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle.

Link to this function set_local_position(this, value)

Position of the rectangles pivot point relative to the anchors.

Link to this function set_lower_left(this, value)

Position of the rectangles lower left corner relative to the anchors.

Link to this function set_pivot(this, value)

Location of the pivot point around which the rectangle rotates, defined as a fraction of the size of the rectangle itself.

Link to this function set_position(this, value)

Position of the rectangles pivot point relative to the anchors.

Link to this function set_rotation(this, value)

Rotation, as a quaternion, of the object around its pivot point.

Link to this function set_scale(this, value)

Scale factor applied to the object in the x, y and z dimensions.

Link to this function set_size(this, value)

Width and height of the rectangle.

Link to this function set_upper_right(this, value)

Position of the rectangles upper right corner relative to the anchors.

Width and height of the rectangle.

Link to this function upper_right(this)

Position of the rectangles upper right corner relative to the anchors.