docs.unity.cn
    Show / Hide Table of Contents

    Class EditorMaterialUtils

    Editor only Material utilities

    Inheritance
    Object
    EditorMaterialUtils
    Namespace: UnityEditor.XRTools.Utils
    Syntax
    public static class EditorMaterialUtils : object

    Methods

    ColorToColorPref(String, Color)

    Return a string which matches the format for a color in Editor Prefs

    Declaration
    public static string ColorToColorPref(string path, Color value)
    Parameters
    Type Name Description
    String path

    The preference key/path

    Color value

    The color value

    Returns
    Type Description
    String

    Formatted string representing the color value for Editor Prefs

    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 EditorPrefs.GetString("HEADER/PARAMETER")

    Returns
    Type Description
    Color

    Color form Unity Editor Preferences

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use