title: How to move UI elements in horizontal layout group in Unity?
body: <p>I have a simple parent object {Buttons Holder} that has a Horizontal Layout Group component attached to it, so when the game starts I instantiate multiple buttons in the Buttons Holder so that they line up perfectly.</p>
  
  <p>And just for example lets say that I have 2 buttons instantiated and I want at some point these 2 buttons to switch positions so that the first button goes to the second button's position and the second button's switches to the first button's position.</p>
  
  <p>And heres what i'm trying to do:</p>
  
  <pre><code>Vector3 pos1 = buttonPrefabs[0].transform.position;
  Vector3 pos2 = buttonPrefabs[1].transform.position;
  
  buttonPrefabs[0].transform.position = Vector3.Lerp(pos1, pos2, Time.deltaTime * 2);
  </code></pre>
  
  <p>I mean I don't want to snap them to their new positions I just want them to smoothly travel to their new positions using <code>Vector2.lerp</code> or something.</p>
  
  <p>Since the parent object has a Horizontal Layout Group attached to it i'm not able to do that.</p>
  
  <p>Help please.</p>