fix: support "disable domain reload" on Unity 6.6 or later

This commit is contained in:
mob-sakai
2026-06-28 13:28:24 +09:00
parent 16ab8d7bb8
commit e19638f0ec
3 changed files with 12 additions and 31 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace Coffee.UIParticleInternal
@@ -9,6 +10,7 @@ namespace Coffee.UIParticleInternal
private static readonly Dictionary<Type, IFrameCache> s_Caches = new Dictionary<Type, IFrameCache>();
#if UNITY_EDITOR && UNITY_2019_3_OR_NEWER
[InitializeOnLoadMethod]
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
#elif UNITY_EDITOR
[InitializeOnLoadMethod]