fix: fix Unity6.5 compile errors and warnings

close #400
This commit is contained in:
tako
2026-04-21 10:46:13 +09:00
committed by mob-sakai
parent babd2a7275
commit c2fb60a988
5 changed files with 20 additions and 9 deletions

View File

@@ -20,7 +20,9 @@ namespace Coffee.UIParticleInternal
{
public static T[] FindObjectsOfType<T>() where T : Object
{
#if UNITY_2023_1_OR_NEWER
#if UNITY_6000_5_OR_NEWER
return Object.FindObjectsByType<T>(FindObjectsInactive.Include);
#elif UNITY_2023_1_OR_NEWER
return Object.FindObjectsByType<T>(FindObjectsInactive.Include, FindObjectsSortMode.None);
#else
return Object.FindObjectsOfType<T>();