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,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Text.RegularExpressions;
|
||||
using gay.lilyy.Common;
|
||||
using gay.lilyy.MenuStyling;
|
||||
using nadena.dev.ndmf;
|
||||
using nadena.dev.ndmf.vrchat;
|
||||
|
|
@ -19,7 +20,7 @@ namespace gay.lilyy.MenuStyling
|
|||
{
|
||||
InPhase(BuildPhase.Optimizing).AfterPlugin("gay.lilyy.MenuIconRemover").Run("SetMenuStyling", ctx =>
|
||||
{
|
||||
var obj = ctx.AvatarRootObject.GetComponent<MenuStylingConfig>();
|
||||
var obj = ComponentHelper.GetComponentInChildrenWithError<MenuStylingConfig>(ctx.AvatarRootObject);
|
||||
if (obj != null)
|
||||
{
|
||||
var descriptor = ctx.VRChatAvatarDescriptor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue