浏览代码

Fix warnings

/main
Peter Bay Bastian 7 年前
当前提交
a2b1f9e5
共有 2 个文件被更改,包括 0 次插入30 次删除
  1. 27
      com.unity.shadergraph/Editor/Drawing/Views/MaterialGraphView.cs
  2. 3
      com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs

27
com.unity.shadergraph/Editor/Drawing/Views/MaterialGraphView.cs


onConvertToSubgraphClick();
}
public delegate void OnSelectionChanged(IEnumerable<INode> nodes);
public OnSelectionChanged onSelectionChanged;
void SelectionChanged()
{
var selectedNodes = selection.OfType<MaterialNodeView>().Where(x => x.userData is INode);
}
public override void AddToSelection(ISelectable selectable)
{
base.AddToSelection(selectable);
SelectionChanged();
}
public override void RemoveFromSelection(ISelectable selectable)
{
base.RemoveFromSelection(selectable);
SelectionChanged();
}
public override void ClearSelection()
{
base.ClearSelection();
SelectionChanged();
}
string SerializeGraphElementsImplementation(IEnumerable<GraphElement> elements)
{
var graph = new CopyPasteGraph(elements.OfType<MaterialNodeView>().Select(x => (INode)x.node), elements.OfType<Edge>().Select(x => x.userData).OfType<IEdge>());

3
com.unity.shadergraph/Editor/Drawing/Views/MaterialNodeView.cs


VisualElement m_SettingsButton;
VisualElement m_Settings;
VisualElement m_NodeSettingsView;
VisualElement m_CollapseButton;
public void Initialize(AbstractMaterialNode inNode, PreviewManager previewManager, IEdgeConnectorListener connectorListener)

}
m_PortInputContainer.SendToBack();
m_CollapseButton = this.Q("collapse-button");
// Remove this after updated to the correct API call has landed in trunk. ------------
VisualElement m_TitleContainer;

正在加载...
取消
保存