You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-06-26 08:23:45 +00:00
fix: rename UIParticleProjectSettings.enableLinearToGamma to autoColorCorrection
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Coffee.UIParticleInternal;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Coffee.UIExtensions
|
||||
{
|
||||
@@ -9,12 +10,14 @@ namespace Coffee.UIExtensions
|
||||
{
|
||||
[Header("Setting")]
|
||||
[SerializeField]
|
||||
internal bool m_EnableLinearToGamma = true;
|
||||
[Tooltip("Automatically correct the color space of the mesh.")]
|
||||
[FormerlySerializedAs("m_EnableLinearToGamma")]
|
||||
private bool m_AutoColorCorrection = true;
|
||||
|
||||
public static bool enableLinearToGamma
|
||||
public static bool autoColorCorrection
|
||||
{
|
||||
get => instance.m_EnableLinearToGamma;
|
||||
set => instance.m_EnableLinearToGamma = value;
|
||||
get => instance.m_AutoColorCorrection;
|
||||
set => instance.m_AutoColorCorrection = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -444,7 +444,7 @@ namespace Coffee.UIExtensions
|
||||
_lastBounds = bounds;
|
||||
|
||||
// Convert linear color to gamma color.
|
||||
if (UIParticleProjectSettings.enableLinearToGamma && canvas.ShouldGammaToLinearInMesh())
|
||||
if (UIParticleProjectSettings.autoColorCorrection && canvas.ShouldGammaToLinearInMesh())
|
||||
{
|
||||
workerMesh.LinearToGamma();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user