阶段性完成
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user