Hi there,
I have two sprites, one anchored on the top of the screen and the other one to the bottom.
I need a center sprite which expands to the screen available space. But I cannot achieve it, i suppose i am missing some concept about NGUI.
Here is my code so far, without luck:
//get available height
float availableHeight = (float)Screen.height;
foreach (Transform t in delimiters)
{
availableHeight -= (t.localScale.y);
}
//set new height
Vector3 newHeight = transform.localScale;
newHeight.y = availableHeight;
transform.localScale = newHeight;