Files
Cielonos/Assets/OtherPlugins/Le Tai's Asset/TranslucentImage/Script/TranslucentImageEditorEnhancement.cs

27 lines
508 B
C#
Raw Normal View History

2025-12-08 05:27:53 -05:00
#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