// ------------------------------------------------------------------------------------------- public string GetResourceDir(TOOLDIR_TYPE tooldirType) { string subDir = ""; switch (tooldirType) { case TOOLDIR_TYPE.DEFAULTSHADERMATERIALS: subDir = m_DefaultShaderMaterialsDir; break; case TOOLDIR_TYPE.TEMPPREVIEWTEXTURE: subDir = m_TempPreviewTextureDir; break; case TOOLDIR_TYPE.BACKGROUNDPREFABS: subDir = m_BackgroundPrefabsDir; break; case TOOLDIR_TYPE.BACKGROUNDRESOURCES: subDir = m_BackgroundResourcesDir; break; case TOOLDIR_TYPE.PROJECTS: subDir = m_ProjectsDir; break; case TOOLDIR_TYPE.SCRIPTS: subDir = m_ScriptsDir; break; case TOOLDIR_TYPE.SCREENSHOTSAVEDIR: return(m_ScreenShotSaveDir); case TOOLDIR_TYPE.SPRITE_TOOL: subDir = "Projects/[Resources]/[Sprite]/ToolSprite"; break; case TOOLDIR_TYPE.SPRITE_USER: subDir = "Projects/[Resources]/[Sprite]/USerSprite"; break; // default: Debug.LogError("GetResourceDir(TOOLDIR_TYPE tooldirType) - not define !!!"); } return(NgFile.CombinePath(m_IGSoft_ResourcesDir, subDir)); }
// ------------------------------------------------------------------------------------------- public string GetResourceDir(TOOLDIR_TYPE tooldirType) { string subDir = ""; switch (tooldirType) { case TOOLDIR_TYPE.DEFAULTSHADERMATERIALS: subDir = m_DefaultShaderMaterialsDir; break; case TOOLDIR_TYPE.TEMPPREVIEWTEXTURE: subDir = m_TempPreviewTextureDir; break; case TOOLDIR_TYPE.BACKGROUNDPREFABS: subDir = m_BackgroundPrefabsDir; break; case TOOLDIR_TYPE.BACKGROUNDRESOURCES: subDir = m_BackgroundResourcesDir; break; case TOOLDIR_TYPE.PROJECTS: subDir = m_ProjectsDir; break; case TOOLDIR_TYPE.SCRIPTS: subDir = m_ScriptsDir; break; case TOOLDIR_TYPE.SCREENSHOTSAVEDIR: return m_ScreenShotSaveDir; case TOOLDIR_TYPE.SPRITE_TOOL: subDir = "Projects/[Resources]/[Sprite]/ToolSprite"; break; case TOOLDIR_TYPE.SPRITE_USER: subDir = "Projects/[Resources]/[Sprite]/USerSprite"; break; // default: Debug.LogError("GetResourceDir(TOOLDIR_TYPE tooldirType) - not define !!!"); } return NgFile.CombinePath(m_IGSoft_ResourcesDir, subDir); }