feat: add project settings for UIParticle

This commit is contained in:
mob-sakai
2024-05-22 19:55:49 +09:00
parent acebfb27f6
commit 72f5f9441b
3 changed files with 40 additions and 1 deletions

View File

@@ -418,7 +418,7 @@ namespace Coffee.UIExtensions
_lastBounds = bounds;
// Convert linear color to gamma color.
if (canvas.ShouldGammaToLinearInMesh())
if (UIParticleProjectSettings.enableLinearToGamma && canvas.ShouldGammaToLinearInMesh())
{
workerMesh.LinearToGamma();
}