mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 00:20:18 +00:00
[improve][editor] improve editor edit
This commit is contained in:
@@ -67,6 +67,7 @@ namespace XCharts.Editor
|
||||
chart.transform.SetParent(parent);
|
||||
chart.transform.localScale = Vector3.one;
|
||||
chart.transform.localPosition = Vector3.zero;
|
||||
chart.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
||||
var rect = chart.GetComponent<RectTransform>();
|
||||
rect.anchorMin = new Vector2(0.5f, 0.5f);
|
||||
rect.anchorMax = new Vector2(0.5f, 0.5f);
|
||||
|
||||
Reference in New Issue
Block a user