changed how the actor toolbox is created. Allows fo user to enter their own tabs and actors with an attribute
This commit is contained in:
26
Source/Engine/Scripting/Attributes/Editor/ActorToolbox.cs
Normal file
26
Source/Engine/Scripting/Attributes/Editor/ActorToolbox.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace FlaxEngine
|
||||
{
|
||||
/// <summary>
|
||||
/// This attribute is used to show actors that can be created in the actor tab of the toolbox.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class ActorToolboxAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// The path to be used in the tool box
|
||||
/// </summary>
|
||||
public string Group;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ActorToolboxAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="group">The group to use to create the tab</param>
|
||||
public ActorToolboxAttribute(string group)
|
||||
{
|
||||
Group = group;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user