allow components off root, but only allow one or error
This commit is contained in:
parent
a49d2d74e6
commit
1f779f9297
18 changed files with 133 additions and 12 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using gay.lilyy.Common;
|
||||
using gay.lilyy.MenuIconRemover;
|
||||
using nadena.dev.ndmf;
|
||||
using nadena.dev.ndmf.vrchat;
|
||||
|
|
@ -20,7 +21,7 @@ namespace gay.lilyy.MenuIconRemover
|
|||
{
|
||||
InPhase(BuildPhase.Optimizing).BeforePlugin("gay.lilyy.MenuStyling").Run("RemoveMenuIcons", ctx =>
|
||||
{
|
||||
var obj = ctx.AvatarRootObject.GetComponent<MenuIconRemoverConfig>();
|
||||
var obj = ComponentHelper.GetComponentInChildrenWithError<MenuIconRemoverConfig>(ctx.AvatarRootObject);
|
||||
if (obj != null)
|
||||
{
|
||||
var shouldRemove = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue