js set scroll position code example
Example 1: javascript get scroll position
function getYPosition(){
var top = window.pageYOffset || document.documentElement.scrollTop
return top;
}
Example 2: unity set position
// To set the position of a gameobject use the following
GameObject.transform.position = new Vector3(x, y, z);