docs.unity3d.com
    Show / Hide Table of Contents

    Class HasEditorColorMethods

    Methods for classes that implement IHasEditorColor

    Inheritance
    Object
    HasEditorColorMethods
    Namespace: Unity.MARS.Authoring
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class HasEditorColorMethods

    Methods

    ApplyHueToChildren(IHasEditorColor, Single)

    Declaration
    public static void ApplyHueToChildren(this IHasEditorColor editorColor, float hueSimilarity = 0.9F)
    Parameters
    Type Name Description
    IHasEditorColor editorColor
    Single hueSimilarity

    SetNewColor(IHasEditorColor, Boolean, Boolean)

    Sets a new color for this object

    Declaration
    public static void SetNewColor(this IHasEditorColor editorColor, bool inheritHue, bool forceNew = false)
    Parameters
    Type Name Description
    IHasEditorColor editorColor

    This object (extension method)

    Boolean inheritHue

    If enabled, the color will use the same hue as any parent with the HasEditorColor interface.

    Boolean forceNew

    If enabled, the color will use a new color index, even if it is already the highest index in the scene

    SetNewColorIfDefault(IHasEditorColor)

    If the color is set to the default color, then it will choose a new color.

    Declaration
    public static void SetNewColorIfDefault(this IHasEditorColor editorColor)
    Parameters
    Type Name Description
    IHasEditorColor editorColor

    This object (extension method)

    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