modular-avatar/Packages/nadena.dev.modular-avatar/Runtime/Menu/ModularAvatarMenuInstaller.cs

26 lines
654 B
C#
Raw Normal View History

using UnityEngine;
using VRC.SDK3.Avatars.ScriptableObjects;
2022-11-11 12:39:58 +08:00
namespace nadena.dev.modular_avatar.core
{
2022-11-10 09:49:00 +08:00
[AddComponentMenu("Modular Avatar/MA Menu Installer")]
public class ModularAvatarMenuInstaller : AvatarTagComponent
{
public VRCExpressionsMenu menuToAppend;
public VRCExpressionsMenu installTargetMenu;
// ReSharper disable once Unity.RedundantEventFunction
void Start()
{
// Ensure that unity generates an enable checkbox
}
protected override void OnValidate()
{
base.OnValidate();
RuntimeUtil.InvalidateMenu();
}
}
}