diff options
Diffstat (limited to 'YOTSNDMFConfig.cs')
| -rw-r--r-- | YOTSNDMFConfig.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/YOTSNDMFConfig.cs b/YOTSNDMFConfig.cs index baf92b8..0609d18 100644 --- a/YOTSNDMFConfig.cs +++ b/YOTSNDMFConfig.cs @@ -1,11 +1,22 @@ +#if UNITY_EDITOR
+
using UnityEngine;
+using nadena.dev.ndmf;
using VRC.SDK3.Avatars.ScriptableObjects;
namespace YOTS
{
+ [DisallowMultipleComponent]
public class YOTSNDMFConfig : MonoBehaviour
{
[Tooltip("The JSON configuration file.")]
public TextAsset jsonConfig;
+
+ void OnValidate()
+ {
+ gameObject.tag = "EditorOnly";
+ }
}
}
+
+#endif // UNITY_EDITOR
|
