From a0a2f4aece3c31e9673bd4b5b65553e047bf680f Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Fri, 3 Jan 2025 22:58:18 +0900 Subject: [PATCH] chore: update coffee.internal --- Runtime/Coffee.UIParticle.R.dll | Bin 0 -> 3072 bytes Runtime/Coffee.UIParticle.R.dll.meta | 33 ++++++++++++++++++ .../PreloadedProjectSettings.cs | 2 ++ .../Internal/Utilities/MaterialRepository.cs | 2 +- Runtime/Internal/Utilities/Misc.cs | 2 ++ 5 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Runtime/Coffee.UIParticle.R.dll create mode 100644 Runtime/Coffee.UIParticle.R.dll.meta diff --git a/Runtime/Coffee.UIParticle.R.dll b/Runtime/Coffee.UIParticle.R.dll new file mode 100644 index 0000000000000000000000000000000000000000..de59dad0bf2d83bfe317c10c555ff1eea6470ba3 GIT binary patch literal 3072 zcmeHJ&2Jk;6#s4Fge0YfsHhatmTg@mK3A@i14tD(u>+(^8aIy9h)c7!$Iilf*V-Mo zi9je94&0Cs|3N`qka9pMLV`=h1rgLkFC36KaYdXeAw>AS*>&u+DNv56&zU#x`)g)L znSb*`3DuAIY%$IhmqOEbWnHHdHZ@HJnI)$a1&2@?5~9 zh8{>vL?HDW*d(T0U=aED#Z>-!d&-K4@Gj#n2$2VFrhdZi!7A`DnN`}I*c1K>!UjhA z%tpw+(Z@Slt!whPWcbvX2JXmD@v0NWQH^R-TRyc*XF|?Ep4B^%@R){InldxeHKaJ@gnb zDh2;;P2gBkyNpOgL+KKlwrOQQru#5Fj9J6@#NYyM;}JYZ(=lAe4dM@o1;kshg;D%Q zJWf1}Cy2-Jtf9{t?BEck4vyjs@spS$&f)^`^Te4=2H6L4Km%!XQ6$%Tp9z^4_5@PL zsf0T}AJ#j*dIg2B(NM~%%$D3pdo^D#1lnT z?KGQi)mKxR2T<*3g;Jzq652=d+HUw!f@$E%Mr$m*AjwoVxGBsp&96c_Y@UJ%R6!7t;To1AY)tB$e;~th{X8#$oKCY z-Q9Wdr%NMNdjC(!@h=S=yBxXgi(xRcUQ?_%43^fS@LFuqPVN_PZ*p1EJpG$_hWZ58 z({E2i-w16BbvJas(L{5FM_BazdDjcjifcSiWd(WrM*agmiV>g)y3DDU;pfWU&b*-uco`a z1$|+SRNexMQC&og<*{j-?yUM^bXfdac|@Td55P@!dsy2#|MnMpXDwSziod263Bwa(GHX(EY#8ylwDCf4W& zbM014-i1^y6Op{#9) literal 0 HcmV?d00001 diff --git a/Runtime/Coffee.UIParticle.R.dll.meta b/Runtime/Coffee.UIParticle.R.dll.meta new file mode 100644 index 0000000..fb448a1 --- /dev/null +++ b/Runtime/Coffee.UIParticle.R.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 4d73b3825bf044d418ae21bb331d3902 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs b/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs index 21ff15a..7f5326a 100644 --- a/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs +++ b/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs @@ -133,6 +133,8 @@ namespace Coffee.UIParticleInternal #if UNITY_EDITOR private string _jsonText; + public static bool hasInstance => s_Instance; + public static T instance { get diff --git a/Runtime/Internal/Utilities/MaterialRepository.cs b/Runtime/Internal/Utilities/MaterialRepository.cs index 7f15945..cd3c05e 100644 --- a/Runtime/Internal/Utilities/MaterialRepository.cs +++ b/Runtime/Internal/Utilities/MaterialRepository.cs @@ -15,7 +15,7 @@ namespace Coffee.UIParticleInternal #if UNITY_EDITOR [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] - private static void Clear() + public static void Clear() { s_Repository.Clear(); } diff --git a/Runtime/Internal/Utilities/Misc.cs b/Runtime/Internal/Utilities/Misc.cs index 26c03cf..3f6fb47 100644 --- a/Runtime/Internal/Utilities/Misc.cs +++ b/Runtime/Internal/Utilities/Misc.cs @@ -69,6 +69,8 @@ namespace Coffee.UIParticleInternal return prefabStage.prefabContentsRoot.GetComponentsInChildren(true); } + + public static bool isBatchOrBuilding => Application.isBatchMode || BuildPipeline.isBuildingPlayer; #endif } }