public static void FillHorizontal(OriginHorizontal origin, float amount, Rect vertRect, Rect uvRect, Vector3[] verts, Vector2[] uv)
{
if (origin == OriginHorizontal.Left)
{
vertRect.width = vertRect.width * amount;
uvRect.width = uvRect.width * amount;
}
else
{
vertRect.x += vertRect.width * (1 - amount);
vertRect.width = vertRect.width * amount;
uvRect.x += uvRect.width * (1 - amount);
uvRect.width = uvRect.width * amount;
}
NGraphics.FillVertsOfQuad(verts, 0, vertRect);
NGraphics.FillUVOfQuad(uv, 0, uvRect);
}