Tim Cooper
8 年前
当前提交
9ea47ed4
共有 24 个文件被更改,包括 455 次插入 和 357 次删除
-
2MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/SerializableGraph.uss.imported.asset
-
2MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/SerializableGraph.uss.imported.asset.meta
-
2MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/NodalView.uss.imported.asset
-
2MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/SimpleContentView.uss.imported.asset
-
2MaterialGraphProject/Assets/NewUI/Editor/Views/GraphView.uss.imported.asset
-
2MaterialGraphProject/Assets/NewUI/Editor/Views/GraphView.uss.imported.asset.meta
-
1MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/DrawData/MaterialGraphDataSource.cs
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Drawer/NodePreviewDrawer.cs
-
363MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss.imported.asset
-
2MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss.imported.asset.meta
-
12MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/2DPreview.template
-
111MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/UnitTests/ShaderGeneratorTests.cs
-
64MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/AbstractSurfaceMasterNode.cs
-
13MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/NormalNode.cs
-
13MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ScreenPosNode.cs
-
12MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/TextureNode.cs
-
13MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UVNode.cs
-
13MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/ViewDirectionNode.cs
-
13MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/WorldPosNode.cs
-
49MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphNode.cs
-
46MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/ShaderGenerator.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Manipulators/NodeExpander.cs.meta
-
43MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/DrawData/SubgraphNodeDrawData.cs
-
12MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/DrawData/SubgraphNodeDrawData.cs.meta
|
|||
fileFormatVersion: 2 |
|||
guid: 692fd89d176246745ad1640285f640d1 |
|||
timeCreated: 1478592749 |
|||
timeCreated: 1478599791 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|
|||
fileFormatVersion: 2 |
|||
guid: 1655c36f61ec5a5499f7dc1f3abea03c |
|||
timeCreated: 1478592706 |
|||
timeCreated: 1478599799 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|
|||
fileFormatVersion: 2 |
|||
guid: 13814e9314253674e8d4966bba14d963 |
|||
timeCreated: 1478592681 |
|||
timeCreated: 1478599780 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|
|||
fileFormatVersion: 2 |
|||
guid: 1e2e1c761ebf4ce478e48e37c5b95ddb |
|||
timeCreated: 1478596127 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using RMGUI.GraphView; |
|||
using UnityEditor.Graphing.Drawing; |
|||
using UnityEngine; |
|||
using UnityEngine.MaterialGraph; |
|||
|
|||
namespace UnityEditor.MaterialGraph.Drawing |
|||
{ |
|||
[Serializable] |
|||
class SubgraphContolDrawData : ControlDrawData |
|||
{ |
|||
public override void OnGUIHandler() |
|||
{ |
|||
base.OnGUIHandler(); |
|||
|
|||
var subGraphNode = node as SubGraphNode; |
|||
if (subGraphNode == null) |
|||
return; |
|||
|
|||
subGraphNode.subGraphAsset = (MaterialSubGraphAsset)EditorGUILayout.MiniThumbnailObjectField( |
|||
new GUIContent("Subgraph"), |
|||
subGraphNode.subGraphAsset, |
|||
typeof(MaterialSubGraphAsset), null); |
|||
} |
|||
|
|||
public override float GetHeight() |
|||
{ |
|||
return EditorGUIUtility.singleLineHeight + 2 * EditorGUIUtility.standardVerticalSpacing; |
|||
} |
|||
} |
|||
|
|||
[Serializable] |
|||
public class SubgraphNodeDrawData : MaterialNodeDrawData |
|||
{ |
|||
protected override IEnumerable<GraphElementData> GetControlData() |
|||
{ |
|||
var instance = CreateInstance<SubgraphContolDrawData>(); |
|||
instance.Initialize(node); |
|||
return new List<GraphElementData> { instance }; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: eefa32eb807a2fc4c961b1f2277753e6 |
|||
timeCreated: 1478610369 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue