您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

28 行
633 B

using UnityEngine;
using UnityEngine.Experimental.UIElements;
using UnityEngine.Rendering;
namespace UnityEditor.ShaderGraph.Drawing
{
public sealed class PreviewTextureView : VisualElement
{
Texture m_Image;
public Texture image
{
get { return m_Image; }
set
{
if (value == m_Image)
return;
m_Image = value;
Dirty(ChangeType.Repaint);
}
}
public override void DoRepaint()
{
EditorGUI.DrawPreviewTexture(contentRect, image);
}
}
}