T-DEV-811/AR/Assets/AstarPathfindingProject/Editor/CustomGraphEditorAttribute.cs
2023-04-24 15:49:03 +02:00

20 lines
655 B
C#

namespace Pathfinding {
/// <summary>Added to editors of custom graph types</summary>
[System.AttributeUsage(System.AttributeTargets.All, Inherited = false, AllowMultiple = true)]
public class CustomGraphEditorAttribute : System.Attribute {
/// <summary>Graph type which this is an editor for</summary>
public System.Type graphType;
/// <summary>Name displayed in the inpector</summary>
public string displayName;
/// <summary>Type of the editor for the graph</summary>
public System.Type editorType;
public CustomGraphEditorAttribute (System.Type t, string displayName) {
graphType = t;
this.displayName = displayName;
}
}
}