docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CustomColorData

    Inheritance
    object
    CustomColorData
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.ShaderGraph.Drawing.Colors
    Assembly: Unity.ShaderGraph.Editor.dll
    Syntax
    [Serializable]
    public class CustomColorData : ISerializationCallbackReceiver

    Methods

    OnAfterDeserialize()

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Declaration
    public void OnBeforeSerialize()

    Remove(string)

    Declaration
    public void Remove(string provider)
    Parameters
    Type Name Description
    string provider

    Set(string, Color)

    Declaration
    public void Set(string provider, Color color)
    Parameters
    Type Name Description
    string provider
    Color color

    TryGetColor(string, out Color)

    Declaration
    public bool TryGetColor(string provider, out Color color)
    Parameters
    Type Name Description
    string provider
    Color color
    Returns
    Type Description
    bool

    Implements

    ISerializationCallbackReceiver
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)