Files
BABA_YAGA/Assets/D.A. Assets/Figma-Converter-for-Unity/Scripts/Runtime/Settings/ShadowSettings.cs
2026-05-13 23:02:02 +07:00

36 lines
968 B
C#

using DA_Assets.DAI;
using DA_Assets.Logging;
using System;
using UnityEngine;
#pragma warning disable CS0162
namespace DA_Assets.FCU.Model
{
[Serializable]
public class ShadowSettings : MonoBehaviourLinkerRuntime<FigmaConverterUnity>
{
[SerializeField] ShadowComponent shadowComponent = ShadowComponent.Figma;
public ShadowComponent ShadowComponent
{
get => shadowComponent;
set
{
switch (value)
{
case ShadowComponent.TrueShadow:
#if TRUESHADOW_EXISTS == false
DALogger.LogError(FcuLocKey.log_asset_not_imported.Localize(nameof(ShadowComponent.TrueShadow)));
SetValue(ref shadowComponent, ShadowComponent.Figma);
return;
#endif
break;
}
SetValue(ref shadowComponent, value);
}
}
}
}