diff --git a/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs b/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs index 05bbc19..b808b27 100755 --- a/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs +++ b/Assets/Coffee/UIExtensions/UIParticle/Scripts/UIParticle.cs @@ -54,9 +54,9 @@ public enum ShaderPropertyType }; [SerializeField] - string m_Name; + string m_Name = ""; [SerializeField] - ShaderPropertyType m_Type; + ShaderPropertyType m_Type = ShaderPropertyType.Vector; public int id { get; private set; } public ShaderPropertyType type { get { return m_Type; } } diff --git a/Assets/UIParticle_Demo/UIParticle_Demo.cs b/Assets/UIParticle_Demo/UIParticle_Demo.cs index e5e614a..36d69bf 100644 --- a/Assets/UIParticle_Demo/UIParticle_Demo.cs +++ b/Assets/UIParticle_Demo/UIParticle_Demo.cs @@ -7,9 +7,9 @@ namespace Coffee.UIExtensions.Demo { public class UIParticle_Demo : MonoBehaviour { - [SerializeField] ParticleSystem [] m_ParticleSystems; - [SerializeField] List m_ScalingByTransforms; - [SerializeField] List m_ScalingByUIParticles; + [SerializeField] ParticleSystem [] m_ParticleSystems = new ParticleSystem [0]; + [SerializeField] List m_ScalingByTransforms = new List (); + [SerializeField] List m_ScalingByUIParticles = new List (); public void SetTimeScale (float scale) {