mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 14:45:06 +08:00
939e63c297
* 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>
22 lines
634 B
C#
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
|
|
}
|
|
}
|
|
} |