Learn / Documentation / Script Reference / UIDrawerArrow

UIDrawerArrow

class in Doozy.Engine.UI

Description

The UIDrawerArrow class contains settings for the animated arrow used to show the open and close directions for an UIDrawer
See Also: UIDrawer

Public Variables

  • public UIDrawerArrowAnimator Animator – Animation engine for the UIDrawerArrow

  • public Color ClosedColor – If OverrideColor is TRUE, the UIDrawerArrow’s Image color, for when the UIDrawer is closed, will get overridden by this value

  • public RectTransform ContainerRectTransform container that contains all the Holders

  • public Holder Down – If the UIDrawer closes downwards, then this Holder’s root will become the UIDrawerArrow’s new parent

  • public bool Enabled – Determines if the UIDrawerArrow is enabled or not

  • public Holder Left – If the UIDrawer closes to the left, then this Holder’s root will become the UIDrawerArrow’s new parent

  • public Color OpenedColor – If OverrideColor is TRUE, the UIDrawerArrow’s Image color, for when the UIDrawer is opened, will get overridden by this value

  • public bool OverrideColor – If TRUE, the UIDrawerArrow color will get interpolated between ClosedColor and OpenedColor

  • public Holder Right – If the UIDrawer closes to the right, then this Holder’s root will become the UIDrawerArrow’s new parent

  • public float Scale – Scale variable that overrides the scale of the UIDrawerArrow at runtime. This will set the localScale values of the UIDrawerArrow. (only overrides localScale.x and localScale.y)

  • public Holder Up – If the UIDrawer closes upwards, then this Holder’s root will become the UIDrawerArrow’s new parent

Constructors

  • public UIDrawerArrow() – Initializes a new instance of the class

Public Methods

  • public Holder GetHolder(SimpleSwipe closeDirection) – Returns the Holder of the UIDrawerArrow’s opened and closed positions for the target direction

  • private void Reset() – Resets this instance to the default values

  • public void ResetArrowClosedPosition(SimpleSwipe closeDirection) – Resets the closed UIDrawerArrow position to its default value

  • public static void ResetArrowClosedPosition(RectTransform closed, SimpleSwipe closeDirection) – Resets the closed UIDrawerArrow position to its default value

  • public void ResetArrowOpenedPosition(SimpleSwipe closeDirection) – Resets the opened UIDrawerArrow position to its default value

  • public static void ResetArrowOpenedPosition(RectTransform opened, SimpleSwipe closeDirection) – Resets the opened UIDrawerArrow position to its default value

  • public void ResetArrowRootPosition(SimpleSwipe closeDirection) – Resets the UIDrawerArrow root to the default position

  • public static void ResetArrowRootPosition(RectTransform root, SimpleSwipe closeDirection) – Resets the UIDrawerArrow root to the default position