Anchors children to anchor position, offset by number of pixels. More...
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) |
Anchors children to anchor position, offset by number of pixels.
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)
Vector2 tk2dCameraAnchor.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)
Anchor point location.
bool tk2dCameraAnchor.AnchorToNativeBounds [get, set] |
Anchor this to the tk2dCamera native bounds, instead of the screen bounds.