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
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    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 — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)