You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
/// <summary>
/// Allows to declare order of the item in the editor.
/// </summary>
/// <seealso cref="System.Attribute" />
[Serializable]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Delegate | AttributeTargets.Event | AttributeTargets.Method)]
public sealed class EditorOrderAttribute : Attribute
{
/// <summary>
/// Requested order to perform layout on. Used to order the items.
/// </summary>
public int Order;
private EditorOrderAttribute()
{
}
/// <summary>
/// Override display order in visual tree for provided model.
/// </summary>
/// <remarks>
/// Current order is resolved runtime, and can change if custom editor class has changed.
/// </remarks>
/// <param name="order">The order order.</param>
public EditorOrderAttribute(int order)
{
Order = order;
}
}
}