tk2dCameraAnchor Class Reference

Anchors children to anchor position, offset by number of pixels. More...

List of all members.

Properties

tk2dBaseSprite.Anchor AnchorPoint [get, set]
 Anchor point location.
Vector2 AnchorOffsetPixels [get, set]
 Offset in pixels from the anchor. This is consistently in screen space, i.e. +y = top of screen, +x = right of screen Eg. If you need to inset 10 pixels from from top right anchor, you'd use (-10, -10)
bool AnchorToNativeBounds [get, set]
 Anchor this to the tk2dCamera native bounds, instead of the screen bounds.
Camera AnchorCamera [get, set]
 Offset in pixels from the anchor. This is consistently in screen space, i.e. +y = top of screen, +x = right of screen Eg. If you need to inset 10 pixels from from top right anchor, you'd use (-10, -10)

Detailed Description

Anchors children to anchor position, offset by number of pixels.


Property Documentation

Camera tk2dCameraAnchor.AnchorCamera [get, set]

Offset in pixels from the anchor. This is consistently in screen space, i.e. +y = top of screen, +x = right of screen Eg. If you need to inset 10 pixels from from top right anchor, you'd use (-10, -10)

Offset in pixels from the anchor. This is consistently in screen space, i.e. +y = top of screen, +x = right of screen Eg. If you need to inset 10 pixels from from top right anchor, you'd use (-10, -10)

Anchor point location.

Anchor this to the tk2dCamera native bounds, instead of the screen bounds.