浏览代码
ColorNodeData now re-uses the underlying list returned by GetControlData()
ColorNodeData now re-uses the underlying list returned by GetControlData()
MaterialNodeData.Initialize(INode) is now virtual, so that e.g. ColorNodeData can override and do initialization of it's own first. Implemented item reference checking for lists in NodeDrawer and MaterialNodeDrawer/main
Peter Bay Bastian
8 年前
当前提交
60926063
共有 6 个文件被更改,包括 133 次插入 和 63 次删除
-
1.gitignore
-
2MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/DrawData/NodeDrawData.cs
-
119MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs
-
37MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Drawer/MaterialNodeDrawer.cs
-
25MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Util/UIUtilities.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Util/UIUtilities.cs.meta
|
|||
MaterialGraphProject/.vs |
|||
MaterialGraphProject/.vscode |
|||
MaterialGraphProject/Library |
|||
MaterialGraphProject/MaterialGraphProject.CSharp.csproj |
|||
*.csproj |
|
|||
using System.Collections.Generic; |
|||
|
|||
namespace UnityEditor.Graphing.Util |
|||
{ |
|||
public static class UIUtilities |
|||
{ |
|||
public static bool ItemsReferenceEquals<T>(this IList<T> first, IList<T> second) |
|||
{ |
|||
if (first.Count != second.Count) |
|||
{ |
|||
return false; |
|||
} |
|||
|
|||
for (int i = 0; i < first.Count; i++) |
|||
{ |
|||
if (!ReferenceEquals(first[i], second[i])) |
|||
{ |
|||
return false; |
|||
} |
|||
} |
|||
|
|||
return true; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 60ebb16e194464bce8a4975da8fd215a |
|||
timeCreated: 1476782702 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue