private void SetPosition(InputBase inputBase, float posX) { RectTransform rt = inputBase.GetComponent <RectTransform>(); rt.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Left, posX, rt.sizeDelta.x); }
private void SetPosition(InputBase inputBase, float posX) { RectTransform rt = inputBase.GetComponent <RectTransform>(); rt.SetInsetAndSizeFromParentEdge(RectTransform.Edge.Left, posX, rt.sizeDelta.x); }