docs.unity3d.com
    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
    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
    Int32

    Extension Methods

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