From 9d04e41cde52ebcb85cf0fd2409af9ea5262aa82 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 29 Jan 2024 10:16:32 +0900 Subject: [PATCH] fix: fix warning --- Editor/UIParticleEditor.cs | 2 ++ Runtime/UIParticleAttractor.cs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Editor/UIParticleEditor.cs b/Editor/UIParticleEditor.cs index bd5d0c9..623005a 100644 --- a/Editor/UIParticleEditor.cs +++ b/Editor/UIParticleEditor.cs @@ -326,7 +326,9 @@ namespace Coffee.UIExtensions // UIParticle for trail should be removed. var label = "This UIParticle component should be removed. The UIParticle for trails is no longer needed."; +#pragma warning disable CS0612 if (FixButton(current.m_IsTrail, label)) +#pragma warning restore CS0612 { DestroyUIParticle(current); } diff --git a/Runtime/UIParticleAttractor.cs b/Runtime/UIParticleAttractor.cs index c4db00a..56c9e7e 100644 --- a/Runtime/UIParticleAttractor.cs +++ b/Runtime/UIParticleAttractor.cs @@ -86,7 +86,11 @@ namespace Coffee.UIExtensions /// /// The target ParticleSystem to attract. /// +#if UNITY_EDITOR public new ParticleSystem particleSystem +#else + public ParticleSystem particleSystem +#endif { get => m_ParticleSystem; set