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
Namespace: Unity.MARS.Authoring
Syntax
public class CreateFromDataOptions : 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 |