mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-18 04:10:06 +08:00
a361789c43
With this change it is now possible for Menu Installer to specify as its target a menu installed by another Menu Installer, or a submenu thereof. This allows prefabs to inject extension entries into other prefab menus.
20 lines
550 B
C#
20 lines
550 B
C#
using UnityEngine;
|
|
using VRC.SDK3.Avatars.Components;
|
|
using VRC.SDK3.Avatars.ScriptableObjects;
|
|
|
|
namespace nadena.dev.modular_avatar.core
|
|
{
|
|
[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
|
|
}
|
|
}
|
|
} |