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