Borodar.RainbowFolders.Editor.Settings.RainbowFoldersSettings.GetFolderIcon C# (CSharp) Method

GetFolderIcon() public method

public GetFolderIcon ( string folderPath, bool small = true ) : Texture2D
folderPath string
small bool
return UnityEngine.Texture2D
        public Texture2D GetFolderIcon(string folderPath, bool small = true)
        {
            var folder = GetFolderByPath(folderPath);
            if (folder == null) return null;

            return small ? folder.SmallIcon : folder.LargeIcon;
        }