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.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)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)