21 lines
541 B
C#
21 lines
541 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Sirenix.OdinInspector.Editor;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
[CustomEditor(typeof(PostProcessInstructor))]
|
|
public class PostProcessInstructorInspector : OdinEditor
|
|
{
|
|
private PostProcessInstructor Target => target as PostProcessInstructor;
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
base.OnInspectorGUI();
|
|
if (GUILayout.Button("后处理"))
|
|
{
|
|
ObjectPostProcessorManager.Instance.PostProcess(Target);
|
|
}
|
|
}
|
|
}
|