docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IHasEditorColor

    Interface that allows an object to have a color associated with it in the editor. Extension methods can set the initial color and index from the current ColorPreset.

    Namespace: Unity.MARS.Authoring
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public interface IHasEditorColor

    Properties

    color

    The color used to identify this object

    Declaration
    Color color { get; set; }
    Property Value
    Type Description
    Color

    colorIndex

    The index in the color list that this color is using. If the color has been modified, it should be -1.

    Declaration
    int colorIndex { get; set; }
    Property Value
    Type Description
    int

    Extension Methods

    HasEditorColorMethods.ApplyHueToChildren(IHasEditorColor, float)
    HasEditorColorMethods.SetNewColor(IHasEditorColor, bool, bool)
    HasEditorColorMethods.SetNewColorIfDefault(IHasEditorColor)
    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)