minesweeper_game/Library/PackageCache/com.unity.shadergraph@cdef3258c742/Samples~/UGUIShaders/Subgraphs/Utilities/Selectable State Preview.shadersubgraph
2025-03-15 14:30:26 -04:00

855 lines
19 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "bf0e5cd4c66c499cb0ece89cca18b3c9",
"m_Properties": [
{
"m_Id": "4ce2a3659a7a4255b0a9740ea6d912b2"
}
],
"m_Keywords": [],
"m_Dropdowns": [
{
"m_Id": "1af3eb1743bd40d889bdfa68ecd4a647"
}
],
"m_CategoryData": [
{
"m_Id": "a3a99a6001824cd6b43d606acec2a6f5"
}
],
"m_Nodes": [
{
"m_Id": "9449855d3855413a8290ae113a757c4c"
},
{
"m_Id": "a199c269be804e1abc674bba5a3eb60b"
},
{
"m_Id": "04a10c2c46ce494dac60437ca4d1a9cb"
},
{
"m_Id": "65fbd4afb02d4046bee93496c96d52f6"
},
{
"m_Id": "550f398fdd9045ff883b6303d471b52b"
},
{
"m_Id": "338061c44f95492498b8b07f09eb4bd8"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "04a10c2c46ce494dac60437ca4d1a9cb"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "65fbd4afb02d4046bee93496c96d52f6"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "04a10c2c46ce494dac60437ca4d1a9cb"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "65fbd4afb02d4046bee93496c96d52f6"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "338061c44f95492498b8b07f09eb4bd8"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "550f398fdd9045ff883b6303d471b52b"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "550f398fdd9045ff883b6303d471b52b"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "9449855d3855413a8290ae113a757c4c"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "65fbd4afb02d4046bee93496c96d52f6"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "550f398fdd9045ff883b6303d471b52b"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a199c269be804e1abc674bba5a3eb60b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "338061c44f95492498b8b07f09eb4bd8"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a199c269be804e1abc674bba5a3eb60b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "65fbd4afb02d4046bee93496c96d52f6"
},
"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": "Utility/UGUI",
"m_GraphPrecision": 1,
"m_PreviewMode": 1,
"m_OutputNode": {
"m_Id": "9449855d3855413a8290ae113a757c4c"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "04a10c2c46ce494dac60437ca4d1a9cb",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -432.0,
"y": -132.0,
"width": 103.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "80177d922b5a4be4a1da8099115a6042"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "4ce2a3659a7a4255b0a9740ea6d912b2"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "099e937f9e5f458da66a3824b7a931d2",
"m_Id": 1,
"m_DisplayName": "State",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "State",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyConnectionStateMaterialSlot",
"m_ObjectId": "0e3ba5f632c2440ab474831d16f1ab16",
"m_Id": 0,
"m_DisplayName": "Input",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Input",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "0fc12dd54e88471a87acbf0fe55058bd",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "1a9bcf8fc43d4c15a726e5f03be3eff4",
"m_Id": 2,
"m_DisplayName": "Highlighted",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Highlighted",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ShaderDropdown",
"m_ObjectId": "1af3eb1743bd40d889bdfa68ecd4a647",
"m_Guid": {
"m_GuidSerialized": "0c74d9a9-3643-4486-b032-d8d60ffb56e7"
},
"m_Name": "Preview",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Preview",
"m_DefaultReferenceName": "_Preview",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Entries": [
{
"id": 3,
"displayName": "Normal"
},
{
"id": 2,
"displayName": "Highlighted"
},
{
"id": 4,
"displayName": "Pressed"
},
{
"id": 5,
"displayName": "Selected"
},
{
"id": 6,
"displayName": "Disabled"
}
],
"m_Value": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "2d75b34f63354430aef5611806bfb064",
"m_Id": 6,
"m_DisplayName": "Disabled",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Disabled",
"m_StageCapability": 3,
"m_Value": {
"x": 4.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.RedirectNodeData",
"m_ObjectId": "338061c44f95492498b8b07f09eb4bd8",
"m_Group": {
"m_Id": ""
},
"m_Name": "Redirect Node",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -282.0,
"y": 71.0,
"width": 56.0,
"height": 24.0
}
},
"m_Slots": [
{
"m_Id": "e233c75976164c759c12a7f343f1635c"
},
{
"m_Id": "f1e85a7154ea474f81c0c7b375b4c78a"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "4ce2a3659a7a4255b0a9740ea6d912b2",
"m_Guid": {
"m_GuidSerialized": "9c4cb347-e674-4393-bb26-07702c97589e"
},
"m_Name": "State",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "State",
"m_DefaultReferenceName": "_State",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": true,
"m_CustomSlotLabel": "Preview",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "550f398fdd9045ff883b6303d471b52b",
"m_Group": {
"m_Id": ""
},
"m_Name": "SelectableStateSgPreview (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -194.0,
"y": -98.0,
"width": 304.0,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "917980f8826941318e46f0c1b2990034"
},
{
"m_Id": "cb5df588471349af9fcb8b8859e9d4c8"
},
{
"m_Id": "0fc12dd54e88471a87acbf0fe55058bd"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "SelectableStateSgPreview",
"m_FunctionSource": "",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "#if SHADERGRAPH_PREVIEW\nOut = SGPreview;\n#else\nOut = Input;\n#endif\n"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "59cd9498dd5a4e24b9199267c5d8603d",
"m_Id": 2,
"m_DisplayName": "NotConnected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "NotConnected",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BranchOnInputConnectionNode",
"m_ObjectId": "65fbd4afb02d4046bee93496c96d52f6",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch On Input Connection",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -432.0,
"y": -98.0,
"width": 206.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "0e3ba5f632c2440ab474831d16f1ab16"
},
{
"m_Id": "e3e786cdfacd48bd8af42f487de1950b"
},
{
"m_Id": "59cd9498dd5a4e24b9199267c5d8603d"
},
{
"m_Id": "fe845c74b8524aa7a3062b56bbc29749"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "683422178ac7411ba51c79d498963d28",
"m_Id": 5,
"m_DisplayName": "Selected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Selected",
"m_StageCapability": 3,
"m_Value": {
"x": 3.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "7761ea1a833a415988271af601a95730",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "80177d922b5a4be4a1da8099115a6042",
"m_Id": 0,
"m_DisplayName": "State",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "860d2413835f46ec8fb39a68b6df680e",
"m_Id": 3,
"m_DisplayName": "Normal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Normal",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "917980f8826941318e46f0c1b2990034",
"m_Id": 1,
"m_DisplayName": "Input",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Input",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "9449855d3855413a8290ae113a757c4c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 109.9999771118164,
"y": -97.9999771118164,
"width": 86.0000228881836,
"height": 76.99998474121094
}
},
"m_Slots": [
{
"m_Id": "099e937f9e5f458da66a3824b7a931d2"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DropdownNode",
"m_ObjectId": "a199c269be804e1abc674bba5a3eb60b",
"m_Group": {
"m_Id": ""
},
"m_Name": "Preview",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -634.0,
"y": 25.0,
"width": 178.0,
"height": 190.0
}
},
"m_Slots": [
{
"m_Id": "7761ea1a833a415988271af601a95730"
},
{
"m_Id": "860d2413835f46ec8fb39a68b6df680e"
},
{
"m_Id": "1a9bcf8fc43d4c15a726e5f03be3eff4"
},
{
"m_Id": "db91226a6f3f4996849e193a75a1354c"
},
{
"m_Id": "683422178ac7411ba51c79d498963d28"
},
{
"m_Id": "2d75b34f63354430aef5611806bfb064"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Dropdown": {
"m_Id": "1af3eb1743bd40d889bdfa68ecd4a647"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "a3a99a6001824cd6b43d606acec2a6f5",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "4ce2a3659a7a4255b0a9740ea6d912b2"
},
{
"m_Id": "1af3eb1743bd40d889bdfa68ecd4a647"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "cb5df588471349af9fcb8b8859e9d4c8",
"m_Id": 0,
"m_DisplayName": "SGPreview",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "SGPreview",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "db91226a6f3f4996849e193a75a1354c",
"m_Id": 4,
"m_DisplayName": "Pressed",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Pressed",
"m_StageCapability": 3,
"m_Value": {
"x": 2.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "e233c75976164c759c12a7f343f1635c",
"m_Id": 0,
"m_DisplayName": "",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "e3e786cdfacd48bd8af42f487de1950b",
"m_Id": 1,
"m_DisplayName": "Connected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Connected",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "f1e85a7154ea474f81c0c7b375b4c78a",
"m_Id": 1,
"m_DisplayName": "",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "fe845c74b8524aa7a3062b56bbc29749",
"m_Id": 3,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}