C# Класс Borodar.RainbowFolders.Editor.Settings.RainbowFoldersSettings

Наследование: UnityEngine.ScriptableObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Folders List

Private Properties

Свойство Тип Описание
IsNullOrEmpty bool

Открытые методы

Метод Описание
AddFolder ( RainbowFolder value ) : void
ChangeFolderIcons ( RainbowFolder value ) : void
ChangeFolderIconsByPath ( string path, FolderIconPair icons ) : void
GetFolder ( RainbowFolder match ) : RainbowFolder

Searches for a folder config that has the same type and key values. Returns the first occurrence within the settings, if found; null otherwise.

GetFolderByPath ( string folderPath ) : RainbowFolder

Searches for a folder config that should be applied for the specified path (regardless of the key type). Returns the first occurrence within the settings, if found; null otherwise.

GetFolderIcon ( string folderPath, bool small = true ) : Texture2D
RemoveAll ( RainbowFolder match ) : void
RemoveAllByPath ( string path ) : void
UpdateFolder ( RainbowFolder match, RainbowFolder value ) : void

Searches for a folder config that has the same type and key, and updates its other fields with provided value, if found; creates new folder config otherwise.

Приватные методы

Метод Описание
IsNullOrEmpty ( ICollection collection ) : bool

Описание методов

AddFolder() публичный Метод

public AddFolder ( RainbowFolder value ) : void
value RainbowFolder
Результат void

ChangeFolderIcons() публичный Метод

public ChangeFolderIcons ( RainbowFolder value ) : void
value RainbowFolder
Результат void

ChangeFolderIconsByPath() публичный Метод

public ChangeFolderIconsByPath ( string path, FolderIconPair icons ) : void
path string
icons FolderIconPair
Результат void

GetFolder() публичный Метод

Searches for a folder config that has the same type and key values. Returns the first occurrence within the settings, if found; null otherwise.
public GetFolder ( RainbowFolder match ) : RainbowFolder
match RainbowFolder
Результат RainbowFolder

GetFolderByPath() публичный Метод

Searches for a folder config that should be applied for the specified path (regardless of the key type). Returns the first occurrence within the settings, if found; null otherwise.
public GetFolderByPath ( string folderPath ) : RainbowFolder
folderPath string
Результат RainbowFolder

GetFolderIcon() публичный Метод

public GetFolderIcon ( string folderPath, bool small = true ) : Texture2D
folderPath string
small bool
Результат UnityEngine.Texture2D

RemoveAll() публичный Метод

public RemoveAll ( RainbowFolder match ) : void
match RainbowFolder
Результат void

RemoveAllByPath() публичный Метод

public RemoveAllByPath ( string path ) : void
path string
Результат void

UpdateFolder() публичный Метод

Searches for a folder config that has the same type and key, and updates its other fields with provided value, if found; creates new folder config otherwise.
public UpdateFolder ( RainbowFolder match, RainbowFolder value ) : void
match RainbowFolder
value RainbowFolder
Результат void

Описание свойств

Folders публичное свойство

public List Folders
Результат List