首次提交
This commit is contained in:
26
Assets/Scripts/Editor/Test/UIBlurEditor.cs
Normal file
26
Assets/Scripts/Editor/Test/UIBlurEditor.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[CustomEditor(typeof(UIBlur))]
|
||||
public class UIBlurEditor : Editor
|
||||
{
|
||||
private UIBlur _target;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
_target = target as UIBlur;
|
||||
// lookAtPoint = serializedObject.FindProperty("lookAtPoint");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
if (GUILayout.Button("Blur"))
|
||||
{
|
||||
_target.CaptureAndBlurOnce();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user