Files
Cielonos/Assets/OtherPlugins/Le Tai's Asset/TranslucentImage/Script/TranslucentImageEditorEnhancement.cs
SoulliesOfficial f7af60351b 阶段性完成
2025-12-08 05:27:53 -05:00

27 lines
508 B
C#

#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace LeTai.Asset.TranslucentImage
{
[ExecuteAlways]
[AddComponentMenu("UI/Translucent Image", 2)]
public partial class TranslucentImage
{
protected override void Reset()
{
base.Reset();
color = Color.white;
source = source ? source : Shims.FindObjectOfType<TranslucentImageSource>();
}
protected override void OnValidate()
{
base.OnValidate();
SetVerticesDirty();
}
}
}
#endif