3.0.0-preview.11

# [3.0.0-preview.11](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.10...v3.0.0-preview.11) (2020-05-07)

### Bug Fixes

* If sprite is null, a null exception is thrown ([50c6e98](50c6e980ca))
This commit is contained in:
semantic-release-bot
2020-05-07 18:11:08 +00:00
parent bb7443400c
commit 901e7f1647
3 changed files with 10 additions and 3 deletions

View File

@@ -90,8 +90,8 @@ namespace Coffee.UIExtensions
if (textureSheet.enabled && textureSheet.mode == ParticleSystemAnimationMode.Sprites && 0 < textureSheet.spriteCount)
{
var sprite = textureSheet.GetSprite(0);
textureSheet.uvChannelMask = (UVChannelFlags) (sprite.packed ? -1 : 0);
tex = sprite.texture;
textureSheet.uvChannelMask = (UVChannelFlags) (sprite && sprite.packed ? -1 : 0);
tex = sprite ? sprite.texture : null;
}
Profiler.EndSample();
}