// ---------------------------------------------------------------------------------------------------------- protected override void LoadProjects() { string loaddir = FXMakerMain.inst.GetResourceDir(FXMakerMain.TOOLDIR_TYPE.PROJECTS); m_LoadDirectory = NgFile.PathSeparatorNormalize(loaddir); m_CurveAniObjects = NgAsset.GetCurvePrefabList(m_LoadDirectory, m_NcInfoCurve_FileKeyword, true, FXMakerLayout.m_nMaxPrefabListCount, out m_nProjectCount); Debug.Log(m_nProjectCount); // Load FileName string[] folderStrings = new string[m_nProjectCount]; if (0 < m_nProjectCount) { for (int n = 0; n < m_nProjectCount; n++) { folderStrings[n] = m_CurveAniObjects[n].name.Replace("NcInfoCurve_", ""); } } m_ProjectFolerContents = NgConvert.StringsToContents(folderStrings); }
void AddObjects(string loaddir) { m_LoadDirectory = NgFile.PathSeparatorNormalize(loaddir); m_CurveAniObjects = NgAsset.GetCurvePrefabList(m_LoadDirectory, "", true, FXMakerLayout.m_nMaxPrefabListCount, out m_nObjectCount); ArrayList curveAnis = new ArrayList(); foreach (GameObject obj in m_CurveAniObjects) { if (obj.GetComponent <NcCurveAnimation>() != null && obj.name.Contains(FxmFolderPopup_NcInfoCurve.m_NcInfoCurve_FileKeyword) == false) { curveAnis.Add(obj); } } m_CurveAniObjects = NgConvert.ToArray <GameObject>(curveAnis); if (m_CurveAniObjects == null) { m_CurveAniObjects = new GameObject[0]; } m_nObjectCount = m_CurveAniObjects.Length; m_ObjectContents = new GUIContent[m_nObjectCount]; // Current Select if (m_SelCurveAniObject != null) { for (int n = 0; n < m_nObjectCount; n++) { if (m_CurveAniObjects[n] == m_SelCurveAniObject) { m_nObjectIndex = n; } } } BuildContents(); }