diff --git a/Editor/ExpressionCreater.cs b/Editor/ExpressionCreater.cs index 74e0fa0..e0f7569 100644 --- a/Editor/ExpressionCreater.cs +++ b/Editor/ExpressionCreater.cs @@ -104,7 +104,7 @@ private void CreateFoldedMenu(Transform currentTrans, Transform currentFolder) { var emoteFolder = currentTrans.GetComponent(); - if (emoteFolder!=null) + if (emoteFolder!=null && emoteFolder.gameObject.activeInHierarchy) { currentFolder = CreateSubFolder(currentFolder, emoteFolder); } @@ -187,8 +187,7 @@ private void PackFolder(EmoteMenuInfo parent) { if (parent.AutoFolderMode == EmoteMenuInfo.AutoFolderModeType.none) return; if (parent.transform.childCount < 16) return; - //int folderNum = (int)Math.Ceiling((double)parent.transform.childCount / 8f); - + int itemIndex = 0; GameObject currentPack=null; int itemNum = parent.transform.childCount;