Singularity/Library/PackageCache/com.unity.2d.animation@7.0.10/IK/Runtime/Solver2DMenuAttribute.cs
2024-05-06 11:45:45 -07:00

30 lines
767 B
C#

using System;
using UnityEngine;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.U2D.IK
{
/// <summary>
/// Attribute to add a menu item in IKManager2D to create the Solver.
/// </summary>
[MovedFrom("UnityEngine.Experimental.U2D.IK")]
[AttributeUsage(AttributeTargets.Class)]
public sealed class Solver2DMenuAttribute : Attribute
{
string m_MenuPath;
/// <summary>
/// Menu path.
/// </summary>
public string menuPath => m_MenuPath;
/// <summary>
/// Constructor
/// </summary>
/// <param name="_menuPath">Menu item path.</param>
public Solver2DMenuAttribute(string _menuPath)
{
m_MenuPath = _menuPath;
}
}
}