From b6b2c72b198566e2880a22831c937eff7e9eff28 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 18 Feb 2022 04:57:27 +0900 Subject: [PATCH] fix: annoying warning for [ExecuteInEditMode] Close #180 --- Samples~/Demo/UIParticleSystem_Demo.cs | 2 +- Scripts/UIParticle.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Samples~/Demo/UIParticleSystem_Demo.cs b/Samples~/Demo/UIParticleSystem_Demo.cs index fd9ebc1..4314bd5 100644 --- a/Samples~/Demo/UIParticleSystem_Demo.cs +++ b/Samples~/Demo/UIParticleSystem_Demo.cs @@ -7,7 +7,7 @@ namespace Coffee.UIExtensions.Demos { #if UNITY_5_3_OR_NEWER - [ExecuteInEditMode] + [ExecuteAlways] [RequireComponent(typeof(CanvasRenderer), typeof(ParticleSystem))] public class UIParticleSystem_Demo : MaskableGraphic { diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 94e0dd3..7e1dbd5 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -17,7 +17,7 @@ namespace Coffee.UIExtensions /// /// Render maskable and sortable particle effect ,without Camera, RenderTexture or Canvas. /// - [ExecuteInEditMode] + [ExecuteAlways] [RequireComponent(typeof(RectTransform))] [RequireComponent(typeof(CanvasRenderer))] public class UIParticle : MaskableGraphic