XChart重构:共享数据模型快照、时间序列与多分辨率系列,伪3D散点图/雷达图接入共享数据
This commit is contained in:
@@ -47,8 +47,13 @@ namespace XericUI.XChart
|
||||
? HideFlags.HideAndDontSave
|
||||
: HideFlags.DontSaveInEditor;
|
||||
|
||||
var rootObject = new GameObject(toolName);
|
||||
rootObject.transform.SetParent(ToolsRoot, false);
|
||||
var rootObject = new GameObject(toolName, typeof(RectTransform));
|
||||
var rootTransform = rootObject.GetComponent<RectTransform>();
|
||||
rootTransform.SetParent(ToolsRoot, false);
|
||||
rootTransform.anchorMin = Vector2.zero;
|
||||
rootTransform.anchorMax = Vector2.one;
|
||||
rootTransform.offsetMin = Vector2.zero;
|
||||
rootTransform.offsetMax = Vector2.zero;
|
||||
rootObject.hideFlags = flags;
|
||||
|
||||
var tool = new T();
|
||||
@@ -155,4 +160,4 @@ namespace XericUI.XChart
|
||||
m_Tools.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user