public void ApplyPaddingLeft(RectTransform g, UssValue value) { var v = value.AsFloat(); var elem = g.GetComponent <UtmlElement>(); elem.padding.x = v; }
public void ApplyOpacity(Graphic g, UssValue value) { var alpha = value.AsFloat(); g.canvasRenderer.SetAlpha(alpha); }
public void ApplyPaddingLeft(RectTransform g, UssValue value) { var v = value.AsFloat(); g.offsetMin = new Vector2(v, g.offsetMin.y); }
public void ApplyPaddingTop(RectTransform g, UssValue value) { var v = value.AsFloat(); g.offsetMax = new Vector2(g.offsetMin.x, -v); }
public void ApplyPaddingBottom(RectTransform g, UssValue value) { var v = value.AsFloat(); g.offsetMin = new Vector2(g.offsetMin.x, v); }
public void ApplyPaddingRight(RectTransform g, UssValue value) { var v = value.AsFloat(); g.offsetMax = new Vector2(-v, g.offsetMax.y); }