fix add main component error

This commit is contained in:
monitor1394
2022-03-31 21:54:34 +08:00
parent 426d437e6d
commit 1ed0ff377a
7 changed files with 45 additions and 42 deletions

View File

@@ -71,6 +71,9 @@ namespace XCharts.Runtime
AddComponent(component);
m_Components.Sort();
CreateComponentHandler(component);
#if UNITY_EDITOR && UNITY_2019_1_OR_NEWER
UnityEditor.EditorUtility.SetDirty(this);
#endif
return component;
}