Esempio n. 1
0
        public static void PopulateSkinFromSheetFolders(string[] sheetFolders)
        {
            GUISkin    currentSkin   = null;
            SkinTarget currentTarget = SkinTarget.Light;

            if (EditorGUIUtility.isProSkin)
            {
                currentTarget = SkinTarget.Dark;
            }

            currentSkin = ConverterUtils.LoadBundleSkin(currentTarget);

            ConverterUtils.SetToDefault(currentSkin);

            foreach (string folder in sheetFolders)
            {
                StyleSheetToGUISkin.CreateGUISkinFromSheetsFolder(folder, currentTarget, currentSkin);
            }
        }