|
|
|
|
|
|
Set(m_Identifiers, node.tempId, node.tempId); |
|
|
|
Set(m_RenderDatas, node.tempId, renderData); |
|
|
|
m_DirtyShaders.Add(node.tempId.index); |
|
|
|
node.onModified += OnNodeModified; |
|
|
|
node.RegisterCallback(OnNodeModified); |
|
|
|
if (node.RequiresTime()) |
|
|
|
m_TimeDependentPreviews.Add(node.tempId.index); |
|
|
|
|
|
|
|
|
|
|
Object.DestroyImmediate(renderData.renderTexture, true); |
|
|
|
|
|
|
|
if (renderData.shaderData != null && renderData.shaderData.node != null) |
|
|
|
renderData.shaderData.node.onModified -= OnNodeModified; |
|
|
|
renderData.shaderData.node.UnregisterCallback(OnNodeModified); |
|
|
|
} |
|
|
|
|
|
|
|
void DestroyPreview(Identifier nodeId) |
|
|
|