首次提交
This commit is contained in:
21
Assets/Scripts/Editor/Test/PlayerAnimatorEditor.cs
Normal file
21
Assets/Scripts/Editor/Test/PlayerAnimatorEditor.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
[CustomEditor(typeof(PlayerAnimator))]
|
||||
public class PlayerAnimatorEditor : Editor
|
||||
{
|
||||
private PlayerAnimator _target;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
_target = target as PlayerAnimator;
|
||||
// lookAtPoint = serializedObject.FindProperty("lookAtPoint");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Editor/Test/PlayerAnimatorEditor.cs.meta
Normal file
3
Assets/Scripts/Editor/Test/PlayerAnimatorEditor.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03298da249bf4d0d86c372beb4d5dc48
|
||||
timeCreated: 1767354859
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Editor/Test/UIBlurEditor.cs.meta
Normal file
3
Assets/Scripts/Editor/Test/UIBlurEditor.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ebaa0f203943458688dac255c2ea6441
|
||||
timeCreated: 1770124598
|
||||
Reference in New Issue
Block a user