From 4ca676ccea34177c1620a8ec48d77dfc12f697fa Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Wed, 28 Nov 2018 20:55:21 +0900 Subject: [PATCH] fix #12; Raycast blocking is unnecessary --- UIParticle.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UIParticle.cs b/UIParticle.cs index 3447362..ada82fe 100644 --- a/UIParticle.cs +++ b/UIParticle.cs @@ -99,6 +99,8 @@ namespace Coffee.UIExtensions get { return !_parent; } } + public override bool raycastTarget { get { return false; } set { base.raycastTarget = value; } } + public override Material GetModifiedMaterial (Material baseMaterial) { return base.GetModifiedMaterial (_renderer ? _renderer.sharedMaterial : baseMaterial);