浏览代码

Updated with feedback

/main
Martin Thorzen 6 年前
当前提交
9cccf3fb
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4
      com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs
  2. 6
      com.unity.shadergraph/Editor/Drawing/Views/GraphEditorView.cs

4
com.unity.shadergraph/Editor/Drawing/MaterialGraphEditWindow.cs


graphEditorView = new GraphEditorView(this, materialGraph)
{
persistenceKey = selectedGuid,
assetName = asset.name
assetName = asset.name.Split('/').Last()
};
m_ColorSpace = PlayerSettings.colorSpace;
}

graphEditorView = new GraphEditorView(this, m_GraphObject.graph as AbstractMaterialGraph)
{
persistenceKey = selectedGuid,
assetName = asset.name
assetName = asset.name.Split('/').Last()
};
graphEditorView.RegisterCallback<GeometryChangedEvent>(OnGeometryChanged);

6
com.unity.shadergraph/Editor/Drawing/Views/GraphEditorView.cs


public string assetName
{
get { return m_BlackboardProvider.blackboard.title; }
get { return m_BlackboardProvider.assetName; }
m_BlackboardProvider.blackboard.title = value.Split('/').Last();
m_MasterPreviewView.assetName = value.Split('/').Last();
m_BlackboardProvider.assetName = value;
m_MasterPreviewView.assetName = value;
}
}

正在加载...
取消
保存