您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
18 行
396 B
18 行
396 B
using UnityEngine;
|
|
using UnityEngine.RMGUI;
|
|
|
|
namespace UnityEditor.MaterialGraph.Drawing
|
|
{
|
|
public class NodePreviewDrawer : Image
|
|
{
|
|
public NodePreviewDrawData data;
|
|
|
|
public NodePreviewDrawer() {}
|
|
|
|
public override void DoRepaint(PaintContext args)
|
|
{
|
|
image = data.Render(new Vector2(200, 200));
|
|
base.DoRepaint(args);
|
|
}
|
|
}
|
|
}
|