Anchor
Info
typeClass
namespaceAnimatext
Constructors
Anchor()
-
Anchor(Vector2 min, Vector2 max)
minMinimum position of the vertices.
maxMaximum position of the vertices.
Properties
Public
bottomVector2The bottom position of the anchor.
bottomLeftVector2The bottom left position of the anchor.
bottomRightVector2The bottom right position of the anchor.
centerVector2The center position of the anchor.
leftVector2The left position of the anchor.
rightVector2The right position of the anchor.
topVector2The top position of the anchor.
topLeftVector2The top left position of the anchor.
topRightVector2The top right position of the anchor.
Methods
Public
Move(Vector2 position)Moves the anchor.
Rotate(float rotation)Rotates the anchor.
Rotate(float rotation, Vector2 anchorPoint)Rotates the anchor around the anchor point.
Scale(Vector2 scale)Scales the anchor.
Scale(Vector2 scale, Vector2 anchorPoint)Scales the anchor around the anchor point.
-
Set(Vector2 min, Vector2 max)Sets the position of the anchor.
minMinimum position of the vertices.
maxMaximum position of the vertices.
Skew(Vector2 skew)Skews the anchor.
Skew(Vector2 skew, Vector2 anchorPoint)Skews the anchor around the anchor point.