mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-05 12:09:01 +08:00
23 lines
721 B
C#
23 lines
721 B
C#
using System.Collections.Generic;
|
|
using nadena.dev.modular_avatar.editor.ErrorReporting;
|
|
using nadena.dev.ndmf;
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
|
{
|
|
internal class VRChatSettingsPass : Pass<VRChatSettingsPass>
|
|
{
|
|
protected override void Execute(ndmf.BuildContext context)
|
|
{
|
|
var settings = context.AvatarRootObject.GetComponentsInChildren<ModularAvatarVRChatSettings>(true);
|
|
|
|
if (settings.Length > 1)
|
|
{
|
|
var objects = new List<object>();
|
|
objects.Add("MA VRChat Settings");
|
|
objects.AddRange(settings);
|
|
|
|
BuildReport.LogFatal("error.singleton", objects);
|
|
}
|
|
}
|
|
}
|
|
} |