Search Unity

How to achive following scrollview as show video

Discussion in 'Getting Started' started by vernekar70, May 14, 2021.

  1. vernekar70

    vernekar70

    Joined:
    Apr 9, 2021
    Posts:
    1
    I want to achive this stretch or elastic kind of animation of childern rows as shown in this video
    . While scrolling the gap between row dependent upon speed of scrolling. Is it possible to do in unity.
    I am very new to unity an dont know much and I will appreciate your comments or suggession or other options which would do something similar to it. Thanks
     
  2. aMIGA_dUDE

    aMIGA_dUDE

    Joined:
    Oct 12, 2019
    Posts:
    22
    There would be many ways to achive the same effect. You could create using tolerance system.
    Some times writing down what need to happen will help understand how it could be done, then convert that to code.
    The minimum/default distance to next item is 1 unit.
    If distance is less 1 unit, just move so it is minimum (1 unit) again.
    It will only move towards otherwise if ether these rules are true, until it same as minimum distance (1 unit)
    The maxium distance to next item 5 units.
    The distance has been more then 1 for 0.5 seconds.
     
    vernekar70 likes this.