fix: rename UIParticleProjectSettings.enableLinearToGamma to autoColorCorrection

This commit is contained in:
mob-sakai
2026-06-24 12:16:46 +09:00
parent 5aff2b480a
commit d93cacc70d
3 changed files with 24 additions and 7 deletions

View File

@@ -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;
}