modular-avatar/Packages/nadena.dev.modular-avatar/Runtime/Menu/ModularAvatarMenuGroup.cs
2023-07-30 01:42:20 +09:00

19 lines
546 B
C#

using System;
using System.Collections.Generic;
using nadena.dev.modular_avatar.core.menu;
using UnityEngine;
using VRC.SDK3.Avatars.ScriptableObjects;
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));
}
}
}