Skip to content

Commit

Permalink
chore: fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Nov 27, 2023
1 parent 34f03b9 commit e724901
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Packages/src/Scripts/Editor/UIParticleEditor.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UI;
#if UNITY_2021_2_OR_NEWER
using UnityEditor.Overlays;
#else
using System.Reflection;
#endif
#if UNITY_2021_2_OR_NEWER
using UnityEditor.SceneManagement;

#elif UNITY_2018_3_OR_NEWER
using UnityEditor.Experimental.SceneManagement;
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UI;
using Object = UnityEngine.Object;

namespace Coffee.UIExtensions
{
Expand Down Expand Up @@ -121,7 +122,7 @@ SerializedObject CreateSerializeObject()
{
var uiParticles = Selection.gameObjects.Select(x => x.GetComponent<ParticleSystem>())
.Where(x => x)
.Select(x => x.GetComponentInParent<UIParticle>(true))
.Select(x => x.GetComponentInParent<UIParticle>())
.Where(x => x && x.canvas)
.Concat(Selection.gameObjects.Select(x => x.GetComponent<UIParticle>())
.Where(x => x && x.canvas))
Expand Down Expand Up @@ -299,7 +300,7 @@ public override void OnInspectorGUI()
}

// Does the shader support UI masks?
if (current.maskable && current.GetComponentInParent<Mask>(false))
if (current.maskable && current.GetComponentInParent<Mask>())
{
foreach (var mat in current.materials)
{
Expand Down

0 comments on commit e724901

Please sign in to comment.