包含 Bolt Visual Scripting 示例的 Unity 包的集合。 每个示例都演示了如何使用 Unity 编辑器功能、游戏逻辑等,无需编写任何代码。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

22 行
9.7 KiB

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -1893448595, guid: a040fb66244a7f54289914d98ea4ef7d, type: 3}
m_Name: AdjustCrateShader
m_EditorClassIdentifier:
_data:
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Adjust
Crate Shader","summary":null,"pan":{"x":706.4402,"y":18.70743},"zoom":0.45,"elements":[{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"shaderGraphMaterial","$type":"System.String"},"object":null},"position":{"x":-401.0,"y":-80.0},"guid":"42c17b00-57cc-495f-9d53-dd8a46080212","$version":"A","$type":"Bolt.GetVariable","$id":"9"},{"chainable":false,"member":{"name":"SetFloat","parameterTypes":["System.String","System.Single"],"targetType":"UnityEngine.Material","targetTypeName":"UnityEngine.Material","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"_stripeSize","$type":"System.String"},"%value":{"$content":0.0,"$type":"System.Single"}},"position":{"x":1192.0,"y":-18.0},"guid":"4a6cb633-99f2-48e4-91fc-98c75038b021","$version":"A","$type":"Bolt.InvokeMember","$id":"11"},{"defaultValues":{},"position":{"x":72.0,"y":73.0},"guid":"2339a827-96d6-410f-9ded-506b411d819f","$version":"A","$type":"Bolt.GenericSubtract","$id":"14"},{"coroutine":false,"defaultValues":{},"position":{"x":-306.0,"y":-220.0},"guid":"0f9d2be3-399a-4350-97e1-1c8cf1aef90a","$version":"A","$type":"Bolt.Update","$id":"16"},{"chainable":false,"member":{"name":"GetKey","parameterTypes":["UnityEngine.KeyCode"],"targetType":"UnityEngine.Input","targetTypeName":"UnityEngine.Input","$version":"A"},"defaultValues":{"%key":{"$content":"Q","$type":"UnityEngine.KeyCode"}},"position":{"x":-110.0,"y":-217.0},"guid":"efbb59f8-1a48-4e57-a4c5-d84c6e63f6a5","$version":"A","$type":"Bolt.InvokeMember","$id":"18"},{"chainable":false,"member":{"name":"GetFloat","parameterTypes":["System.String"],"targetType":"UnityEngine.Material","targetTypeName":"UnityEngine.Material","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"_stripeSize","$type":"System.String"}},"position":{"x":-158.0,"y":52.0},"guid":"2182ef0a-d295-4876-8145-198cee271aa9","$version":"A","$type":"Bolt.InvokeMember","$id":"21"},{"coroutine":false,"defaultValues":{},"position":{"x":-360.0,"y":52.0},"guid":"94ad402b-5a88-4e4e-a74f-ea69006ba12a","$version":"A","$type":"Bolt.Update","$id":"24"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"speed","$type":"System.String"},"object":null},"position":{"x":-134.0,"y":219.0},"guid":"d4c57228-efcf-4087-a407-675740ddc82c","$version":"A","$type":"Bolt.GetVariable","$id":"26"},{"chainable":false,"member":{"name":"GetFloat","parameterTypes":["System.String"],"targetType":"UnityEngine.Material","targetTypeName":"UnityEngine.Material","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"_stripeSize","$type":"System.String"}},"position":{"x":812.0,"y":116.0},"guid":"26b4298d-e3ce-48ee-a4d3-5c9b8c0aa570","$version":"A","$type":"Bolt.InvokeMember","$id":"28"},{"defaultValues":{},"position":{"x":63.0,"y":-218.0},"guid":"122fdec6-7ae9-40f8-bf89-a205d05c2845","$version":"A","$type":"Bolt.Branch","$id":"31"},{"coroutine":false,"defaultValues":{},"position":{"x":664.0,"y":-156.0},"guid":"d212f8be-a4cc-4fbe-b9c8-cf3055a21051","$version":"A","$type":"Bolt.Update","$id":"33"},{"chainable":false,"member":{"name":"GetKey","parameterTypes":["UnityEngine.KeyCode"],"targetType":"UnityEngine.Input","targetTypeName":"UnityEngine.Input","$version":"A"},"defaultValues":{"%key":{"$content":"E","$type":"UnityEngine.KeyCode"}},"position":{"x":860.0,"y":-153.0},"guid":"4ee35122-d160-4269-a76d-17b146eb60b7","$version":"A","$type":"Bolt.InvokeMember","$id":"35"},{"defaultValues":{},"position":{"x":1033.0,"y":-154.0},"guid":"b0b74bec-51f3-45cb-9b9a-f6f8713b1ed9","$version":"A","$type":"Bolt.Branch","$id":"38"},{"coroutine":false,"defaultValues":{},"position":{"x":610.0,"y":116.0},"guid":"006ba952-01f8-492e-8454-31f078f6b2e3","$version":"A","$type":"Bolt.Update","$id":"40"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"speed","$type":"System.String"},"object":null},"position":{"x":836.0,"y":283.0},"guid":"5372bbdd-0b97-4099-a348-3c92abe985f4","$version":"A","$type":"Bolt.GetVariable","$id":"42"},{"defaultValues":{},"position":{"x":1045.0,"y":115.0},"guid":"8bbdf4c5-0513-4a43-b139-1d538a008c0c","$version":"A","$type":"Bolt.GenericAdd","$id":"44"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"shaderGraphMaterial","$type":"System.String"},"object":null},"position":{"x":569.0,"y":-16.0},"guid":"f58e1f93-caef-4578-83c7-8cf71ded8656","$version":"A","$type":"Bolt.GetVariable","$id":"46"},{"chainable":false,"member":{"name":"SetFloat","parameterTypes":["System.String","System.Single"],"targetType":"UnityEngine.Material","targetTypeName":"UnityEngine.Material","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"_stripeSize","$type":"System.String"},"%value":{"$content":0.0,"$type":"System.Single"}},"position":{"x":222.0,"y":-82.0},"guid":"7f89d43c-c8e1-41de-bd86-22466960a411","$version":"A","$type":"Bolt.InvokeMember","$id":"48"},{"sourceUnit":{"$ref":"16"},"sourceKey":"trigger","destinationUnit":{"$ref":"18"},"destinationKey":"enter","guid":"696a6fd1-9dee-4142-bc8f-a0368bf8a037","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"exit","destinationUnit":{"$ref":"31"},"destinationKey":"enter","guid":"c0655bc3-d332-42af-8fae-77c90d49462f","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"31"},"sourceKey":"ifTrue","destinationUnit":{"$ref":"48"},"destinationKey":"enter","guid":"44e9f493-8251-4d51-908f-a95a1c25a1ca","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"24"},"sourceKey":"trigger","destinationUnit":{"$ref":"21"},"destinationKey":"enter","guid":"0acfdc06-2776-4492-b843-7f6cfea325ed","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"33"},"sourceKey":"trigger","destinationUnit":{"$ref":"35"},"destinationKey":"enter","guid":"9ed4d701-a3a6-4fad-ae21-b273c1d8539f","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"35"},"sourceKey":"exit","destinationUnit":{"$ref":"38"},"destinationKey":"enter","guid":"0e9b9b37-f938-4ecd-b678-9fb62f4f5467","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"38"},"sourceKey":"ifTrue","destinationUnit":{"$ref":"11"},"destinationKey":"enter","guid":"1094247a-23c8-4aaf-afff-3cf999cc76a8","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"40"},"sourceKey":"trigger","destinationUnit":{"$ref":"28"},"destinationKey":"enter","guid":"002262ff-f027-4f12-8c99-a785fbdfb6ff","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"result","destinationUnit":{"$ref":"31"},"destinationKey":"condition","guid":"abbd09df-0467-480a-822c-bcff9b91134c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"value","destinationUnit":{"$ref":"21"},"destinationKey":"target","guid":"7f275b97-8356-402f-9f4b-d23873cd4b06","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"26"},"sourceKey":"value","destinationUnit":{"$ref":"14"},"destinationKey":"subtrahend","guid":"76592e5f-1a7a-4e94-9aa1-f8f1d29782fc","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"21"},"sourceKey":"result","destinationUnit":{"$ref":"14"},"destinationKey":"minuend","guid":"4070a9f4-b643-4aa9-862b-a7163e1232fa","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"14"},"sourceKey":"difference","destinationUnit":{"$ref":"48"},"destinationKey":"%value","guid":"a74bd35c-aee6-4ef8-9b14-2a1ad65617c0","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"46"},"sourceKey":"value","destinationUnit":{"$ref":"28"},"destinationKey":"target","guid":"2cb6f142-0ac4-416b-ad5c-fcc9d887d38e","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"value","destinationUnit":{"$ref":"48"},"destinationKey":"target","guid":"f350a9fa-f962-4064-bbc4-c96f47113b9b","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"35"},"sourceKey":"result","destinationUnit":{"$ref":"38"},"destinationKey":"condition","guid":"a9820cd8-09f6-414a-bd06-1fefcc484fb1","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"46"},"sourceKey":"value","destinationUnit":{"$ref":"11"},"destinationKey":"target","guid":"81143a91-ebef-4091-9fe3-5cfa8a92242d","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"result","destinationUnit":{"$ref":"44"},"destinationKey":"a","guid":"c59cfdb0-05d3-427d-826f-133d7f282271","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"42"},"sourceKey":"value","destinationUnit":{"$ref":"44"},"destinationKey":"b","guid":"d5f89740-8fc7-4411-891c-d406c3bb08e4","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"44"},"sourceKey":"sum","destinationUnit":{"$ref":"11"},"destinationKey":"%value","guid":"5f9ca969-0d6d-48fa-928c-3873994101c9","$type":"Bolt.ValueConnection"},{"position":{"xMin":-463.3333,"yMin":-328.3334,"xMax":425.9999,"yMax":377.9999},"label":"When
\"Q\" is pressed, reduce the value of _stripeSize in the CrateInnerShader Shader
Graph.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"1fee3104-7363-4ef6-a426-8f7d539277e2","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":486.0,"yMin":-233.0,"xMax":1407.0,"yMax":455.0},"label":"When
\"E\" is pressed, increase the value of _stripeSize in the CrateInnerShader
Shader Graph.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"70b669a0-b0cd-46aa-ba0f-2194d6740c44","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
_objectReferences: []