Skip to content

Commit

Permalink
fix: error on InitializeIfNeeded
Browse files Browse the repository at this point in the history
close #264
  • Loading branch information
mob-sakai committed Aug 15, 2023
1 parent 640cee9 commit 1f1fb2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ protected override void OnDidApplyAnimationProperties()

private void InitializeIfNeeded()
{
if (!this) return;
if (enabled && m_IsTrail)
{
UnityEngine.Debug.LogWarningFormat(this, "[UIParticle] The UIParticle component should be removed: {0}\nReason: UIParticle for trails is no longer needed.", name);
Expand Down

0 comments on commit 1f1fb2a

Please sign in to comment.