{ "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.GraphData", "m_ObjectId": "9f9c83fdb8c34e0e8f80e7327bfa0ba5", "m_Properties": [ { "m_Id": "5ffe6e807c254d53a8d8d996ca13f84e" }, { "m_Id": "89b20efb0bb04dc9b0d855388c9fa803" } ], "m_Keywords": [], "m_Dropdowns": [], "m_CategoryData": [ { "m_Id": "62163e7a53984e1c9054505848a8cd0d" } ], "m_Nodes": [ { "m_Id": "6364edad7b714d359902a484b8785b0b" }, { "m_Id": "1234e227bed3458cb06db236793dd352" }, { "m_Id": "8cc9f69b46cd41a492dfe0548e14a690" }, { "m_Id": "462354595cf44bd1be5dc75299df02af" } ], "m_GroupDatas": [], "m_StickyNoteDatas": [ { "m_Id": "9798afd276a5422db2f796d67734fea1" } ], "m_Edges": [ { "m_OutputSlot": { "m_Node": { "m_Id": "1234e227bed3458cb06db236793dd352" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { "m_Id": "462354595cf44bd1be5dc75299df02af" }, "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { "m_Id": "462354595cf44bd1be5dc75299df02af" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { "m_Id": "6364edad7b714d359902a484b8785b0b" }, "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { "m_Id": "8cc9f69b46cd41a492dfe0548e14a690" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { "m_Id": "462354595cf44bd1be5dc75299df02af" }, "m_SlotId": 2 } } ], "m_VertexContext": { "m_Position": { "x": 0.0, "y": 0.0 }, "m_Blocks": [] }, "m_FragmentContext": { "m_Position": { "x": 0.0, "y": 0.0 }, "m_Blocks": [] }, "m_PreviewData": { "serializedMesh": { "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", "m_Guid": "" }, "preventRotation": false }, "m_Path": "Input/UGUI", "m_GraphPrecision": 1, "m_PreviewMode": 2, "m_OutputNode": { "m_Id": "6364edad7b714d359902a484b8785b0b" }, "m_SubDatas": [], "m_ActiveTargets": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", "m_ObjectId": "1234e227bed3458cb06db236793dd352", "m_Group": { "m_Id": "" }, "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -206.0, "y": -1.0, "width": 135.0, "height": 34.0 } }, "m_Slots": [ { "m_Id": "ac119df19c1a4ecdae320c37ee245354" } ], "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_Property": { "m_Id": "89b20efb0bb04dc9b0d855388c9fa803" } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "3117fa35f84e497b949e38bfea6c499c", "m_Id": 1, "m_DisplayName": "Out", "m_SlotType": 0, "m_Hidden": false, "m_HideConnector": false, "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [], "m_LiteralMode": false } { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", "m_ObjectId": "462354595cf44bd1be5dc75299df02af", "m_Group": { "m_Id": "" }, "m_Name": "IsPreviewFloat (Custom Function)", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -206.0, "y": 33.0, "width": 237.0, "height": 118.0 } }, "m_Slots": [ { "m_Id": "f0648228409a4229b0b32a6fd7cb61fa" }, { "m_Id": "a2c2e058828043e1a53df8c6b172dbda" }, { "m_Id": "d81b19a16d7b448c94ee57a370e6d7df" } ], "synonyms": [ "code", "HLSL" ], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_SourceType": 1, "m_FunctionName": "IsPreviewFloat", "m_FunctionSource": "", "m_FunctionSourceUsePragmas": true, "m_FunctionBody": "#if defined(SHADERGRAPH_PREVIEW_MAIN) || defined(SHADERGRAPH_PREVIEW)\nOut = Preview;\n#else\nOut = Final;\n#endif\n" } { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", "m_ObjectId": "5ffe6e807c254d53a8d8d996ca13f84e", "m_Guid": { "m_GuidSerialized": "3da8ea4d-7749-407b-965b-ab3ca072dcc6" }, "promotedFromAssetID": "", "promotedFromCategoryName": "", "promotedOrdering": -1, "m_Name": "Preview Value", "m_DefaultRefNameVersion": 1, "m_RefNameGeneratedByDisplayName": "Preview Value", "m_DefaultReferenceName": "_Preview_Value", "m_OverrideReferenceName": "", "m_GeneratePropertyBlock": true, "m_UseCustomSlotLabel": false, "m_CustomSlotLabel": "", "m_DismissedVersion": 0, "m_Precision": 0, "overrideHLSLDeclaration": false, "hlslDeclarationOverride": 0, "hideConnector": true, "m_Hidden": false, "m_PerRendererData": false, "m_customAttributes": [], "m_Value": 0.5, "m_FloatType": 1, "m_LiteralFloatMode": false, "m_RangeValues": { "x": 0.0, "y": 1.0 }, "m_SliderType": 0, "m_SliderPower": 3.0, "m_EnumType": 0, "m_CSharpEnumString": "", "m_EnumNames": [ "Default" ], "m_EnumValues": [ 0 ] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.CategoryData", "m_ObjectId": "62163e7a53984e1c9054505848a8cd0d", "m_Name": "", "m_ChildObjectList": [ { "m_Id": "89b20efb0bb04dc9b0d855388c9fa803" }, { "m_Id": "5ffe6e807c254d53a8d8d996ca13f84e" } ] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", "m_ObjectId": "6364edad7b714d359902a484b8785b0b", "m_Group": { "m_Id": "" }, "m_Name": "Output", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": 31.0, "y": 33.0, "width": 86.0, "height": 77.0 } }, "m_Slots": [ { "m_Id": "3117fa35f84e497b949e38bfea6c499c" } ], "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "IsFirstSlotValid": true } { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", "m_ObjectId": "89b20efb0bb04dc9b0d855388c9fa803", "m_Guid": { "m_GuidSerialized": "d6b92199-1a80-4d6f-bd09-5f741b592345" }, "promotedFromAssetID": "90192633207f24dc0927e116d7564452", "promotedFromCategoryName": "", "promotedOrdering": -1, "m_Name": "MeterValue", "m_DefaultRefNameVersion": 1, "m_RefNameGeneratedByDisplayName": "MeterValue", "m_DefaultReferenceName": "_MeterValue", "m_OverrideReferenceName": "", "m_GeneratePropertyBlock": false, "m_UseCustomSlotLabel": false, "m_CustomSlotLabel": "", "m_DismissedVersion": 0, "m_Precision": 0, "overrideHLSLDeclaration": true, "hlslDeclarationOverride": 2, "hideConnector": false, "m_Hidden": false, "m_PerRendererData": false, "m_customAttributes": [], "m_Value": 0.5, "m_FloatType": 0, "m_LiteralFloatMode": false, "m_RangeValues": { "x": 0.0, "y": 1.0 }, "m_SliderType": 0, "m_SliderPower": 3.0, "m_EnumType": 0, "m_CSharpEnumString": "", "m_EnumNames": [ "Default" ], "m_EnumValues": [ 0 ] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", "m_ObjectId": "8cc9f69b46cd41a492dfe0548e14a690", "m_Group": { "m_Id": "" }, "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -206.0, "y": 151.0, "width": 149.0, "height": 34.0 } }, "m_Slots": [ { "m_Id": "f9a90669c4654e86b9a33f2caeb6f1e9" } ], "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_Property": { "m_Id": "5ffe6e807c254d53a8d8d996ca13f84e" } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.StickyNoteData", "m_ObjectId": "9798afd276a5422db2f796d67734fea1", "m_Title": "Meter Value", "m_Content": "This subgraph uses a Custom Function Node to switch between a hidden promoted property and a subgraph property with input port disabled used as the preview value.\n\nThis requires a Meter component on the element to feed the value.", "m_TextSize": 0, "m_Theme": 1, "m_Position": { "serializedVersion": "2", "x": -453.0, "y": 20.0, "width": 200.0, "height": 160.0 }, "m_Group": { "m_Id": "" } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "a2c2e058828043e1a53df8c6b172dbda", "m_Id": 2, "m_DisplayName": "Preview", "m_SlotType": 0, "m_Hidden": false, "m_HideConnector": false, "m_ShaderOutputName": "Preview", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [], "m_LiteralMode": false } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "ac119df19c1a4ecdae320c37ee245354", "m_Id": 0, "m_DisplayName": "MeterValue", "m_SlotType": 1, "m_Hidden": false, "m_HideConnector": false, "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [], "m_LiteralMode": false } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "d81b19a16d7b448c94ee57a370e6d7df", "m_Id": 1, "m_DisplayName": "Out", "m_SlotType": 1, "m_Hidden": false, "m_HideConnector": false, "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [], "m_LiteralMode": false } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "f0648228409a4229b0b32a6fd7cb61fa", "m_Id": 0, "m_DisplayName": "Final", "m_SlotType": 0, "m_Hidden": false, "m_HideConnector": false, "m_ShaderOutputName": "Final", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [], "m_LiteralMode": false } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "f9a90669c4654e86b9a33f2caeb6f1e9", "m_Id": 0, "m_DisplayName": "Preview Value", "m_SlotType": 1, "m_Hidden": false, "m_HideConnector": false, "m_ShaderOutputName": "Out", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [], "m_LiteralMode": false }