Object Sliding

Component to drag GameObject horizontally or vertically between specified positions.

Options

  • Interactable bool

    Allow interaction.

  • Positions List<float>

    Allowed positions for this GameObject.

  • 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 GameObjects on the left side of the current GameObject.

    • Object on Right List<RectTransform>

      List of the GameObjects on the right side of the current GameObject.

  • Object Sliding Vertical Helper

    • Object on Top List<RectTransform>

      List of the GameObjects on the top side of the current GameObject.

    • Object on Bottom List<RectTransform>

      List of the GameObjects on the bottom side of the current GameObject.