mob-sakai / ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
MIT License
4.43k stars 627 forks source link

Error on build in Unity 2019.3.11-15 #114

Closed korober closed 4 years ago

korober commented 4 years ago

Hello, I get error on project build:

The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) m_Maskable UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I think the problem in UIParticle.cs, line 41-45:

#if !UNITY_2019_4_OR_NEWER [SerializeField] private bool m_Maskable = true; #endif

To Reproduce 1) Install plugin on empty project (unity 2019.3.15f1) 2) build it for Android.

Expected behavior No error messages on build

Screenshots ugui_bug

Environment (please complete the following information):

mob-sakai commented 4 years ago

Hi @korober Thank you for your reporting!

mob-sakai commented 4 years ago

In Unity 2019.3.11, the SerializeField attribute was added to this field. https://unity3d.com/jp/unity/whats-new/2019.3.11

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 3.1.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: