mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 15:30:09 +00:00
增加UIText扩展组件
This commit is contained in:
@@ -319,7 +319,7 @@ namespace XCharts.Runtime
|
||||
chartText.SetActive(textStyle.show);
|
||||
|
||||
RectTransform rect = EnsureComponent<RectTransform>(txtObj);
|
||||
rect.localPosition = Vector3.zero;
|
||||
rect.anchoredPosition3D = Vector3.zero;
|
||||
rect.sizeDelta = sizeDelta;
|
||||
rect.anchorMin = anchorMin;
|
||||
rect.anchorMax = anchorMax;
|
||||
@@ -492,7 +492,7 @@ namespace XCharts.Runtime
|
||||
return label;
|
||||
}
|
||||
|
||||
private static void UpdateAnchorAndPivotByTextAlignment(TextAnchor alignment, out Vector2 anchorMin, out Vector2 anchorMax,
|
||||
public static void UpdateAnchorAndPivotByTextAlignment(TextAnchor alignment, out Vector2 anchorMin, out Vector2 anchorMax,
|
||||
out Vector2 pivot)
|
||||
{
|
||||
switch (alignment)
|
||||
|
||||
Reference in New Issue
Block a user