Object Sliding

Component to drag GameObject horizontally or vertically between specified positions.

Options

  • Interactable bool

    Allow interaction.

  • Positions List<float>

    Allowed positions for this object.

  • Direction ObjectSlidingDirection

    Slide direction.

    • Horizontal

    • Vertical

  • Movement AnimationCurve

    Animation curve.

  • Unscaled Time bool

    Animate with unscaled time.

Helper components

This components used to automatically set Positions instead of the manual input.

  • Object Sliding Horizontal Helper

    • Object on Left List<RectTransform>

      List of the objects on the left side of the current object.

    • Object on Right List<RectTransform>

      List of the objects on the right side of the current object.

  • Object Sliding Vertical Helper

    • Object on Top List<RectTransform>

      List of the objects on the top side of the current object.

    • Object on Bottom List<RectTransform>

      List of the objects on the bottom side of the current object.