mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-07 13:47:06 -05:00
19 lines
426 B
C#
19 lines
426 B
C#
using System.Linq;
|
|
using UnityEngine;
|
|
|
|
namespace MeshUtility
|
|
{
|
|
public static class ExporterExtensions
|
|
{
|
|
public static bool EnableForExport(this Component mono)
|
|
{
|
|
if (mono.transform.Ancestors().Any(x => !x.gameObject.activeSelf))
|
|
{
|
|
// 自分か祖先に !activeSelf がいる
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|