移植工具宏

This commit is contained in:
sin365 2024-12-25 22:38:55 +08:00
parent 7f2792bbdc
commit 4a75cae653

View File

@ -86,7 +86,7 @@ public class AxiProjectTools : EditorWindow
static void LoopPrefabNode(string rootPath, GameObject trans, int depth) static void LoopPrefabNode(string rootPath, GameObject trans, int depth)
{ {
string nodename = $"{rootPath}>{trans.name}"; string nodename = $"{rootPath}>{trans.name}";
#if UNITY_5_4_OR_NEWER && !UNITY_2018_4_OR_NEWER #if UNITY_2018_4_OR_NEWER
GameObject prefabRoot = trans.gameObject; GameObject prefabRoot = trans.gameObject;
int comCount = prefabRoot.GetComponentCount(); int comCount = prefabRoot.GetComponentCount();
for (int i = 0; i < comCount; i++) for (int i = 0; i < comCount; i++)