|
|
|
|
|
|
m_ErrorTexture.SetPixel(1, 1, Color.magenta); |
|
|
|
m_ErrorTexture.Apply(); |
|
|
|
|
|
|
|
m_Graph.onChange += OnGraphChange; |
|
|
|
|
|
|
|
m_Graph.onChange += OnGraphChange; |
|
|
|
} |
|
|
|
|
|
|
|
public PreviewData GetPreview(INode node) |
|
|
|
|
|
|
|
|
|
|
// Fill MaterialPropertyBlock
|
|
|
|
m_PreviewPropertyBlock.Clear(); |
|
|
|
foreach (var nodeGuid in m_DirtyPreviews) |
|
|
|
foreach (var nodeGuid in m_PropertyNodeGuids) |
|
|
|
{ |
|
|
|
var node = m_Graph.GetNodeFromGuid<AbstractMaterialNode>(nodeGuid); |
|
|
|
node.CollectPreviewMaterialProperties(m_PreviewProperties); |
|
|
|