浏览代码

Put in change notification for preview expanded state

/main
Peter Bay Bastian 7 年前
当前提交
bf91b908
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 9
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AbstractMaterialNode.cs

9
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AbstractMaterialNode.cs


public bool previewExpanded
{
get { return m_PreviewExpanded; }
set { m_PreviewExpanded = value; }
set
{
if (previewExpanded == value)
return;
m_PreviewExpanded = value;
if (onModified != null)
onModified(this, ModificationScope.Node);
}
}
// Nodes that want to have a preview area can override this and return true

正在加载...
取消
保存