modular-avatar/Packages/nadena.dev.modular-avatar/Runtime/Menu/ModularAvatarMenuGroup.cs
2023-09-04 23:18:23 +09:00

21 lines
549 B
C#

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