您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
892 B
34 行
892 B
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEditor.PostProcessing
|
|
{
|
|
using MonitorSettings = UnityEngine.PostProcessing.PostProcessingProfile.MonitorSettings;
|
|
|
|
public abstract class PostProcessingMonitor : IDisposable
|
|
{
|
|
protected MonitorSettings m_MonitorSettings;
|
|
protected PostProcessingInspector m_BaseEditor;
|
|
|
|
public void Init(MonitorSettings monitorSettings, PostProcessingInspector baseEditor)
|
|
{
|
|
m_MonitorSettings = monitorSettings;
|
|
m_BaseEditor = baseEditor;
|
|
}
|
|
|
|
public abstract bool IsSupported();
|
|
|
|
public abstract GUIContent GetMonitorTitle();
|
|
|
|
public virtual void OnMonitorSettings()
|
|
{}
|
|
|
|
public abstract void OnMonitorGUI(Rect r);
|
|
|
|
public virtual void OnFrameData(RenderTexture source)
|
|
{}
|
|
|
|
public virtual void Dispose()
|
|
{}
|
|
}
|
|
}
|