Quantcast
Channel: Answers for "how to scroll backgrounds from left to right"
Viewing all articles
Browse latest Browse all 4

Answer by smoggach

$
0
0
Never hurts to read the comments :) props to the original author. // Sort by position. // Note: Get the children from left to right. // We would need to add a few conditions to handle // all the possible scrolling directions. if (direction.x < 0) { backgroundPart = backgroundPart.OrderBy( t => t.position.x ).ToList(); } else { backgroundPart = backgroundPart.OrderByDescending( t => t.position.x ).ToList(); }

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>