diff --git a/Packages/UIParticle/Scripts/UIParticleUpdater.cs b/Packages/UIParticle/Scripts/UIParticleUpdater.cs index 4a91969..30b9cbe 100755 --- a/Packages/UIParticle/Scripts/UIParticleUpdater.cs +++ b/Packages/UIParticle/Scripts/UIParticleUpdater.cs @@ -138,6 +138,10 @@ private static Matrix4x4 GetScaledMatrix(UIParticle particle) * Matrix4x4.Scale(canvasTr.localScale).inverse; case ParticleSystemSimulationSpace.World: return transform.worldToLocalMatrix; + case ParticleSystemSimulationSpace.Custom: + // #78: Support custom simulation space. + return transform.worldToLocalMatrix + * Matrix4x4.Translate(main.customSimulationSpace.position); default: return Matrix4x4.identity; }