Class EditorMaterialUtils | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorMaterialUtils

    Editor only Material utilities

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

    Returns
    Type Description
    Color

    Color form Unity Editor Preferences

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023