docs.unity3d.com
    Show / Hide Table of Contents

    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
    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