A Preview Interface
I tried to write some codes these days, until I saw this interface that The Network Information(Preview) is quit interecting
So, Let's try write one of this Preview by ourself
Code
需要(最好)放在,Editor目录下,否则打包会有问题
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
/// <summary>
/// preview 界面类,暂时给唯一这个类做Preview Interface: CameraEffectManager.cs;
/// 如需自定义,需要把这个类里CameraEffectManager 替换成你的类;
/// Preview 的 Title(Depth Mgr 统计数据)也需要替换;
/// </summary>
[CustomPreview(typeof(GameObject))]
public class DepthManagerPreview : ObjectPreview
{
GUIContent title;
public override GUIContent GetPreviewTitle()
{
if (title == null)