modular-avatar/Runtime/Menu/ModularAvatarMenuGroup.cs
anatawa12 939e63c297
add HelpURL Attribute (#491)
* add HelpURL Attribute

Now you can open website with clicking ? button on the inspector

* docs: use language redirect

---------

Co-authored-by: bd_ <bd_@nadena.dev>
2023-10-11 20:40:26 +09:00

22 lines
634 B
C#

using nadena.dev.modular_avatar.core.menu;
using UnityEngine;
namespace nadena.dev.modular_avatar.core
{
[AddComponentMenu("Modular Avatar/MA Menu Group")]
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/menu-group?lang=auto")]
public class ModularAvatarMenuGroup : MenuSourceComponent
{
public GameObject targetObject;
public override void Visit(NodeContext context)
{
context.PushNode(new MenuNodesUnder(targetObject != null ? targetObject : gameObject));
}
public override void ResolveReferences()
{
// no-op
}
}
}