You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-16 13:10:07 +00:00
fix: the trail is incorrect in SimulationSpace.Local
This commit is contained in:
@@ -241,6 +241,10 @@ 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 * Matrix4x4.Translate(-currentPs.transform.position)
|
||||||
|
: matrix;
|
||||||
|
|
||||||
var m = MeshHelper.GetTemporaryMesh();
|
var m = MeshHelper.GetTemporaryMesh();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user