Class EditorMaterialUtils
Editor only Material utilities
Namespace: Unity.Labs.Utils
Syntax
public static class EditorMaterialUtils
Methods
ColorToColorPref(String, Color)
Declaration
public static string ColorToColorPref(string path, Color value)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | |
| Color | value |
Returns
| Type | Description |
|---|---|
| String |
PrefToColor(String)
Used to get editor preference colors setting
Declaration
public static Color PrefToColor(string pref)
Parameters
| Type | Name | Description |
|---|---|---|
| String | pref | Name of color preference inf the from of |
Returns
| Type | Description |
|---|---|
| Color | Color form Unity Editor Preferences |