Tim Cooper
8 年前
当前提交
3313d8c4
共有 182 个文件被更改,包括 3725 次插入 和 109 次删除
-
140MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/GraphEditWindow.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/NodeDrawers/TextureNodeUI.cs
-
6MaterialGraphProject/Assets/UnityShaderEditor/Editor/Editors/MaterialGraphEditor.cs
-
1MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/IGraphElementView.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/IGraphElementView.cs.meta
-
72MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphDataSource.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphDataSource.cs.meta
-
34MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphElementView.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphElementView.cs.meta
-
69MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphNode.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphNode.cs.meta
-
93MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphView.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialGraphView.cs.meta
-
56MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialNodeData.cs
-
12MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/MaterialNodeData.cs.meta
-
8MaterialGraphProject/Assets/New Shader Graph.ShaderGraph.meta
-
9MaterialGraphProject/Assets/NewUI.meta
-
9MaterialGraphProject/Assets/UnityShaderEditor/Editor/Styles.meta
-
295MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/New Shader Graph.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/New Shader Graph.ShaderGraph.meta
-
300MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/blah.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/blah.ShaderGraph.meta
-
271MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/new.ShaderGraph
-
8MaterialGraphProject/Assets/UnityShaderEditor/Editor/Testing/IntegrationTests/Graphs/new.ShaderGraph.meta
-
242MaterialGraphProject/Assets/asdf.unity
-
8MaterialGraphProject/Assets/asdf.unity.meta
-
263MaterialGraphProject/Assets/assetr.ShaderSubGraph
-
8MaterialGraphProject/Assets/assetr.ShaderSubGraph.meta
-
2MaterialGraphProject/MaterialGraphProject.CSharp.Editor.csproj.DotSettings
-
2MaterialGraphProject/MaterialGraphProject.CSharp.csproj.DotSettings
-
15MaterialGraphProject/MaterialGraphProject.sln.DotSettings.user
-
133MaterialGraphProject/ProjectSettings/NavMeshProjectSettings.asset
-
9MaterialGraphProject/Assets/NewUI/Editor.meta
-
15MaterialGraphProject/Assets/NewUI/Editor/Capabilities.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Capabilities.cs.meta
-
54MaterialGraphProject/Assets/NewUI/Editor/CustomDataView.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/CustomDataView.cs.meta
-
54MaterialGraphProject/Assets/NewUI/Editor/DataContainer.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/DataContainer.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Decorators.meta
-
225MaterialGraphProject/Assets/NewUI/Editor/Demo/Decorators/GridBackground.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Decorators/GridBackground.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements.meta
-
41MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Circle.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Circle.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data.meta
-
27MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/CircleData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/CircleData.cs.meta
-
17MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/IMGUIData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/IMGUIData.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/InvisibleBorderContainerData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/InvisibleBorderContainerData.cs.meta
-
19MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/MiniMapData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/MiniMapData.cs.meta
-
16MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/SimpleElementData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/SimpleElementData.cs.meta
-
13MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/WWWImageData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Data/WWWImageData.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph.meta
-
40MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/CustomEdge.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/CustomEdge.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/CustomEdgeData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/CustomEdgeData.cs.meta
-
65MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/NodeAnchorData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/NodeAnchorData.cs.meta
-
58MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/NodeData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/NodeData.cs.meta
-
27MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/VerticalNodeData.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Data/VerticalNodeData.cs.meta
-
47MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Node.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/Node.cs.meta
-
199MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/NodeAnchor.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/NodeAnchor.cs.meta
-
57MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/VerticalNode.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/Graph/VerticalNode.cs.meta
-
37MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/IMGUIElement.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/IMGUIElement.cs.meta
-
46MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/InvisibleBorderContainer.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/InvisibleBorderContainer.cs.meta
-
159MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/MiniMap.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/MiniMap.cs.meta
-
31MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/SimpleElement.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/SimpleElement.cs.meta
-
66MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/WWWImage.cs
-
12MaterialGraphProject/Assets/NewUI/Editor/Demo/Elements/WWWImage.cs.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Views.meta
-
9MaterialGraphProject/Assets/NewUI/Editor/Demo/Views/Data.meta
|
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: a0ee652b200b53a40afc89281a162658 |
|||
timeCreated: 1475740512 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using RMGUI.GraphView; |
|||
using UnityEngine.Graphing; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
[Serializable] |
|||
class MaterialGraphDataSource : IDataSource |
|||
{ |
|||
private List<GraphElementData> m_Elements = new List<GraphElementData>(); |
|||
|
|||
public IGraphAsset graphAsset { get; private set; } |
|||
|
|||
public MaterialGraphDataSource(IGraphAsset graphAsset) |
|||
{ |
|||
this.graphAsset = graphAsset; |
|||
|
|||
if (graphAsset == null) |
|||
return; |
|||
|
|||
var drawableNodes = new List<MaterialNodeData>(); |
|||
foreach (var node in graphAsset.graph.GetNodes<INode>()) |
|||
{ |
|||
var nodeData = new MaterialNodeData(node); |
|||
drawableNodes.Add(nodeData); |
|||
} |
|||
|
|||
var drawableEdges = new List<EdgeData>(); |
|||
foreach (var addedNode in drawableNodes) |
|||
{ |
|||
var baseNode = addedNode.node; |
|||
foreach (var slot in baseNode.GetOutputSlots<ISlot>()) |
|||
{ |
|||
var sourceAnchors = addedNode.elements.OfType<MaterialNodeAnchorData>(); |
|||
var sourceAnchor = sourceAnchors.FirstOrDefault(x => x.slot == slot); |
|||
|
|||
var edges = baseNode.owner.GetEdges(new SlotReference(baseNode.guid, slot.id)); |
|||
foreach (var edge in edges) |
|||
{ |
|||
var toNode = baseNode.owner.GetNodeFromGuid(edge.inputSlot.nodeGuid); |
|||
var toSlot = toNode.FindInputSlot<ISlot>(edge.inputSlot.slotId); |
|||
var targetNode = drawableNodes.FirstOrDefault(x => x.node == toNode); |
|||
|
|||
var targetAnchors = targetNode.elements.OfType<MaterialNodeAnchorData>(); |
|||
var targetAnchor = targetAnchors.FirstOrDefault(x => x.slot == toSlot); |
|||
drawableEdges.Add(new EdgeData {Left = sourceAnchor, Right = targetAnchor}); |
|||
} |
|||
} |
|||
} |
|||
|
|||
m_Elements.AddRange(drawableNodes.OfType<GraphElementData>()); |
|||
m_Elements.AddRange(drawableEdges.OfType<GraphElementData>()); |
|||
} |
|||
|
|||
public IEnumerable<GraphElementData> elements |
|||
{ |
|||
get { return m_Elements; } |
|||
} |
|||
|
|||
public void AddElement(GraphElementData element) |
|||
{ |
|||
m_Elements.Add(element); |
|||
} |
|||
|
|||
public void RemoveElement(GraphElementData element) |
|||
{ |
|||
m_Elements.RemoveAll(x => x == element); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a26cd124de0535c43b397e40a539e508 |
|||
timeCreated: 1475740512 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using RMGUI.GraphView; |
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
/*public class MaterialGraphElementView : IGraphElementView |
|||
{ |
|||
private bool m_Selected; |
|||
|
|||
public string name { get; set; } |
|||
|
|||
public Capabilities capabilities { get; set; } |
|||
|
|||
public Rect position { get; set; } |
|||
|
|||
public bool selected |
|||
{ |
|||
get { return m_Selected; } |
|||
set |
|||
{ |
|||
// Set new value (toggle old value)
|
|||
if ((capabilities & Capabilities.Selectable) == Capabilities.Selectable) |
|||
{ |
|||
m_Selected = value; |
|||
} |
|||
} |
|||
} |
|||
|
|||
protected void OnEnable() |
|||
{ |
|||
capabilities = Capabilities.Normal | Capabilities.Movable | Capabilities.Selectable; |
|||
} |
|||
}*/ |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b0f2b1083c334ca4ca42fea94c6a6bb4 |
|||
timeCreated: 1475740512 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Linq; |
|||
using RMGUI.GraphView; |
|||
using RMGUI.GraphView.Demo; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
using UnityEngine.RMGUI.StyleEnums.Values; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
[GUISkinStyle("window")] |
|||
[CustomDataView(typeof(MaterialNodeData))] |
|||
public class MaterialGraphNode : GraphElement |
|||
{ |
|||
VisualContainer m_InputContainer; |
|||
VisualContainer m_OutputContainer; |
|||
|
|||
public MaterialGraphNode() |
|||
{ |
|||
content = new GUIContent(""); |
|||
|
|||
m_InputContainer = new VisualContainer |
|||
{ |
|||
name = "input", // for USS&Flexbox
|
|||
flexDirection = FlexDirection.Column, |
|||
pickingMode = PickingMode.Ignore, |
|||
}; |
|||
m_OutputContainer = new VisualContainer |
|||
{ |
|||
name = "output", // for USS&Flexbox
|
|||
pickingMode = PickingMode.Ignore, |
|||
flexDirection = FlexDirection.Column, |
|||
}; |
|||
|
|||
AddChild(m_InputContainer); |
|||
AddChild(m_OutputContainer); |
|||
} |
|||
|
|||
public override void DoRepaint(PaintContext painter) |
|||
{ |
|||
base.DoRepaint(painter); |
|||
if (GetData<GraphElementData>() != null && GetData<GraphElementData>().selected) |
|||
{ |
|||
painter.DrawRectangleOutline(transform, position, Color.yellow); |
|||
} |
|||
} |
|||
|
|||
public override void OnDataChanged() |
|||
{ |
|||
base.OnDataChanged(); |
|||
|
|||
m_OutputContainer.ClearChildren(); |
|||
m_InputContainer.ClearChildren(); |
|||
|
|||
var nodeData = (MaterialNodeData) dataProvider; |
|||
|
|||
if (nodeData == null) |
|||
return; |
|||
|
|||
content = new GUIContent(nodeData.name); |
|||
foreach (var anchor in nodeData.elements.OfType<NodeAnchorData>()) |
|||
{ |
|||
if (anchor.direction == Direction.Input) |
|||
m_InputContainer.AddChild(new RMGUI.GraphView.Demo.NodeAnchor(anchor)); |
|||
else |
|||
m_OutputContainer.AddChild(new RMGUI.GraphView.Demo.NodeAnchor(anchor)); |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: efde379ae2f508a48ae1413f3486574f |
|||
timeCreated: 1475740513 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Reflection; |
|||
using RMGUI.GraphView; |
|||
using RMGUI.GraphView.Demo; |
|||
using UnityEngine; |
|||
using UnityEngine.Graphing; |
|||
using UnityEngine.MaterialGraph; |
|||
using UnityEngine.RMGUI; |
|||
using Object = UnityEngine.Object; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
[StyleSheet("Assets/UnityShaderEditor/Editor/Styles/NodalView.uss")] |
|||
//[StyleSheet("Assets/UnityShaderEditor/Editor/Styles/MatGraph.uss")]
|
|||
public class MaterialGraphView : GraphView |
|||
{ |
|||
public MaterialGraphView() |
|||
{ |
|||
AddManipulator(new ContentZoomer()); |
|||
AddManipulator(new ContentDragger()); |
|||
AddManipulator(new RectangleSelector()); |
|||
AddManipulator(new SelectionDragger()); |
|||
AddManipulator(new ClickSelector()); |
|||
AddManipulator(new ContextualMenu(DoContextMenu)); |
|||
AddDecorator(new GridBackground(contentViewContainer)); |
|||
} |
|||
|
|||
public virtual bool CanAddToNodeMenu(Type type) |
|||
{ |
|||
return true; |
|||
} |
|||
|
|||
protected EventPropagation DoContextMenu(Event evt, Object customData) |
|||
{ |
|||
var gm = new GenericMenu(); |
|||
foreach (Type type in Assembly.GetAssembly(typeof(AbstractMaterialNode)).GetTypes()) |
|||
{ |
|||
if (type.IsClass && !type.IsAbstract && (type.IsSubclassOf(typeof(AbstractMaterialNode)))) |
|||
{ |
|||
var attrs = type.GetCustomAttributes(typeof(TitleAttribute), false) as TitleAttribute[]; |
|||
if (attrs != null && attrs.Length > 0 && CanAddToNodeMenu(type)) |
|||
{ |
|||
gm.AddItem(new GUIContent(attrs[0].m_Title), false, AddNode, new AddNodeCreationObject(type, evt.mousePosition)); |
|||
} |
|||
} |
|||
} |
|||
|
|||
//gm.AddSeparator("");
|
|||
// gm.AddItem(new GUIContent("Convert To/SubGraph"), true, ConvertSelectionToSubGraph);
|
|||
gm.ShowAsContext(); |
|||
return EventPropagation.Stop; |
|||
} |
|||
|
|||
private class AddNodeCreationObject : object |
|||
{ |
|||
public Vector2 m_Pos; |
|||
public readonly Type m_Type; |
|||
|
|||
public AddNodeCreationObject(Type t, Vector2 p) |
|||
{ |
|||
m_Type = t; |
|||
m_Pos = p; |
|||
} |
|||
}; |
|||
|
|||
private void AddNode(object obj) |
|||
{ |
|||
var posObj = obj as AddNodeCreationObject; |
|||
if (posObj == null) |
|||
return; |
|||
|
|||
INode node; |
|||
try |
|||
{ |
|||
node = Activator.CreateInstance(posObj.m_Type) as INode; |
|||
} |
|||
catch (Exception e) |
|||
{ |
|||
Debug.LogWarningFormat("Could not construct instance of: {0} - {1}", posObj.m_Type, e); |
|||
return; |
|||
} |
|||
|
|||
if (node == null) |
|||
return; |
|||
var drawstate = node.drawState; |
|||
drawstate.position = new Rect(posObj.m_Pos.x, posObj.m_Pos.y, drawstate.position.width, drawstate.position.height); |
|||
node.drawState = drawstate; |
|||
/*m_DataSource.Addnode(node); |
|||
Rebuild(); |
|||
Repaint();*/ |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 1e6083cb1f552844b87f0d69ff55f58d |
|||
timeCreated: 1475740511 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using RMGUI.GraphView; |
|||
using RMGUI.GraphView.Demo; |
|||
using UnityEngine; |
|||
using UnityEngine.Graphing; |
|||
|
|||
namespace UnityEditor.Graphing.Drawing |
|||
{ |
|||
[Serializable] |
|||
public class MaterialNodeAnchorData : NodeAnchorData |
|||
{ |
|||
public ISlot slot { get; private set; } |
|||
|
|||
public MaterialNodeAnchorData(ISlot slot) |
|||
{ |
|||
this.slot = slot; |
|||
name = slot.displayName; |
|||
type = typeof(Vector4); |
|||
direction = slot.isInputSlot ? Direction.Input : Direction.Output; |
|||
} |
|||
} |
|||
|
|||
[Serializable] |
|||
public class MaterialNodeData : GraphElementData |
|||
{ |
|||
public INode node { get; private set; } |
|||
|
|||
protected List<NodeAnchorData> m_Anchors = new List<NodeAnchorData>(); |
|||
|
|||
public IEnumerable<GraphElementData> elements |
|||
{ |
|||
get { return m_Anchors.OfType<GraphElementData>(); } |
|||
} |
|||
|
|||
public MaterialNodeData(INode inNode) |
|||
{ |
|||
node = inNode; |
|||
|
|||
if (node == null) |
|||
return; |
|||
|
|||
name = inNode.name; |
|||
|
|||
foreach (var input in node.GetSlots<ISlot>()) |
|||
{ |
|||
m_Anchors.Add(new MaterialNodeAnchorData(input)); |
|||
} |
|||
|
|||
position = new Rect(node.drawState.position.x, node.drawState.position.y, 100, 200); |
|||
capabilities |= Capabilities.Movable; |
|||
} |
|||
|
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: dc466e8d89b098643895e8192d5d78c5 |
|||
timeCreated: 1475740512 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 00792c7fb4484764c9916044dbd747e8 |
|||
timeCreated: 1472740580 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 891cd61cb6bbad6438e2bae6bdc5b60c |
|||
folderAsset: yes |
|||
timeCreated: 1475651642 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 55206ee1a8b96e84bb8a8a0bc7c58bd0 |
|||
folderAsset: yes |
|||
timeCreated: 1475748087 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: New Shader Graph |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.PixelShaderNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"c835c2eb-0a54-43de-b581-1b283b208eef\",\n |
|||
\ \"m_Name\": \"PixelMaster\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 236.0,\n \"y\": 93.0,\n \"width\": |
|||
-236.0,\n \"height\": -93.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Albedo\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
3,\\n \\\"m_ShaderOutputName\\\": \\\"Albedo\\\"\\n}\"\n },\n |
|||
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"Normal\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 2,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 3,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Normal\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n |
|||
\ \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": |
|||
\\\"Emission\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 2,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 3,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Emission\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"Metallic\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Metallic\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"Smoothness\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Smoothness\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": |
|||
\\\"Occlusion\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Occlusion\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 6,\\n \\\"m_DisplayName\\\": |
|||
\\\"Alpha\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Alpha\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_SerializedLightFunction\": {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.PBRMetalicLightFunction\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{}\"\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"4ea9595c-885f-4073-a7f7-af240cae0405\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -1020.91259765625,\n \"y\": -118.99871826171875,\n |
|||
\ \"width\": 152.0,\n \"height\": 139.0\n }\n |
|||
\ },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": |
|||
{\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"Color\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 4,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Color\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_PropertyName\": \"\",\n \"m_Description\": \"\",\n \"m_Exposed\": |
|||
1,\n \"m_Color\": {\n \"r\": 1.0,\n \"g\": 0.0,\n \"b\": |
|||
0.0,\n \"a\": 1.0\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"057ee10d-238b-4ad2-ba2f-7ef35a1034a0\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -1023.91259765625,\n \"y\": 39.00128173828125,\n |
|||
\ \"width\": 211.0,\n \"height\": 181.0\n }\n |
|||
\ },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": |
|||
{\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"Color\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 4,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Color\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_PropertyName\": \"\",\n \"m_Description\": \"\",\n \"m_Exposed\": |
|||
1,\n \"m_Color\": {\n \"r\": 0.9264705777168274,\n \"g\": |
|||
0.19074395298957826,\n \"b\": 0.19074395298957826,\n \"a\": |
|||
0.0\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"af0c9ce8-5cb8-4b59-b543-5dcc4f900137\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -1034.91259765625,\n \"y\": 192.00128173828126,\n |
|||
\ \"width\": 603.0,\n \"height\": -307.0\n }\n |
|||
\ },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": |
|||
{\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"RGBA\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 4,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"RGBA\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n |
|||
\ \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"R\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"R\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"B\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"B\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"UV\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 10906,\\n \\\"guid\\\": |
|||
\\\"0000000000000000f000000000000000\\\",\\n \\\"type\\\": 0\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 0\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.SubGraphNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\",\n |
|||
\ \"m_Name\": \"SubGraph\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -394.0,\n \"y\": 111.0,\n \"width\": |
|||
394.0,\n \"height\": -111.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": -1,\\n \\\"m_DisplayName\\\": \\\"Input 1(4)\\\",\\n |
|||
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n |
|||
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": |
|||
\\\"Input 2(4)\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 1,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 4,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"Output 1(4)\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 1,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 4,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1,\n \"m_SerializedSubGraph\": \"{\\n \\\"subGraph\\\": |
|||
{\\n \\\"fileID\\\": 11400000,\\n \\\"guid\\\": \\\"8c60a30380fb1434597b0c3993758852\\\",\\n |
|||
\ \\\"type\\\": 2\\n }\\n}\"\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": |
|||
\"4ea9595c-885f-4073-a7f7-af240cae0405\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": -1,\n \"m_NodeGUIDSerialized\": \"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"af0c9ce8-5cb8-4b59-b543-5dcc4f900137\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": -2,\n \"m_NodeGUIDSerialized\": \"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"1b4853a9-f60e-4b74-a56f-faa39bd3c2e3\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 3,\n \"m_NodeGUIDSerialized\": \"c835c2eb-0a54-43de-b581-1b283b208eef\"\n |
|||
\ }\n}" |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: f60ac9e5e8c629d44aa0a9f0f810fbbd |
|||
timeCreated: 1475478432 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: blah |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.PixelShaderNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\",\n |
|||
\ \"m_Name\": \"PixelMaster\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 0.0,\n \"y\": 0.0,\n \"width\": |
|||
0.0,\n \"height\": 0.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Albedo\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
3,\\n \\\"m_ShaderOutputName\\\": \\\"Albedo\\\"\\n}\"\n },\n |
|||
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"Normal\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 2,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 3,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Normal\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n |
|||
\ \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": |
|||
\\\"Emission\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 2,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 3,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Emission\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"Metallic\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Metallic\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"Smoothness\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Smoothness\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": |
|||
\\\"Occlusion\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Occlusion\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 6,\\n \\\"m_DisplayName\\\": |
|||
\\\"Alpha\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Alpha\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_SerializedLightFunction\": {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.PBRMetalicLightFunction\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{}\"\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"8f2995c0-956f-4d3c-a2a1-d326a8b2ca2f\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -495.0,\n \"y\": -378.0,\n \"width\": |
|||
-196.0,\n \"height\": 455.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"R\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"R\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"B\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"B\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"UV\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": |
|||
\\\"330f42016073a97418a4aae5517e32c8\\\",\\n \\\"type\\\": 3\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 0\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"921f9c09-60c4-49fe-8a1f-e74528b68723\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -528.0,\n \"y\": 265.0,\n \"width\": |
|||
21.0,\n \"height\": 60.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"R\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"R\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"B\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"B\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"UV\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": |
|||
\\\"5a5e07ee958edbd468227e1d9ac4726a\\\",\\n \\\"type\\\": 3\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 3\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"6ae3a0e2-f1f0-4d9a-a6aa-20078a916e6d\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -852.0,\n \"y\": 85.0,\n \"width\": |
|||
0.0,\n \"height\": 0.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\": |
|||
\"\",\n \"m_Exposed\": 1,\n \"m_Color\": {\n \"r\": 1.0,\n |
|||
\ \"g\": 0.31617647409439089,\n \"b\": 0.31617647409439089,\n |
|||
\ \"a\": 0.0\n }\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"8f2995c0-956f-4d3c-a2a1-d326a8b2ca2f\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"921f9c09-60c4-49fe-8a1f-e74528b68723\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": |
|||
\"6ae3a0e2-f1f0-4d9a-a6aa-20078a916e6d\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 3,\n \"m_NodeGUIDSerialized\": \"e5f33fa6-beb3-4bac-bb88-820fc7df4a8f\"\n |
|||
\ }\n}" |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: 7a113c2246bb1f646974359108cfcaa2 |
|||
timeCreated: 1470917887 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 562bd27a5e73fc64d80a1d9d936ffbd5, type: 3} |
|||
m_Name: new |
|||
m_EditorClassIdentifier: |
|||
m_MaterialGraph: |
|||
m_MaterialOptions: |
|||
m_SrcBlend: 0 |
|||
m_DstBlend: 1 |
|||
m_CullMode: 0 |
|||
m_ZTest: 2 |
|||
m_ZWrite: 0 |
|||
m_RenderQueue: 1 |
|||
m_RenderType: 0 |
|||
m_ShadowPass: 0 |
|||
m_FullForwardShadows: 0 |
|||
m_NoAmbient: 0 |
|||
m_NoVertexLights: 0 |
|||
m_NoLightmaps: 0 |
|||
m_NoDirLightmap: 0 |
|||
m_NoForwardAdd: 0 |
|||
m_ApproxView: 0 |
|||
m_HalfAsView: 0 |
|||
m_Expanded: 0 |
|||
m_PixelGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.PixelShaderNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"8539a9b8-41b7-4729-94ac-6f25b1d5efa3\",\n |
|||
\ \"m_Name\": \"PixelMaster\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 0.0,\n \"y\": 0.0,\n \"width\": |
|||
0.0,\n \"height\": 0.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Albedo\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 2,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
3,\\n \\\"m_ShaderOutputName\\\": \\\"Albedo\\\"\\n}\"\n },\n |
|||
\ {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": |
|||
\\\"Normal\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 2,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 3,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Normal\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n |
|||
\ \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": |
|||
\\\"Emission\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 2,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 3,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Emission\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"Metallic\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Metallic\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"Smoothness\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Smoothness\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": |
|||
\\\"Occlusion\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": |
|||
2147483647,\\n \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n |
|||
\ \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n |
|||
\ \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": 1,\\n |
|||
\ \\\"m_ShaderOutputName\\\": \\\"Occlusion\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 6,\\n \\\"m_DisplayName\\\": |
|||
\\\"Alpha\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"Alpha\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n |
|||
\ \"m_SerializedLightFunction\": {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.PBRMetalicLightFunction\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{}\"\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"3c5c7d01-2fd6-44a8-b3e7-148190b0ecde\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -620.0,\n \"y\": -121.0,\n \"width\": |
|||
22.0,\n \"height\": 263.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"R\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"R\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"B\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"B\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"UV\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": |
|||
\\\"e0ac3a897e9bf5d40ac1eb6a44a7ab21\\\",\\n \\\"type\\\": 3\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 0\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.TextureNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"16289dee-283c-42df-8430-70d7e1342db3\",\n |
|||
\ \"m_Name\": \"Texture\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -513.0,\n \"y\": 338.0,\n \"width\": |
|||
112.0,\n \"height\": 69.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"RGBA\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 1,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"RGBA\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": |
|||
\\\"R\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"R\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": |
|||
\\\"B\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 1,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"B\\\"\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 5,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\": |
|||
1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 4,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n |
|||
\ \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": |
|||
\\\"UV\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n |
|||
\ \\\"m_ValueType\\\": 3,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": |
|||
0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": |
|||
0.0\\n },\\n \\\"m_CurrentValue\\\": {\\n \\\"x\\\": 0.0,\\n |
|||
\ \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n |
|||
\ },\\n \\\"m_ConcreteValueType\\\": 2,\\n \\\"m_ShaderOutputName\\\": |
|||
\\\"UV\\\"\\n}\"\n }\n ],\n \"m_OutputPrecision\": 1,\n \"m_PropertyName\": |
|||
\"\",\n \"m_Description\": \"\",\n \"m_Exposed\": 1,\n \"m_SerializedTexture\": |
|||
\"{\\n \\\"texture\\\": {\\n \\\"fileID\\\": 2800000,\\n \\\"guid\\\": |
|||
\\\"556373d2abe91394795e2c7b920330f0\\\",\\n \\\"type\\\": 3\\n }\\n}\",\n |
|||
\ \"m_TextureType\": 3\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"3c5c7d01-2fd6-44a8-b3e7-148190b0ecde\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"8539a9b8-41b7-4729-94ac-6f25b1d5efa3\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": |
|||
\"16289dee-283c-42df-8430-70d7e1342db3\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"8539a9b8-41b7-4729-94ac-6f25b1d5efa3\"\n |
|||
\ }\n}" |
|||
m_Name: |
|
|||
fileFormatVersion: 2 |
|||
guid: eea9c141cf904494f8038d7148c31f9b |
|||
timeCreated: 1470912443 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!29 &1 |
|||
SceneSettings: |
|||
m_ObjectHideFlags: 0 |
|||
m_PVSData: |
|||
m_PVSObjectsArray: [] |
|||
m_PVSPortalsArray: [] |
|||
m_OcclusionBakeSettings: |
|||
smallestOccluder: 5 |
|||
smallestHole: 0.25 |
|||
backfaceThreshold: 100 |
|||
--- !u!104 &2 |
|||
RenderSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 7 |
|||
m_Fog: 0 |
|||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} |
|||
m_FogMode: 3 |
|||
m_FogDensity: 0.01 |
|||
m_LinearFogStart: 0 |
|||
m_LinearFogEnd: 300 |
|||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} |
|||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} |
|||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} |
|||
m_AmbientIntensity: 1 |
|||
m_AmbientMode: 0 |
|||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_HaloStrength: 0.5 |
|||
m_FlareStrength: 1 |
|||
m_FlareFadeSpeed: 3 |
|||
m_HaloTexture: {fileID: 0} |
|||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} |
|||
m_DefaultReflectionMode: 0 |
|||
m_DefaultReflectionResolution: 128 |
|||
m_ReflectionBounces: 1 |
|||
m_ReflectionIntensity: 1 |
|||
m_CustomReflection: {fileID: 0} |
|||
m_Sun: {fileID: 0} |
|||
m_IndirectSpecularColor: {r: 0.16788411, g: 0.21073692, b: 0.28994152, a: 1} |
|||
--- !u!157 &3 |
|||
LightmapSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 7 |
|||
m_GIWorkflowMode: 0 |
|||
m_GISettings: |
|||
serializedVersion: 2 |
|||
m_BounceScale: 1 |
|||
m_IndirectOutputScale: 1 |
|||
m_AlbedoBoost: 1 |
|||
m_TemporalCoherenceThreshold: 1 |
|||
m_EnvironmentLightingMode: 0 |
|||
m_EnableBakedLightmaps: 1 |
|||
m_EnableRealtimeLightmaps: 1 |
|||
m_LightmapEditorSettings: |
|||
serializedVersion: 4 |
|||
m_Resolution: 2 |
|||
m_BakeResolution: 40 |
|||
m_TextureWidth: 1024 |
|||
m_TextureHeight: 1024 |
|||
m_AO: 0 |
|||
m_AOMaxDistance: 1 |
|||
m_CompAOExponent: 1 |
|||
m_CompAOExponentDirect: 0 |
|||
m_Padding: 2 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_LightmapsBakeMode: 1 |
|||
m_TextureCompression: 1 |
|||
m_DirectLightInLightProbes: 1 |
|||
m_FinalGather: 0 |
|||
m_FinalGatherFiltering: 1 |
|||
m_FinalGatherRayCount: 256 |
|||
m_ReflectionCompression: 2 |
|||
m_LightingDataAsset: {fileID: 0} |
|||
m_RuntimeCPUUsage: 25 |
|||
--- !u!196 &4 |
|||
NavMeshSettings: |
|||
serializedVersion: 2 |
|||
m_ObjectHideFlags: 0 |
|||
m_BuildSettings: |
|||
serializedVersion: 2 |
|||
agentRadius: 0.5 |
|||
agentHeight: 2 |
|||
agentSlope: 45 |
|||
agentClimb: 0.4 |
|||
ledgeDropHeight: 0 |
|||
maxJumpAcrossDistance: 0 |
|||
accuratePlacement: 0 |
|||
minRegionArea: 2 |
|||
cellSize: 0.16666667 |
|||
manualCellSize: 0 |
|||
m_NavMeshData: {fileID: 0} |
|||
--- !u!1 &1360475644 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
serializedVersion: 5 |
|||
m_Component: |
|||
- component: {fileID: 1360475646} |
|||
- component: {fileID: 1360475645} |
|||
m_Layer: 0 |
|||
m_Name: Directional Light |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!108 &1360475645 |
|||
Light: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 1360475644} |
|||
m_Enabled: 1 |
|||
serializedVersion: 7 |
|||
m_Type: 1 |
|||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} |
|||
m_Intensity: 1 |
|||
m_Range: 10 |
|||
m_SpotAngle: 30 |
|||
m_CookieSize: 10 |
|||
m_Shadows: |
|||
m_Type: 2 |
|||
m_Resolution: -1 |
|||
m_CustomResolution: -1 |
|||
m_Strength: 1 |
|||
m_Bias: 0.05 |
|||
m_NormalBias: 0.4 |
|||
m_NearPlane: 0.2 |
|||
m_Cookie: {fileID: 0} |
|||
m_DrawHalo: 0 |
|||
m_Flare: {fileID: 0} |
|||
m_RenderMode: 0 |
|||
m_CullingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
m_Lightmapping: 4 |
|||
m_AreaSize: {x: 1, y: 1} |
|||
m_BounceIntensity: 1 |
|||
m_ShadowRadius: 0 |
|||
m_ShadowAngle: 0 |
|||
--- !u!4 &1360475646 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 1360475644} |
|||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} |
|||
m_LocalPosition: {x: 0, y: 3, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} |
|||
--- !u!1 &2076766983 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
serializedVersion: 5 |
|||
m_Component: |
|||
- component: {fileID: 2076766988} |
|||
- component: {fileID: 2076766987} |
|||
- component: {fileID: 2076766986} |
|||
- component: {fileID: 2076766985} |
|||
- component: {fileID: 2076766984} |
|||
m_Layer: 0 |
|||
m_Name: Main Camera |
|||
m_TagString: MainCamera |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!81 &2076766984 |
|||
AudioListener: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 2076766983} |
|||
m_Enabled: 1 |
|||
--- !u!124 &2076766985 |
|||
Behaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 2076766983} |
|||
m_Enabled: 1 |
|||
--- !u!92 &2076766986 |
|||
Behaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 2076766983} |
|||
m_Enabled: 1 |
|||
--- !u!20 &2076766987 |
|||
Camera: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 2076766983} |
|||
m_Enabled: 1 |
|||
serializedVersion: 2 |
|||
m_ClearFlags: 1 |
|||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} |
|||
m_NormalizedViewPortRect: |
|||
serializedVersion: 2 |
|||
x: 0 |
|||
y: 0 |
|||
width: 1 |
|||
height: 1 |
|||
near clip plane: 0.3 |
|||
far clip plane: 1000 |
|||
field of view: 60 |
|||
orthographic: 0 |
|||
orthographic size: 5 |
|||
m_Depth: -1 |
|||
m_CullingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
m_RenderingPath: -1 |
|||
m_TargetTexture: {fileID: 0} |
|||
m_TargetDisplay: 0 |
|||
m_TargetEye: 3 |
|||
m_HDR: 0 |
|||
m_OcclusionCulling: 1 |
|||
m_StereoConvergence: 10 |
|||
m_StereoSeparation: 0.022 |
|||
m_StereoMirrorMode: 0 |
|||
--- !u!4 &2076766988 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 2076766983} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 1, z: -10} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|
|||
fileFormatVersion: 2 |
|||
guid: 80161b7ebf4d13b4a9f216c0545a0646 |
|||
timeCreated: 1470918003 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_PrefabParentObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 03c166a9713f1e14ca9fb529deeee772, type: 3} |
|||
m_Name: assetr |
|||
m_EditorClassIdentifier: |
|||
m_MaterialSubGraph: |
|||
m_SerializableNodes: |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.SubGraphInputNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"d729828f-6581-4087-b910-31f46ebcbaf9\",\n |
|||
\ \"m_Name\": \"SubGraphInputs\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -943.0,\n \"y\": 168.0,\n \"width\": |
|||
943.0,\n \"height\": -168.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": -1,\\n \\\"m_DisplayName\\\": \\\"Input 1\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": -2,\\n \\\"m_DisplayName\\\": \\\"Input 2\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.SubGraphOutputNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"e7a9171e-6319-4d2e-b3f0-b9c2886c8f5b\",\n |
|||
\ \"m_Name\": \"SubGraphOutputs\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 323.0,\n \"y\": 147.0,\n \"width\": |
|||
-323.0,\n \"height\": -147.0\n }\n },\n \"m_SerializableSlots\": |
|||
[\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Output 1\\\",\\n |
|||
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output1\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.MultiplyNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"9631c17d-9860-4e1d-9fac-ddc9f30421aa\",\n |
|||
\ \"m_Name\": \"MultiplyNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -548.91259765625,\n \"y\": 138.00128173828126,\n |
|||
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n |
|||
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n |
|||
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.Vector1Node |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"272d967a-370e-4557-9bd8-ef8687c158fd\",\n |
|||
\ \"m_Name\": \"V1Node\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -553.91259765625,\n \"y\": -22.99871826171875,\n |
|||
\ \"width\": 336.0,\n \"height\": -65.0\n }\n |
|||
\ },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": |
|||
{\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Value\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
4,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
1,\\n \\\"m_ShaderOutputName\\\": \\\"Value\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\": |
|||
\"\",\n \"m_Exposed\": 1,\n \"m_Value\": 1.0800000429153443\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.SubtractNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"2905aec4-c7e2-4b8f-9812-5244ab59a179\",\n |
|||
\ \"m_Name\": \"SubtractNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -129.91259765625,\n \"y\": 108.00128173828125,\n |
|||
\ \"width\": 0.0,\n \"height\": 0.0\n }\n },\n |
|||
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n |
|||
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.ColorNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"eb2b9d57-0599-41c8-a53a-0abe337de364\",\n |
|||
\ \"m_Name\": \"ColorNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": -155.91259765625,\n \"y\": 414.00128173828127,\n |
|||
\ \"width\": -353.0,\n \"height\": 89.0\n }\n |
|||
\ },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": |
|||
{\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
1,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1,\n \"m_PropertyName\": \"\",\n \"m_Description\": |
|||
\"\",\n \"m_Exposed\": 1,\n \"m_Color\": {\n \"r\": 0.7279411554336548,\n |
|||
\ \"g\": 0.06958258897066117,\n \"b\": 0.06958258897066117,\n |
|||
\ \"a\": 0.0\n }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.MaterialGraph.AddNode |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_GuidSerialized\": \"71b26db8-b7f4-4be1-af8d-00312a9ecc06\",\n |
|||
\ \"m_Name\": \"AddNode\",\n \"m_DrawData\": {\n \"m_Expanded\": |
|||
true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n |
|||
\ \"x\": 234.08740234375,\n \"y\": 421.00128173828127,\n |
|||
\ \"width\": -7.0,\n \"height\": 0.0\n }\n },\n |
|||
\ \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": |
|||
\"UnityEngine.MaterialGraph.MaterialSlot\",\n \"assemblyName\": |
|||
\"Assembly-CSharp\"\n },\n \"JSONnodeData\": \"{\\n |
|||
\ \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Input1\\\",\\n \\\"m_SlotType\\\": |
|||
0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": 0,\\n |
|||
\ \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input1\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Input2\\\",\\n |
|||
\ \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Input2\\\"\\n}\"\n },\n {\n |
|||
\ \"typeInfo\": {\n \"fullName\": \"UnityEngine.MaterialGraph.MaterialSlot\",\n |
|||
\ \"assemblyName\": \"Assembly-CSharp\"\n },\n \"JSONnodeData\": |
|||
\"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Output\\\",\\n |
|||
\ \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_ValueType\\\": |
|||
0,\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": |
|||
0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_CurrentValue\\\": |
|||
{\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": |
|||
0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ConcreteValueType\\\": |
|||
4,\\n \\\"m_ShaderOutputName\\\": \\\"Output\\\"\\n}\"\n }\n ],\n |
|||
\ \"m_OutputPrecision\": 1\n}" |
|||
m_SerializableEdges: |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": |
|||
\"9631c17d-9860-4e1d-9fac-ddc9f30421aa\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"2905aec4-c7e2-4b8f-9812-5244ab59a179\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": |
|||
\"272d967a-370e-4557-9bd8-ef8687c158fd\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"2905aec4-c7e2-4b8f-9812-5244ab59a179\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": -1,\n \"m_NodeGUIDSerialized\": |
|||
\"d729828f-6581-4087-b910-31f46ebcbaf9\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"9631c17d-9860-4e1d-9fac-ddc9f30421aa\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": -2,\n \"m_NodeGUIDSerialized\": |
|||
\"d729828f-6581-4087-b910-31f46ebcbaf9\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"9631c17d-9860-4e1d-9fac-ddc9f30421aa\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": |
|||
\"eb2b9d57-0599-41c8-a53a-0abe337de364\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"71b26db8-b7f4-4be1-af8d-00312a9ecc06\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": |
|||
\"71b26db8-b7f4-4be1-af8d-00312a9ecc06\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"e7a9171e-6319-4d2e-b3f0-b9c2886c8f5b\"\n |
|||
\ }\n}" |
|||
- typeInfo: |
|||
fullName: UnityEngine.Graphing.Edge |
|||
assemblyName: Assembly-CSharp |
|||
JSONnodeData: "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": |
|||
\"2905aec4-c7e2-4b8f-9812-5244ab59a179\"\n },\n \"m_InputSlot\": {\n |
|||
\ \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"71b26db8-b7f4-4be1-af8d-00312a9ecc06\"\n |
|||
\ }\n}" |
|
|||
fileFormatVersion: 2 |
|||
guid: 8c60a30380fb1434597b0c3993758852 |
|||
timeCreated: 1475478552 |
|||
licenseType: Pro |
|||
NativeFormatImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> |
|||
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp40</s:String></wpf:ResourceDictionary> |
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> |
|||
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp40</s:String></wpf:ResourceDictionary> |
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<s:String x:Key="/Default/Environment/ContinuousTesting/PersistentDataLocation/@EntryValue">C:\Users\Tim\AppData\Local\Temp\JetBrains\ContinuousTesting\7e95cb10-f230-442a-ba1f-a26bdb4193cb</s:String> |
|||
<s:String x:Key="/Default/Environment/ContinuousTesting/ScopeCriterion/@EntryValue">9b0nIQIAAACJbLoh9b0nIQIAAADP4jFoJAAAADwATQBhAHQAZQByAGkAYQBsAEcAcgBhAHAAaABQAHIAbwBqAGUAYwB0AC4AQwBTAGgAYQByAHAALgBFAGQAaQB0AG8AcgA+AC0AAABDADoAXABjAG8AZABlAFwATQBhAHQAZQByAGkAYQBsAEcAcgBhAHAAaABHAGkAdABcAE0AYQB0AGUAcgBpAGEAbABHAHIAYQBwAGgAUAByAG8AagBlAGMAdAA4rDtD+4tkDSUAAABVAG4AaQB0AHkARQBkAGkAdABvAHIALgBHAHIAYQBwAGgAaQBuAGcALgBJAG4AdABlAGcAcgBhAHQAaQBvAG4AVABlAHMAdABzAA==</s:String> |
|||
<s:String x:Key="/Default/Environment/ContinuousTesting/SnapshotLocation/@EntryValue">C:\Users\Tim\AppData\Local\Temp\ssm.Hirafoj.tmp</s:String> |
|||
<s:String x:Key="/Default/Environment/ContinuousTesting/Strategy/@EntryValue">RunTests</s:String> |
|||
<s:String x:Key="/Default/Environment/ContinuousTesting/TriggerMode/@EntryValue">OnBuild</s:String></wpf:ResourceDictionary> |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!126 &1 |
|||
NavMeshLayers: |
|||
m_ObjectHideFlags: 0 |
|||
Built-in Layer 0: |
|||
name: Default |
|||
cost: 1 |
|||
editType: 2 |
|||
Built-in Layer 1: |
|||
name: Not Walkable |
|||
cost: 1 |
|||
editType: 0 |
|||
Built-in Layer 2: |
|||
name: Jump |
|||
cost: 2 |
|||
editType: 2 |
|||
User Layer 0: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 1: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 2: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 3: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 4: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 5: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 6: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 7: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 8: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 9: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 10: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 11: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 12: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 13: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 14: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 15: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 16: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 17: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 18: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 19: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 20: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 21: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 22: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 23: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 24: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 25: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 26: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 27: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|||
User Layer 28: |
|||
name: |
|||
cost: 1 |
|||
editType: 3 |
|
|||
fileFormatVersion: 2 |
|||
guid: b6234b502c17b3646be167dc52b6dc67 |
|||
folderAsset: yes |
|||
timeCreated: 1471887804 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView |
|||
{ |
|||
[Flags] |
|||
public enum Capabilities |
|||
{ |
|||
Normal = 1 << 0, |
|||
Selectable = 1 << 1, |
|||
DoesNotCollapse = 1 << 2, |
|||
Floating = 1 << 3, |
|||
Resizable = 1 << 4, |
|||
Movable = 1 << 5 |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 41d9ced0d76786749b54d7c618c62d50 |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Reflection; |
|||
using UnityEngine; |
|||
|
|||
namespace RMGUI.GraphView |
|||
{ |
|||
[AttributeUsage(AttributeTargets.All, AllowMultiple = true)] |
|||
public class CustomDataView : Attribute |
|||
{ |
|||
public CustomDataView(Type t) |
|||
{ |
|||
if (t == null) |
|||
Debug.LogError("Failed to load CustomDataView inspected type"); |
|||
dataType = t; |
|||
} |
|||
|
|||
private Type dataType { get; set; } |
|||
|
|||
// map of [datType, viewType]
|
|||
private static Dictionary<Type, Type> s_TypeMap; |
|||
|
|||
public static DataContainer Create(GraphElementData data) |
|||
{ |
|||
if (s_TypeMap == null) |
|||
{ |
|||
s_TypeMap = new Dictionary<Type, Type>(); |
|||
|
|||
// add extension methods
|
|||
AppDomain currentDomain = AppDomain.CurrentDomain; |
|||
foreach (Assembly assembly in currentDomain.GetAssemblies()) |
|||
{ |
|||
foreach (Type type in assembly.GetTypes()) |
|||
{ |
|||
var attributes = type.GetCustomAttributes(typeof(CustomDataView), false); |
|||
foreach (CustomDataView att in attributes) |
|||
{ |
|||
s_TypeMap[att.dataType] = type; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
Type viewType; |
|||
if (s_TypeMap.TryGetValue(data.GetType(), out viewType)) |
|||
{ |
|||
var dataContainer = (DataContainer)Activator.CreateInstance(viewType); |
|||
dataContainer.dataProvider = data; |
|||
return dataContainer; |
|||
} |
|||
throw new InvalidOperationException("No view in assembly for this data type" + data.GetType()); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e210b59a473a2aa40af5450a2954f634 |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine.RMGUI; |
|||
using Object = UnityEngine.Object; |
|||
|
|||
namespace RMGUI.GraphView |
|||
{ |
|||
public class DataContainer : VisualContainer |
|||
{ |
|||
IDataSource m_DataProvider; |
|||
|
|||
public IDataSource dataProvider |
|||
{ |
|||
get { return m_DataProvider; } |
|||
set |
|||
{ |
|||
if (m_DataProvider == value) |
|||
return; |
|||
RemoveWatch(); |
|||
m_DataProvider = value; |
|||
OnDataChanged(); |
|||
AddWatch(); |
|||
} |
|||
} |
|||
|
|||
public T GetData<T>() where T : GraphElementData |
|||
{ |
|||
return dataProvider as T; |
|||
} |
|||
|
|||
void AddWatch() |
|||
{ |
|||
if (m_DataProvider != null && panel != null && m_DataProvider is Object) |
|||
// TODO: consider a disposable handle?
|
|||
DataWatchService.AddDataSpy(this, (Object) m_DataProvider, OnDataChanged); |
|||
} |
|||
|
|||
void RemoveWatch() |
|||
{ |
|||
if (m_DataProvider != null && panel != null && m_DataProvider is Object) |
|||
DataWatchService.RemoveDataSpy((Object) m_DataProvider, OnDataChanged); |
|||
} |
|||
|
|||
public DataContainer() |
|||
{ |
|||
// trigger data source reset when entering leaving panel
|
|||
onEnter += AddWatch; |
|||
onLeave += RemoveWatch; |
|||
} |
|||
|
|||
// called when Serialized object has changed
|
|||
// only works while widget is in a panel
|
|||
public virtual void OnDataChanged() |
|||
{} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d1aa44c94ec20b2488557bd7e5757367 |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 08b950cca06dd924a8f3c05df0ef9a93 |
|||
folderAsset: yes |
|||
timeCreated: 1475574870 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 6ee55634eb5eb6c44a26d5d08a1eb2fa |
|||
folderAsset: yes |
|||
timeCreated: 1475574870 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
using UnityEngine.RMGUI.StyleSheets; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
public class GridBackground : IDecorator |
|||
{ |
|||
const string SpacingProperty = "spacing"; |
|||
const string ThickLinesProperty = "thick-lines"; |
|||
const string LineColorProperty = "line-color"; |
|||
const string ThickLineColorProperty = "thick-line-color"; |
|||
// Most likely will be a built-in style property soon
|
|||
const string BackgroundColorProperty = "background-color"; |
|||
|
|||
public float spacing |
|||
{ |
|||
get |
|||
{ |
|||
return m_Container.GetStyleFloat(SpacingProperty, 50.0f); |
|||
} |
|||
set |
|||
{ |
|||
m_Container.SetStyleFloat(SpacingProperty, value); |
|||
} |
|||
} |
|||
|
|||
public int thickLines |
|||
{ |
|||
get |
|||
{ |
|||
return m_Container.GetStyleInt(ThickLinesProperty, 10); |
|||
} |
|||
set |
|||
{ |
|||
m_Container.SetStyleInt(ThickLinesProperty, value); |
|||
} |
|||
} |
|||
|
|||
public Color lineColor |
|||
{ |
|||
get |
|||
{ |
|||
return m_Container.GetStyleColor(LineColorProperty, new Color(0f, 0f, 0f, 0.18f)); |
|||
} |
|||
set |
|||
{ |
|||
m_Container.SetStyleColor(LineColorProperty, value); |
|||
} |
|||
} |
|||
|
|||
public Color thickLineColor |
|||
{ |
|||
get |
|||
{ |
|||
return m_Container.GetStyleColor(ThickLineColorProperty, new Color(0f, 0f, 0f, 0.38f)); |
|||
} |
|||
set |
|||
{ |
|||
m_Container.SetStyleColor(ThickLineColorProperty, value); |
|||
} |
|||
} |
|||
|
|||
public Color backgroundColor |
|||
{ |
|||
get |
|||
{ |
|||
return m_Container.GetStyleColor(BackgroundColorProperty, new Color(0.17f, 0.17f, 0.17f, 1.0f)); |
|||
} |
|||
set |
|||
{ |
|||
m_Container.SetStyleColor(BackgroundColorProperty, value); |
|||
} |
|||
} |
|||
|
|||
private readonly VisualContainer m_Container; |
|||
|
|||
public GridBackground() |
|||
{ } |
|||
|
|||
public GridBackground(VisualContainer container) |
|||
{ |
|||
m_Container = container; |
|||
} |
|||
|
|||
private Vector3 Clip(Rect clipRect, Vector3 _in) |
|||
{ |
|||
if (_in.x < clipRect.xMin) |
|||
_in.x = clipRect.xMin; |
|||
if (_in.x > clipRect.xMax) |
|||
_in.x = clipRect.xMax; |
|||
|
|||
if (_in.y < clipRect.yMin) |
|||
_in.y = clipRect.yMin; |
|||
if (_in.y > clipRect.yMax) |
|||
_in.y = clipRect.yMax; |
|||
|
|||
return _in; |
|||
} |
|||
|
|||
public void PrePaint(VisualElement target, PaintContext pc) |
|||
{ |
|||
Rect clientRect = target.position; |
|||
|
|||
VisualElement e = m_Container ?? target; |
|||
var targetScale = new Vector3(e.transform.GetColumn(0).magnitude, |
|||
e.transform.GetColumn(1).magnitude, |
|||
e.transform.GetColumn(2).magnitude); |
|||
var targetTranslation = e.transform.GetColumn(3); |
|||
var targetPosition = e.position; |
|||
|
|||
// background
|
|||
UIHelpers.ApplyWireMaterial(); |
|||
|
|||
GL.Begin(GL.QUADS); |
|||
GL.Color(backgroundColor); |
|||
GL.Vertex(new Vector3(clientRect.x, clientRect.y)); |
|||
GL.Vertex(new Vector3(clientRect.xMax, clientRect.y)); |
|||
GL.Vertex(new Vector3(clientRect.xMax, clientRect.yMax)); |
|||
GL.Vertex(new Vector3(clientRect.x, clientRect.yMax)); |
|||
GL.End(); |
|||
|
|||
// vertical lines
|
|||
Vector3 from = new Vector3(clientRect.x, clientRect.y, 0.0f); |
|||
Vector3 to = new Vector3(clientRect.x, clientRect.height, 0.0f); |
|||
|
|||
var tx = Matrix4x4.TRS(targetTranslation, Quaternion.identity, Vector3.one); |
|||
|
|||
from = tx.MultiplyPoint(from); |
|||
to = tx.MultiplyPoint(to); |
|||
|
|||
from.x += (targetPosition.x * targetScale.x); |
|||
from.y += (targetPosition.y * targetScale.y); |
|||
to.x += (targetPosition.x * targetScale.x); |
|||
to.y += (targetPosition.y * targetScale.y); |
|||
|
|||
Handles.DrawWireDisc(from, new Vector3(0.0f, 0.0f, -1.0f), 6f); |
|||
|
|||
float thickGridLineX = from.x; |
|||
float thickGridLineY = from.y; |
|||
|
|||
// Update from/to to start at beginning of clientRect
|
|||
from.x = (from.x % (spacing * (targetScale.x)) - (spacing * (targetScale.x))); |
|||
to.x = from.x; |
|||
|
|||
from.y = clientRect.y; |
|||
to.y = clientRect.y + clientRect.height; |
|||
|
|||
while (from.x < clientRect.width) |
|||
{ |
|||
from.x += spacing * targetScale.x; |
|||
to.x += spacing * targetScale.x; |
|||
|
|||
GL.Begin(GL.LINES); |
|||
GL.Color(lineColor); |
|||
GL.Vertex(Clip(clientRect, from)); |
|||
GL.Vertex(Clip(clientRect, to)); |
|||
GL.End(); |
|||
} |
|||
|
|||
float thickLineSpacing = (spacing * thickLines); |
|||
from.x = to.x = (thickGridLineX % (thickLineSpacing * (targetScale.x)) - (thickLineSpacing * (targetScale.x))); |
|||
|
|||
while (from.x < clientRect.width + thickLineSpacing) |
|||
{ |
|||
GL.Begin(GL.LINES); |
|||
GL.Color(thickLineColor); |
|||
GL.Vertex(Clip(clientRect, from)); |
|||
GL.Vertex(Clip(clientRect, to)); |
|||
GL.End(); |
|||
|
|||
from.x += (spacing * targetScale.x * thickLines); |
|||
to.x += (spacing * targetScale.x * thickLines); |
|||
} |
|||
|
|||
// horizontal lines
|
|||
from = new Vector3(clientRect.x, clientRect.y, 0.0f); |
|||
to = new Vector3(clientRect.x + clientRect.width, clientRect.y, 0.0f); |
|||
|
|||
from.x += (targetPosition.x * targetScale.x); |
|||
from.y += (targetPosition.y * targetScale.y); |
|||
to.x += (targetPosition.x * targetScale.x); |
|||
to.y += (targetPosition.y * targetScale.y); |
|||
|
|||
from = tx.MultiplyPoint(from); |
|||
to = tx.MultiplyPoint(to); |
|||
|
|||
from.y = to.y = (from.y % (spacing * (targetScale.y)) - (spacing * (targetScale.y))); |
|||
from.x = clientRect.x; |
|||
to.x = clientRect.width; |
|||
|
|||
while (from.y < clientRect.height) |
|||
{ |
|||
from.y += spacing * targetScale.y; |
|||
to.y += spacing * targetScale.y; |
|||
|
|||
GL.Begin(GL.LINES); |
|||
GL.Color(lineColor); |
|||
GL.Vertex(Clip(clientRect, from)); |
|||
GL.Vertex(Clip(clientRect, to)); |
|||
GL.End(); |
|||
} |
|||
|
|||
thickLineSpacing = spacing * thickLines; |
|||
from.y = to.y = (thickGridLineY % (thickLineSpacing * (targetScale.y)) - (thickLineSpacing * (targetScale.y))); |
|||
|
|||
while (from.y < clientRect.height + thickLineSpacing) |
|||
{ |
|||
GL.Begin(GL.LINES); |
|||
GL.Color(thickLineColor); |
|||
GL.Vertex(Clip(clientRect, from)); |
|||
GL.Vertex(Clip(clientRect, to)); |
|||
GL.End(); |
|||
|
|||
from.y += spacing * targetScale.y * thickLines; |
|||
to.y += spacing * targetScale.y * thickLines; |
|||
} |
|||
} |
|||
|
|||
public void PostPaint(VisualElement target, PaintContext pc) |
|||
{ |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e71d62d4e4d7611459b24bd48631ecbf |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 75756ed79f08e1d4eb22bf667083d16f |
|||
folderAsset: yes |
|||
timeCreated: 1475574871 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[CustomDataView(typeof(CircleData))] |
|||
public class Circle : GraphElement |
|||
{ |
|||
public override void DoRepaint(PaintContext args) |
|||
{ |
|||
base.DoRepaint(args); |
|||
Handles.DrawSolidDisc(new Vector3(position.x + position.width/2, position.y + position.height/2, 0.0f), |
|||
new Vector3(0.0f, 0.0f, -1.0f), |
|||
position.width / 2.0f); |
|||
|
|||
if (GetData<GraphElementData>() != null && GetData<GraphElementData>().selected) |
|||
{ |
|||
Color oldColor = Handles.color; |
|||
Handles.color = Color.yellow; |
|||
Handles.DrawWireDisc(new Vector3(position.x + position.width/2, position.y + position.height/2, 0.0f), |
|||
new Vector3(0.0f, 0.0f, -1.0f), |
|||
position.width/2.0f+2.0f); |
|||
Handles.color = oldColor; |
|||
} |
|||
} |
|||
|
|||
public override bool ContainsPoint(Vector2 localPoint) |
|||
{ |
|||
return Vector2.Distance(new Vector2(position.width/2, position.height/2), localPoint-position.position) <= position.width / 2.0f; |
|||
} |
|||
|
|||
public override bool Overlaps(Rect rectangle) |
|||
{ |
|||
rectangle.position -= position.position; |
|||
var radius = position.width / 2.0f; |
|||
var p = new Vector2(Mathf.Max(rectangle.x, Mathf.Min(radius, rectangle.xMax)), Mathf.Max(rectangle.y, Mathf.Min(radius, rectangle.yMax))); |
|||
return Vector2.Distance(new Vector2(radius, radius), p) <= radius; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b76c491e32c9b4b43a25076446e2fd64 |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 4e1b2856304de7944861d0d997034bd9 |
|||
folderAsset: yes |
|||
timeCreated: 1475574871 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using UnityEngine; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class CircleData : GraphElementData |
|||
{ |
|||
[SerializeField] |
|||
private float m_Radius; |
|||
public float radius |
|||
{ |
|||
get { return m_Radius; } |
|||
set |
|||
{ |
|||
if (m_Radius == value) return; |
|||
m_Radius = value; |
|||
|
|||
// Now update the position
|
|||
Rect newPos = position; |
|||
newPos.width = m_Radius; |
|||
newPos.height = m_Radius; |
|||
position = newPos; |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: f0f962d3b7406454189cccb08a6e94b2 |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class IMGUIData : SimpleElementData |
|||
{ |
|||
public IMGUIData() |
|||
{ |
|||
title = "BaseIMGUI"; |
|||
} |
|||
|
|||
public virtual void OnGUIHandler() |
|||
{ |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 9048b4c2f2c41434dbf6e18ddf2db71b |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class InvisibleBorderContainerData : GraphElementData |
|||
{ |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7bca078435316774e97cb0005517d327 |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class MiniMapData : GraphElementData |
|||
{ |
|||
protected new void OnEnable() |
|||
{ |
|||
base.OnEnable(); |
|||
capabilities = Capabilities.Floating | Capabilities.Movable; |
|||
maxWidth = 200; |
|||
maxHeight = 200; |
|||
} |
|||
|
|||
public float maxHeight; |
|||
public float maxWidth; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e96dfa338786386498b4a8decdf286f0 |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class SimpleElementData : GraphElementData |
|||
{ |
|||
public string title; |
|||
|
|||
protected new void OnEnable() |
|||
{ |
|||
base.OnEnable(); |
|||
title = "simpleElement"; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d70ef0387a427834f90ba978ada7cd6d |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class WWWImageData : SimpleElementData |
|||
{ |
|||
public WWWImageData() |
|||
{ |
|||
title = "WWWImage"; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e6ec463b9e3d16c45acd44ad7d2ea26e |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 49e81e4fdc2b4cf499d53015838fb189 |
|||
folderAsset: yes |
|||
timeCreated: 1475574871 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[CustomDataView(typeof(CustomEdgeData))] |
|||
class CustomEdge : Edge |
|||
{ |
|||
protected override void DrawEdge(PaintContext args) |
|||
{ |
|||
var edgeData = GetData<CustomEdgeData>(); |
|||
if (edgeData == null) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
IConnectable leftData = edgeData.Left; |
|||
if (leftData == null) |
|||
return; |
|||
|
|||
Vector2 from = Vector2.zero; |
|||
Vector2 to = Vector2.zero; |
|||
GetFromToPoints(ref from, ref to); |
|||
if (edgeData.candidate) |
|||
{ |
|||
Handles.DrawAAPolyLine(15.0f, from, to); |
|||
} |
|||
else |
|||
{ |
|||
Vector3[] points, tangents; |
|||
Orientation orientation = leftData.orientation; |
|||
GetTangents(leftData.direction, orientation, from, to, out points, out tangents); |
|||
|
|||
Color edgeColor = (GetData<GraphElementData>() != null && GetData<GraphElementData>().selected) ? Color.yellow : Color.white; |
|||
Handles.DrawBezier(points[0], points[1], tangents[0], tangents[1], edgeColor, null, 5f); |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: efd61239f52a2c447ae7b6e35677bc4c |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 3b96a4e7d015d1a4d887faa2cb3d4b30 |
|||
folderAsset: yes |
|||
timeCreated: 1475574871 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
internal class CustomEdgeData : EdgeData |
|||
{ |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 525a4353fb1614944b22a2fe5a6a98f8 |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using UnityEngine; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
public class NodeAnchorData : GraphElementData, IConnectable |
|||
{ |
|||
protected object m_Source; |
|||
public object source |
|||
{ |
|||
get { return m_Source;} |
|||
set |
|||
{ |
|||
if (m_Source == value) return; |
|||
m_Source = value; |
|||
} |
|||
} |
|||
|
|||
[SerializeField] |
|||
private Direction m_Direction; |
|||
public Direction direction |
|||
{ |
|||
get { return m_Direction; } |
|||
set { m_Direction = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
private Orientation m_Orientation; |
|||
public Orientation orientation |
|||
{ |
|||
get { return m_Orientation; } set { m_Orientation = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
private Type m_Type; |
|||
public Type type |
|||
{ |
|||
get { return m_Type; } |
|||
set { m_Type = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
private bool m_Highlight; |
|||
public bool highlight |
|||
{ |
|||
get { return m_Highlight; } |
|||
set { m_Highlight = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
private bool m_Connected; |
|||
public bool connected |
|||
{ |
|||
get { return m_Connected; } |
|||
set { m_Connected = value; } |
|||
} |
|||
|
|||
protected new void OnEnable() |
|||
{ |
|||
base.OnEnable(); |
|||
m_Type = typeof(object); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: ff3da625e12795a49b26d87dadfd1d0c |
|||
timeCreated: 1475574876 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
class NodeData : SimpleElementData |
|||
{ |
|||
[SerializeField] |
|||
protected List<NodeAnchorData> m_Anchors; |
|||
public List<NodeAnchorData> anchors |
|||
{ |
|||
get { return m_Anchors ?? (m_Anchors = new List<NodeAnchorData>()); } |
|||
} |
|||
|
|||
// NOTE: This is a demo node. We could have any number of output anchors if we wanted.
|
|||
public NodeAnchorData outputAnchor; |
|||
|
|||
// TODO make a simple creation function
|
|||
protected new void OnEnable() |
|||
{ |
|||
base.OnEnable(); |
|||
if (m_Anchors==null) |
|||
m_Anchors = new List<NodeAnchorData>(); |
|||
|
|||
// This is a demo version. We could have a ctor that takes in input and output types, etc.
|
|||
var na = CreateInstance<NodeAnchorData>(); |
|||
na.type = typeof (int); |
|||
na.direction = Direction.Input; |
|||
m_Anchors.Add(na); |
|||
|
|||
na = CreateInstance<NodeAnchorData>(); |
|||
na.type = typeof (float); |
|||
na.direction = Direction.Input; |
|||
m_Anchors.Add(na); |
|||
|
|||
na = CreateInstance<NodeAnchorData>(); |
|||
na.type = typeof (Vector3); |
|||
na.direction = Direction.Input; |
|||
m_Anchors.Add(na); |
|||
|
|||
na = CreateInstance<NodeAnchorData>(); |
|||
na.type = typeof (Texture2D); |
|||
na.direction = Direction.Input; |
|||
m_Anchors.Add(na); |
|||
|
|||
na = CreateInstance<NodeAnchorData>(); |
|||
na.type = typeof (Color); |
|||
na.direction = Direction.Input; |
|||
m_Anchors.Add(na); |
|||
|
|||
outputAnchor = CreateInstance<NodeAnchorData>(); |
|||
outputAnchor.type = typeof(int); |
|||
outputAnchor.direction = Direction.Output; // get rid of direction use styles
|
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 6041d49745ecf5b4ab6aa406c6e25242 |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[Serializable] |
|||
class VerticalNodeData : NodeData |
|||
{ |
|||
// this class is useless, make a simple creation function
|
|||
protected new void OnEnable() |
|||
{ |
|||
base.OnEnable(); |
|||
m_Anchors.Clear(); |
|||
|
|||
var vna = CreateInstance<NodeAnchorData>(); |
|||
vna.orientation = Orientation.Vertical; |
|||
vna.direction = Direction.Input; |
|||
vna.type = typeof(float); |
|||
m_Anchors.Add(vna); |
|||
|
|||
outputAnchor = CreateInstance<NodeAnchorData>(); |
|||
outputAnchor.type = typeof (float); |
|||
outputAnchor.orientation = Orientation.Vertical; |
|||
outputAnchor.direction = Direction.Output; |
|||
outputAnchor.type = typeof(float); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 472e5c0d839764b41a615888094ad00f |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[CustomDataView(typeof(NodeData))] |
|||
class Node : SimpleElement |
|||
{ |
|||
VisualContainer m_InputContainer; |
|||
VisualContainer m_OutputContainer; |
|||
|
|||
public override void OnDataChanged() |
|||
{ |
|||
base.OnDataChanged(); |
|||
|
|||
m_OutputContainer.ClearChildren(); |
|||
m_InputContainer.ClearChildren(); |
|||
|
|||
var nodeData = dataProvider as NodeData; |
|||
|
|||
if (nodeData != null) |
|||
{ |
|||
foreach (var anchorData in nodeData.anchors) |
|||
{ |
|||
m_InputContainer.AddChild(new NodeAnchor(anchorData)); |
|||
} |
|||
m_OutputContainer.AddChild(new NodeAnchor(nodeData.outputAnchor)); |
|||
} |
|||
} |
|||
|
|||
public Node() |
|||
{ |
|||
m_InputContainer = new VisualContainer |
|||
{ |
|||
name = "input", // for USS&Flexbox
|
|||
pickingMode = PickingMode.Ignore, |
|||
}; |
|||
m_OutputContainer = new VisualContainer |
|||
{ |
|||
name = "output", // for USS&Flexbox
|
|||
pickingMode = PickingMode.Ignore, |
|||
}; |
|||
|
|||
AddChild(m_InputContainer); |
|||
AddChild(m_OutputContainer); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 87fdc02b323c28343a5021bf9aff9c03 |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
using UnityEngine.RMGUI.StyleEnums.Values; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[CustomDataView(typeof(NodeAnchorData))] |
|||
internal class NodeAnchor : GraphElement |
|||
{ |
|||
public const float k_NodeSize = 15.0f; |
|||
|
|||
private EdgeConnector<EdgeData> m_RegularConnector = new EdgeConnector<EdgeData>(); |
|||
private EdgeConnector<CustomEdgeData> m_CustomConnector = new EdgeConnector<CustomEdgeData>(); |
|||
|
|||
private IManipulator m_CurrentConnector; |
|||
|
|||
public NodeAnchor(NodeAnchorData data) |
|||
{ |
|||
m_CurrentConnector = m_RegularConnector; |
|||
AddManipulator(m_CurrentConnector); |
|||
|
|||
dataProvider = data; |
|||
} |
|||
|
|||
private void UpdateConnector() |
|||
{ |
|||
var nodeAnchorData = dataProvider as NodeAnchorData; |
|||
if (nodeAnchorData == null) |
|||
return; |
|||
|
|||
RemoveManipulator(m_CurrentConnector); |
|||
if (!nodeAnchorData.connected || nodeAnchorData.direction != Direction.Input) |
|||
{ |
|||
if (nodeAnchorData.orientation == Orientation.Horizontal) |
|||
{ |
|||
m_CurrentConnector = m_RegularConnector; |
|||
} |
|||
else |
|||
{ |
|||
m_CurrentConnector = m_CustomConnector; |
|||
} |
|||
AddManipulator(m_CurrentConnector); |
|||
} |
|||
} |
|||
|
|||
private Rect GetAnchorRect(NodeAnchorData nodeAnchorData) |
|||
{ |
|||
Rect rect = new Rect(); |
|||
|
|||
if (nodeAnchorData.orientation == Orientation.Horizontal) |
|||
{ |
|||
// TODO: placement could be better handled using better CSS properties to place the node anchor itself.
|
|||
if (nodeAnchorData.direction == Direction.Input) |
|||
{ |
|||
rect = new Rect(position.x + 2, position.y + 2, k_NodeSize, k_NodeSize); |
|||
} |
|||
else if (nodeAnchorData.direction == Direction.Output) |
|||
{ |
|||
rect = new Rect(position.x + position.width - (7 + k_NodeSize), position.y + 2, k_NodeSize, k_NodeSize); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
if (nodeAnchorData.direction == Direction.Input) |
|||
{ |
|||
rect = new Rect(position.x + (position.width - k_NodeSize)/2, position.y + 4, k_NodeSize, k_NodeSize); |
|||
} |
|||
else if (nodeAnchorData.direction == Direction.Output) |
|||
{ |
|||
rect = new Rect(position.x + (position.width - k_NodeSize)/2, position.y + position.height - k_NodeSize - 8, k_NodeSize, k_NodeSize); |
|||
} |
|||
} |
|||
return rect; |
|||
} |
|||
|
|||
protected virtual void DrawConnector() |
|||
{ |
|||
// TODO This cast here is not ideal
|
|||
var nodeAnchorData = dataProvider as NodeAnchorData; |
|||
if (nodeAnchorData == null) |
|||
return; |
|||
|
|||
var anchorColor = Color.yellow; |
|||
|
|||
anchorColor.a = 0.7f; |
|||
Rect rect = GetAnchorRect(nodeAnchorData); |
|||
Handles.DrawSolidRectangleWithOutline(rect, anchorColor, anchorColor); |
|||
|
|||
if (nodeAnchorData.highlight) |
|||
{ |
|||
var highlightColor = Color.blue; |
|||
Rect highlighRect = rect; |
|||
highlighRect.x += 4; |
|||
highlighRect.y += 4; |
|||
highlighRect.width -= 8; |
|||
highlighRect.height -= 8; |
|||
Handles.DrawSolidRectangleWithOutline(highlighRect, highlightColor, highlightColor); |
|||
} |
|||
} |
|||
|
|||
public override void DoRepaint(PaintContext args) |
|||
{ |
|||
base.DoRepaint(args); |
|||
DrawConnector(); |
|||
} |
|||
|
|||
public override void OnDataChanged() |
|||
{ |
|||
UpdateConnector(); |
|||
ClearChildren(); |
|||
|
|||
var nodeAnchorData = dataProvider as NodeAnchorData; |
|||
if (nodeAnchorData == null) |
|||
return; |
|||
|
|||
Type type = nodeAnchorData.type; |
|||
|
|||
Type genericClass = typeof(PortSource<>); |
|||
Type constructedClass = genericClass.MakeGenericType(type); |
|||
nodeAnchorData.source = Activator.CreateInstance(constructedClass); |
|||
|
|||
Label label; |
|||
// TODO: I figure this placement could be more generic with a better use of CSS placement
|
|||
if (nodeAnchorData.orientation == Orientation.Horizontal) |
|||
{ |
|||
label = new Label(new GUIContent(nodeAnchorData.name)) |
|||
{ |
|||
positionType = PositionType.Absolute, |
|||
positionTop = 0, |
|||
positionLeft = 20, |
|||
positionRight = 0, |
|||
positionBottom = 0 |
|||
}; |
|||
|
|||
if (nodeAnchorData.direction == Direction.Output) |
|||
{ |
|||
label.textAlignment = TextAnchor.UpperRight; |
|||
label.positionLeft = 0; |
|||
label.positionRight = 25; |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
label = new Label(new GUIContent(type.Name)) |
|||
{ |
|||
positionType = PositionType.Absolute, |
|||
positionTop = 20, |
|||
positionLeft = 0, |
|||
positionRight = 0, |
|||
positionBottom = 0 |
|||
}; |
|||
|
|||
if (nodeAnchorData.direction == Direction.Output) |
|||
{ |
|||
label.textAlignment = TextAnchor.LowerCenter; |
|||
label.positionTop = 0; |
|||
label.positionBottom = 25; |
|||
} |
|||
else |
|||
{ |
|||
label.textAlignment = TextAnchor.UpperCenter; |
|||
} |
|||
} |
|||
|
|||
GetData<GraphElementData>().capabilities &= ~Capabilities.Selectable; |
|||
|
|||
label.pickingMode = PickingMode.Ignore; |
|||
AddChild(label); |
|||
} |
|||
|
|||
public Rect GetSelectionRect() |
|||
{ |
|||
var nodeAnchorData = dataProvider as NodeAnchorData; |
|||
if (nodeAnchorData == null) |
|||
return new Rect(); |
|||
|
|||
return GetAnchorRect(nodeAnchorData); |
|||
} |
|||
|
|||
public override Vector3 GetGlobalCenter() |
|||
{ |
|||
var center = GetSelectionRect().center; |
|||
var globalCenter = new Vector3(center.x + parent.position.x, center.y + parent.position.y); |
|||
return parent.globalTransform.MultiplyPoint3x4(globalCenter); |
|||
} |
|||
|
|||
public override bool Overlaps(Rect rect) |
|||
{ |
|||
return GetSelectionRect().Overlaps(rect); |
|||
} |
|||
|
|||
public override bool ContainsPoint(Vector2 localPoint) |
|||
{ |
|||
return GetSelectionRect().Contains(localPoint); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 8e066cadce6b63e449a0b0603bf1f702 |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[GUISkinStyle("box")] |
|||
[CustomDataView(typeof(VerticalNodeData))] |
|||
class VerticalNode : GraphElement |
|||
{ |
|||
readonly VisualContainer m_ContainerTop; |
|||
readonly VisualContainer m_ContainerBottom; |
|||
|
|||
public VerticalNode() |
|||
{ |
|||
m_ContainerTop = new VisualContainer |
|||
{ |
|||
name = "top", |
|||
pickingMode = PickingMode.Ignore |
|||
}; |
|||
|
|||
m_ContainerBottom = new VisualContainer |
|||
{ |
|||
name = "bottom", |
|||
pickingMode = PickingMode.Ignore |
|||
}; |
|||
|
|||
AddChild(m_ContainerTop); |
|||
AddChild(m_ContainerBottom); |
|||
} |
|||
|
|||
public override void DoRepaint(PaintContext painter) |
|||
{ |
|||
base.DoRepaint(painter); |
|||
if (GetData<GraphElementData>() != null && GetData<GraphElementData>().selected) |
|||
{ |
|||
painter.DrawRectangleOutline(transform, position, Color.yellow); |
|||
} |
|||
} |
|||
|
|||
public override void OnDataChanged() |
|||
{ |
|||
base.OnDataChanged(); |
|||
m_ContainerTop.ClearChildren(); |
|||
m_ContainerBottom.ClearChildren(); |
|||
var nodeData = dataProvider as VerticalNodeData; |
|||
|
|||
if (nodeData != null) |
|||
{ |
|||
foreach (var anchorData in nodeData.anchors) |
|||
{ |
|||
m_ContainerTop.AddChild(new NodeAnchor(anchorData)); |
|||
} |
|||
m_ContainerBottom.AddChild(new NodeAnchor(nodeData.outputAnchor)); |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 098787996c57ddb4e833f65145e4d146 |
|||
timeCreated: 1475574873 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine.RMGUI; |
|||
using UnityEngine.RMGUI.StyleEnums.Values; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
// TODO: shanti really there should be one data type on a delegate. ... seriously
|
|||
[CustomDataView(typeof(IMGUIData))] |
|||
[CustomDataView(typeof(TestIMGUIElementData))] |
|||
[CustomDataView(typeof(IMGUISampleElementData))] |
|||
public class IMGUIElement : SimpleElement |
|||
{ |
|||
public IMGUIElement() |
|||
{ |
|||
var imgui = new IMGUIContainer() |
|||
{ |
|||
positionType = PositionType.Absolute, |
|||
positionLeft = 0, |
|||
positionTop = 20, |
|||
positionRight = 0, |
|||
positionBottom = 0, |
|||
OnGUIHandler = OnGUIHandler |
|||
}; |
|||
AddChild(imgui); |
|||
} |
|||
|
|||
public virtual void OnGUIHandler() |
|||
{ |
|||
// Hum... probably not ideal to have to cast and check all the time. Need to find something better.
|
|||
|
|||
var imguiData = dataProvider as IMGUIData; |
|||
if (imguiData != null) |
|||
{ |
|||
imguiData.OnGUIHandler(); |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 3e391f58ba51ac045ad1d4746dcaf78f |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[CustomDataView(typeof(InvisibleBorderContainerData))] |
|||
public class InvisibleBorderContainer : GraphElement |
|||
{ |
|||
private readonly Color m_OutlineColor = new Color(0.0f, 0.0f, 0.0f, 0.5f); |
|||
|
|||
private Rect selectRect |
|||
{ |
|||
get |
|||
{ |
|||
return new Rect(position.width * 0.1f, position.height * 0.1f, position.width * 0.8f, position.height * 0.8f); |
|||
} |
|||
} |
|||
|
|||
Rect GetRectWithOutline() |
|||
{ |
|||
return new Rect(position.x + selectRect.x, position.y+selectRect.y, selectRect.width, selectRect.height); |
|||
} |
|||
|
|||
public override bool Overlaps(Rect rectangle) |
|||
{ |
|||
return GetRectWithOutline().Overlaps(rectangle); |
|||
} |
|||
|
|||
public override bool ContainsPoint(Vector2 localPoint) |
|||
{ |
|||
return GetRectWithOutline().Contains(localPoint); |
|||
} |
|||
|
|||
public override void DoRepaint(PaintContext args) |
|||
{ |
|||
Color color = m_OutlineColor; |
|||
if (GetData<GraphElementData>() != null && GetData<GraphElementData>().selected) |
|||
color = Color.blue; |
|||
Handles.DrawSolidRectangleWithOutline(position, color, color); |
|||
|
|||
Rect zone = GetRectWithOutline(); |
|||
Handles.DrawSolidRectangleWithOutline(zone, Color.green, Color.green); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 731ba638eff4e854a8b48c7febbe172c |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[GUISkinStyle("box")] |
|||
[CustomDataView(typeof(MiniMapData))] |
|||
public class MiniMap : GraphElement |
|||
{ |
|||
private Label m_Label; |
|||
|
|||
private float m_PreviousContainerWidth = -1; |
|||
private float m_PreviousContainerHeight = -1; |
|||
|
|||
public MiniMap() |
|||
{ |
|||
zBias = 99; |
|||
clipChildren = true; // TODO this is the source of UNI-459
|
|||
|
|||
m_Label = new Label(new GUIContent("Floating Minimap")); |
|||
AddChild(m_Label); |
|||
|
|||
AddManipulator(new Dragger {activateButton = MouseButton.LeftMouse, clampToParentEdges = true}); |
|||
} |
|||
|
|||
public override void OnDataChanged() |
|||
{ |
|||
base.OnDataChanged(); |
|||
Resize(); |
|||
} |
|||
|
|||
private void Resize() |
|||
{ |
|||
var miniMapData = dataProvider as MiniMapData; |
|||
if (miniMapData == null || parent == null) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
if (parent.position.height > parent.position.width) |
|||
{ |
|||
height = miniMapData.maxHeight; |
|||
width = parent.position.width * height / parent.position.height; |
|||
} |
|||
else |
|||
{ |
|||
width = miniMapData.maxWidth; |
|||
height = parent.position.height * width / parent.position.width; |
|||
} |
|||
} |
|||
|
|||
public override void DoRepaint(PaintContext args) |
|||
{ |
|||
var gView = this.GetFirstAncestorOfType<GraphView>(); |
|||
var container = gView.contentViewContainer; |
|||
|
|||
Matrix4x4 containerTransform = container.globalTransform; |
|||
Vector4 containerTranslation = containerTransform.GetColumn(3); |
|||
var containerScale = new Vector2(containerTransform.m00, containerTransform.m11); |
|||
Rect containerPosition = container.position; |
|||
|
|||
var containerWidth = parent.position.width / containerScale.x; |
|||
var containerHeight = parent.position.height / containerScale.y; |
|||
|
|||
if ( (containerWidth != m_PreviousContainerWidth || containerHeight != m_PreviousContainerHeight) && dataProvider != null) |
|||
{ |
|||
m_PreviousContainerWidth = containerWidth; |
|||
m_PreviousContainerHeight = containerHeight; |
|||
Resize(); |
|||
} |
|||
|
|||
m_Label.content = new GUIContent("Minimap p:" + |
|||
String.Format("{0:0}", containerPosition.position.x) + "," + String.Format("{0:0}", containerPosition.position.y) + " t: " + |
|||
String.Format("{0:0}", containerTranslation.x) + "," + String.Format("{0:0}", containerTranslation.y) + " s: " + |
|||
String.Format("{0:N2}", containerScale.x)/* + "," + String.Format("{0:N2}", containerScale.y)*/); |
|||
|
|||
base.DoRepaint(args); |
|||
|
|||
foreach (var child in container.children) |
|||
{ |
|||
// For some reason, I can't seem to be able to use Linq (IEnumerable.OfType() nor IEnumerable.Where appear to be working here. ??)
|
|||
GraphElement elem = child as GraphElement; |
|||
|
|||
// TODO: Should Edges be displayed at all?
|
|||
// TODO: Maybe edges need their own capabilities flag.
|
|||
if (elem == null || (elem.GetData<GraphElementData>().capabilities & Capabilities.Floating) != 0 || (elem.dataProvider is EdgeData)) |
|||
{ |
|||
continue; |
|||
} |
|||
|
|||
int titleBarOffset = (int)paddingTop; |
|||
var rect = child.position; |
|||
|
|||
rect.x /= containerWidth; |
|||
rect.width /= containerWidth; |
|||
rect.y /= containerHeight; |
|||
rect.height /= containerHeight; |
|||
|
|||
rect.x *= position.width; |
|||
rect.y *= (position.height-titleBarOffset); |
|||
rect.width *= position.width; |
|||
rect.height *= (position.height-titleBarOffset); |
|||
|
|||
rect.y += titleBarOffset; |
|||
|
|||
rect.x += position.x; |
|||
rect.y += position.y; |
|||
|
|||
rect.x += containerTranslation.x * position.width / parent.position.width; |
|||
rect.y += containerTranslation.y * (position.height-titleBarOffset) / parent.position.height; |
|||
|
|||
rect.x += containerPosition.x * position.width / containerWidth; |
|||
rect.y += containerPosition.y * (position.height-titleBarOffset) / containerHeight; |
|||
|
|||
if (rect.x < position.xMin) |
|||
{ |
|||
if (rect.x < (position.xMin - rect.width)) |
|||
{ |
|||
continue; |
|||
} |
|||
rect.width -= (position.xMin - rect.x); |
|||
rect.x = position.xMin; |
|||
} |
|||
|
|||
if (rect.x + rect.width >= position.xMax) |
|||
{ |
|||
if (rect.x >= position.xMax) |
|||
{ |
|||
continue; |
|||
} |
|||
rect.width -= (rect.x + rect.width) - position.xMax; |
|||
} |
|||
|
|||
if (rect.y < (position.yMin+titleBarOffset)) |
|||
{ |
|||
if (rect.y < ((position.yMin+titleBarOffset) - rect.height)) |
|||
{ |
|||
continue; |
|||
} |
|||
rect.height -= ((position.yMin+titleBarOffset) - rect.y); |
|||
rect.y = (position.yMin+titleBarOffset); |
|||
} |
|||
|
|||
if (rect.y + rect.height >= position.yMax) |
|||
{ |
|||
if (rect.y >= position.yMax) |
|||
{ |
|||
continue; |
|||
} |
|||
rect.height -= (rect.y + rect.height) - position.yMax; |
|||
} |
|||
|
|||
Handles.DrawSolidRectangleWithOutline(rect, Color.grey, Color.grey); |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 143cb9246975ace4abcd457a89d49d41 |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[GUISkinStyle("window")] |
|||
[CustomDataView(typeof(SimpleElementData))] |
|||
public class SimpleElement : GraphElement |
|||
{ |
|||
public SimpleElement() |
|||
{ |
|||
content = new GUIContent(""); |
|||
} |
|||
|
|||
public override void DoRepaint(PaintContext painter) |
|||
{ |
|||
base.DoRepaint(painter); |
|||
if (GetData<GraphElementData>() != null && GetData<GraphElementData>().selected) |
|||
{ |
|||
painter.DrawRectangleOutline(transform, position, Color.yellow); |
|||
} |
|||
} |
|||
|
|||
public override void OnDataChanged() |
|||
{ |
|||
base.OnDataChanged(); |
|||
var elementData = (SimpleElementData)dataProvider; |
|||
content.text = elementData.title; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 70ea0a5d74c50cb43ae6caa5837cb413 |
|||
timeCreated: 1475574874 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
using UnityEngine.RMGUI; |
|||
|
|||
namespace RMGUI.GraphView.Demo |
|||
{ |
|||
[CustomDataView(typeof(WWWImageData))] |
|||
public class WWWImage : SimpleElement |
|||
{ |
|||
private Texture2D m_WwwTexture; |
|||
WWW m_Www; |
|||
bool m_IsScheduled; |
|||
|
|||
public WWWImage() |
|||
{ |
|||
m_Www = new WWW("http://lorempixel.com/200/200"); |
|||
onEnter += SchedulePolling; |
|||
onLeave += UnschedulePolling; |
|||
pickingMode = PickingMode.Position; |
|||
} |
|||
|
|||
private void SchedulePolling() |
|||
{ |
|||
if (panel != null) |
|||
{ |
|||
if (!m_IsScheduled) |
|||
{ |
|||
this.Schedule(CheckForWWW).StartingIn(0).Every(1000); |
|||
m_IsScheduled = true; |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
m_IsScheduled = false; |
|||
} |
|||
} |
|||
|
|||
private void UnschedulePolling() |
|||
{ |
|||
if (m_IsScheduled && panel != null) |
|||
{ |
|||
this.Unschedule(CheckForWWW); |
|||
} |
|||
m_IsScheduled = false; |
|||
} |
|||
|
|||
private void CheckForWWW(TimerState timerState) |
|||
{ |
|||
if (!m_Www.isDone) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
if (m_WwwTexture == null) |
|||
{ |
|||
m_WwwTexture = new Texture2D(4, 4, TextureFormat.DXT1, false); |
|||
AddChild(new Image {image = m_WwwTexture}); |
|||
} |
|||
|
|||
m_Www.LoadImageIntoTexture(m_WwwTexture); |
|||
|
|||
m_Www = new WWW("http://lorempixel.com/200/200"); |
|||
|
|||
this.Touch(ChangeType.Repaint); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b59b7476e9f328e408a9e8f085a0fc0b |
|||
timeCreated: 1475574875 |
|||
licenseType: Pro |
|||
MonoImporter: |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 1fd87363cb80ef8499b0dbad682a7dd7 |
|||
folderAsset: yes |
|||
timeCreated: 1475574870 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 1bcce62844680dc43a9597c9f925aab4 |
|||
folderAsset: yes |
|||
timeCreated: 1475574871 |
|||
licenseType: Pro |
|||
DefaultImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue