diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 415dd2e..106a3a7 100644 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -667,7 +667,9 @@ private Camera GetBakeCamera() private void UpdateTracker() { +#pragma warning disable CS0618 // Type or member is obsolete if (!enabled || !autoScaling || autoScalingMode != AutoScalingMode.Transform) +#pragma warning restore CS0618 // Type or member is obsolete { _tracker.Clear(); } diff --git a/Scripts/UIParticleRenderer.cs b/Scripts/UIParticleRenderer.cs index ef8f3a9..294933d 100644 --- a/Scripts/UIParticleRenderer.cs +++ b/Scripts/UIParticleRenderer.cs @@ -406,7 +406,9 @@ public void UpdateMesh(Camera bakeCamera) GetComponents(typeof(IMeshModifier), s_Components); for (var i = 0; i < s_Components.Count; i++) { +#pragma warning disable CS0618 // Type or member is obsolete ((IMeshModifier)s_Components[i]).ModifyMesh(workerMesh); +#pragma warning restore CS0618 // Type or member is obsolete } s_Components.Clear();