You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
@@ -241,7 +241,7 @@ namespace Coffee.UIExtensions
|
|||||||
var hash = currentPs.GetMaterialHash(true);
|
var hash = currentPs.GetMaterialHash(true);
|
||||||
if (hash != 0)
|
if (hash != 0)
|
||||||
{
|
{
|
||||||
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local
|
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local && currentPs.trails.worldSpace
|
||||||
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
|
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
|
||||||
: matrix;
|
: matrix;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user