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:
Chandler Cox
2022-11-11 16:37:45 -06:00
parent 81c13825c5
commit 4515844219
41 changed files with 169 additions and 41 deletions

View 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;
}
}
}