C# Class Borodar.RainbowFolders.Editor.Settings.RainbowFoldersSettings

Inheritance: UnityEngine.ScriptableObject
显示文件 Open project: PhannGor/unity3d-rainbow-folders Class Usage Examples

Public Properties

Property Type Description
Folders List

Private Properties

Property Type Description
IsNullOrEmpty bool

Public Methods

Method Description
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.

Private Methods

Method Description
IsNullOrEmpty ( ICollection collection ) : bool

Method Details

AddFolder() public method

public AddFolder ( RainbowFolder value ) : void
value RainbowFolder
return void

ChangeFolderIcons() public method

public ChangeFolderIcons ( RainbowFolder value ) : void
value RainbowFolder
return void

ChangeFolderIconsByPath() public method

public ChangeFolderIconsByPath ( string path, FolderIconPair icons ) : void
path string
icons FolderIconPair
return void

GetFolder() public method

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
return RainbowFolder

GetFolderByPath() public method

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
return RainbowFolder

GetFolderIcon() public method

public GetFolderIcon ( string folderPath, bool small = true ) : Texture2D
folderPath string
small bool
return UnityEngine.Texture2D

RemoveAll() public method

public RemoveAll ( RainbowFolder match ) : void
match RainbowFolder
return void

RemoveAllByPath() public method

public RemoveAllByPath ( string path ) : void
path string
return void

UpdateFolder() public method

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
return void

Property Details

Folders public_oe property

public List Folders
return List