docs.unity3d.com
    目次を表示する/隠す

    Class CreateFromDataOptions

    Attribute for classes that implement ICreateFromData. The attribute indicates 1. that this class should be included in lists of suggested components, 2. whether they are added by default, and 3. what order to use when sorting suggested components

    Inheritance
    Object
    Attribute
    CreateFromDataOptions
    Namespace: Unity.MARS.Authoring
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    [MovedFrom("Unity.MARS")]
    public class CreateFromDataOptions : Attribute, _Attribute

    Constructors

    CreateFromDataOptions(Int32, Boolean)

    Constructs the Create From Data options attribute

    Declaration
    public CreateFromDataOptions(int order, bool addByDefault)
    Parameters
    Type Name Description
    Int32 order

    The component's sort order

    Boolean addByDefault

    Whether this component will be added by default

    Properties

    AddByDefault

    If true, this component will be added by default when suggested.

    Declaration
    public bool AddByDefault { get; set; }
    Property Value
    Type Description
    Boolean

    Order

    The relative order of this component in a sorted list of components, where a lower number is comes before a higher number

    Declaration
    public int Order { get; set; }
    Property Value
    Type Description
    Int32
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)