3.0.0-preview.10

# [3.0.0-preview.10](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.9...v3.0.0-preview.10) (2020-04-30)

### Features

* add support for SpriteAtlas ([b31e325](b31e325bb1))
This commit is contained in:
semantic-release-bot
2020-04-30 03:28:48 +00:00
parent ce6478cf1f
commit bb7443400c
3 changed files with 13 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Rendering;
using UnityEngine.UI;
using ShaderPropertyType = Coffee.UIExtensions.UIParticle.AnimatableProperty.ShaderPropertyType;
@@ -88,7 +89,9 @@ namespace Coffee.UIExtensions
var textureSheet = cachedParticleSystem.textureSheetAnimation;
if (textureSheet.enabled && textureSheet.mode == ParticleSystemAnimationMode.Sprites && 0 < textureSheet.spriteCount)
{
tex = textureSheet.GetSprite(0).texture;
var sprite = textureSheet.GetSprite(0);
textureSheet.uvChannelMask = (UVChannelFlags) (sprite.packed ? -1 : 0);
tex = sprite.texture;
}
Profiler.EndSample();
}
@@ -603,4 +606,4 @@ namespace Coffee.UIExtensions
}
}
}
}
}