docs.unity3d.com
    显示 / 隐藏目录

    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
    Syntax
    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)
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)