29 lines
749 B
C#
29 lines
749 B
C#
#pragma warning disable CS0414
|
|
using Coffee.UIParticleInternal;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Coffee.UIExtensions
|
|
{
|
|
public class UIParticleProjectSettings : PreloadedProjectSettings<UIParticleProjectSettings>
|
|
{
|
|
[Header("Setting")]
|
|
[SerializeField]
|
|
internal bool m_EnableLinearToGamma = true;
|
|
|
|
public static bool enableLinearToGamma
|
|
{
|
|
get => instance.m_EnableLinearToGamma;
|
|
set => instance.m_EnableLinearToGamma = value;
|
|
}
|
|
|
|
#if UNITY_EDITOR
|
|
[SettingsProvider]
|
|
private static SettingsProvider CreateSettingsProvider()
|
|
{
|
|
return new PreloadedProjectSettingsProvider("Project/UI/UI Particle");
|
|
}
|
|
#endif
|
|
}
|
|
}
|