modular-avatar/Runtime/Menu/ModularAvatarMenuGroup.cs

26 lines
666 B
C#
Raw Normal View History

#if MA_VRCSDK3_AVATARS
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));
}
2023-08-05 14:47:03 +08:00
public override void ResolveReferences()
2023-08-05 14:47:03 +08:00
{
// no-op
}
}
}
#endif