using System; namespace FlaxEngine { /// /// This attribute is used to show actors that can be created in the actor tab of the toolbox. /// [Serializable] [AttributeUsage(AttributeTargets.Class)] public class ActorToolboxAttribute : Attribute { /// /// The path to be used in the tool box /// public string Group; /// /// The name to be used for the actor in the tool box. Will default to actor name if now used. /// public string Name; /// /// Initializes a new instance of the class. /// /// The group to use to create the tab public ActorToolboxAttribute(string group) { Group = group; } /// /// Initializes a new instance of the class. /// /// The group used to creat the tab /// The name to use rather than default public ActorToolboxAttribute(string group, string name) : this(group) { Name = name; } } }