diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-19 02:24:48 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-19 02:24:48 -0800 |
| commit | 0675266fac2d1b9b1af9b89b5830bc7efedfed21 (patch) | |
| tree | be94c1665757f53f0becf4a7fa9ab078d08e911a /YOTSNDMFConfig.cs | |
| parent | 6b5018777d9cc7c362fafa3c673659770a6a5bca (diff) | |
Fix upload
Scripts must be wrapped in `#if UNITY_EDITOR` or build shits the bed.
Also document config structs.
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
|
