You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
close #18; New scaling system
This commit is contained in:
@@ -237,8 +237,9 @@ namespace Coffee.UIExtensions
|
|||||||
Profiler.EndSample ();
|
Profiler.EndSample ();
|
||||||
|
|
||||||
Profiler.BeginSample ("Make Matrix");
|
Profiler.BeginSample ("Make Matrix");
|
||||||
var s = scale * canvas.scaleFactor;
|
scaleaMatrix = m_ParticleSystem.main.scalingMode == ParticleSystemScalingMode.Hierarchy
|
||||||
scaleaMatrix = Matrix4x4.Scale (new Vector3 (s, s, s));
|
? Matrix4x4.Scale (scale * Vector3.one)
|
||||||
|
: Matrix4x4.Scale (scale * canvas.rootCanvas.transform.localScale);
|
||||||
Matrix4x4 matrix = default (Matrix4x4);
|
Matrix4x4 matrix = default (Matrix4x4);
|
||||||
switch (m_ParticleSystem.main.simulationSpace)
|
switch (m_ParticleSystem.main.simulationSpace)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user