Compare commits

..

3 Commits
4.1.1 ... 4.1.2

Author SHA1 Message Date
semantic-release-bot
b2b2b0f767 chore(release): 4.1.2 [skip ci]
## [4.1.2](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/4.1.1...4.1.2) (2022-06-27)

### Bug Fixes

* error on editor ([8034228](8034228713)), closes [#210](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/210)
* incorrect position of world space trail particles ([fb7f308](fb7f308f09)), closes [#209](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/209)
2022-06-27 16:08:02 +00:00
mob-sakai
fb7f308f09 fix: incorrect position of world space trail particles
close #209
2022-06-28 00:20:37 +09:00
mob-sakai
8034228713 fix: error on editor
close #210
2022-06-28 00:18:59 +09:00
4 changed files with 20 additions and 21 deletions

View File

@@ -1,3 +1,11 @@
## [4.1.2](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/4.1.1...4.1.2) (2022-06-27)
### Bug Fixes
* error on editor ([8034228](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/80342287137c07d58a7492875a401d80cb134073)), closes [#210](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/210)
* incorrect position of world space trail particles ([fb7f308](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/fb7f308f092db8a1512383857b80110cd626ecf9)), closes [#209](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/209)
## [4.1.1](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/4.1.0...4.1.1) (2022-06-25) ## [4.1.1](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/4.1.0...4.1.1) (2022-06-25)

View File

@@ -204,12 +204,10 @@ namespace Coffee.UIExtensions
}; };
// On select UIParticle, refresh particles. // On select UIParticle, refresh particles.
if (!Application.isPlaying) foreach (UIParticle t in targets)
{ {
foreach (UIParticle t in targets) if (Application.isPlaying || PrefabUtility.GetPrefabAssetType(t) != PrefabAssetType.NotAPrefab) continue;
{ t.RefreshParticles(t.particles);
t.RefreshParticles(t.particles);
}
} }
} }
@@ -432,13 +430,14 @@ namespace Coffee.UIExtensions
if (s_SerializedObject.targetObjects.Any(x => !x)) return; if (s_SerializedObject.targetObjects.Any(x => !x)) return;
s_SerializedObject.Update(); s_SerializedObject.Update();
GUILayout.BeginVertical(GUILayout.Width(220f)); using (new EditorGUILayout.VerticalScope(GUILayout.Width(220f)))
var labelWidth = EditorGUIUtility.labelWidth; {
EditorGUIUtility.labelWidth = 100; var labelWidth = EditorGUIUtility.labelWidth;
_xyzMode = DrawFloatOrVector3Field(s_SerializedObject.FindProperty("m_Scale3D"), _xyzMode); EditorGUIUtility.labelWidth = 100;
EditorGUILayout.PropertyField(s_SerializedObject.FindProperty("m_AbsoluteMode")); _xyzMode = DrawFloatOrVector3Field(s_SerializedObject.FindProperty("m_Scale3D"), _xyzMode);
EditorGUIUtility.labelWidth = labelWidth; EditorGUILayout.PropertyField(s_SerializedObject.FindProperty("m_AbsoluteMode"));
GUILayout.EndVertical(); EditorGUIUtility.labelWidth = labelWidth;
}
s_SerializedObject.ApplyModifiedProperties(); s_SerializedObject.ApplyModifiedProperties();
} }
catch catch

View File

@@ -461,14 +461,6 @@ namespace Coffee.UIExtensions
_prewarm = false; _prewarm = false;
} }
// Normal simulation for non-scaling or local spacing.
var isScaling = scale != Vector3.one;
if (!isScaling || _particleSystem.GetActualSimulationSpace() == ParticleSystemSimulationSpace.Local)
{
_particleSystem.Simulate(deltaTime, false, false, false);
return;
}
// Emitted particles found. // Emitted particles found.
if (_prevParticleCount != _particleSystem.particleCount) if (_prevParticleCount != _particleSystem.particleCount)
{ {

View File

@@ -2,7 +2,7 @@
"name": "com.coffee.ui-particle", "name": "com.coffee.ui-particle",
"displayName": "UI Particle", "displayName": "UI Particle",
"description": "This plugin provide a component to render particle effect for uGUI.\nThe particle rendering is maskable and sortable, without Camera, RenderTexture or Canvas.", "description": "This plugin provide a component to render particle effect for uGUI.\nThe particle rendering is maskable and sortable, without Camera, RenderTexture or Canvas.",
"version": "4.1.1", "version": "4.1.2",
"unity": "2018.2", "unity": "2018.2",
"license": "MIT", "license": "MIT",
"repository": { "repository": {