Skip to content

Commit

Permalink
fix: remove obsolete warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Dec 23, 2023
1 parent 5c3232f commit 5d5eb34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 2 additions & 0 deletions Scripts/UIParticleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5d5eb34

Please sign in to comment.