From e724901d8f04bd1ddf2eb2ef6200969e71a4d7e8 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 27 Nov 2023 13:29:46 +0900 Subject: [PATCH] chore: fix compile error --- .../src/Scripts/Editor/UIParticleEditor.cs | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Packages/src/Scripts/Editor/UIParticleEditor.cs b/Packages/src/Scripts/Editor/UIParticleEditor.cs index 366240e..e2313b8 100644 --- a/Packages/src/Scripts/Editor/UIParticleEditor.cs +++ b/Packages/src/Scripts/Editor/UIParticleEditor.cs @@ -1,10 +1,3 @@ -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 @@ -12,10 +5,18 @@ #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 { @@ -121,7 +122,7 @@ SerializedObject CreateSerializeObject() { var uiParticles = Selection.gameObjects.Select(x => x.GetComponent()) .Where(x => x) - .Select(x => x.GetComponentInParent(true)) + .Select(x => x.GetComponentInParent()) .Where(x => x && x.canvas) .Concat(Selection.gameObjects.Select(x => x.GetComponent()) .Where(x => x && x.canvas)) @@ -299,7 +300,7 @@ public override void OnInspectorGUI() } // Does the shader support UI masks? - if (current.maskable && current.GetComponentInParent(false)) + if (current.maskable && current.GetComponentInParent()) { foreach (var mat in current.materials) {