changed how actor context menus are created.

This commit is contained in:
Chandler Cox
2022-10-31 19:18:43 -05:00
parent 38d65d38d1
commit 1af0188a3c
44 changed files with 197 additions and 192 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 scene and prefab context menus. Separate the subcontext menus with a /.
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Class)]
public class ActorContextMenuAttribute : Attribute
{
/// <summary>
/// The path to be used in the context menu
/// </summary>
public string Path;
/// <summary>
/// Initializes a new instance of the <see cref="ActorContextMenuAttribute"/> class.
/// </summary>
/// <param name="path">The path to use to create the context menu</param>
public ActorContextMenuAttribute(string path)
{
Path = path;
}
}
}