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

23 行
5.5 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: Door
m_EditorClassIdentifier:
_data:
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":null,"summary":null,"pan":{"x":425.9744,"y":187.0002},"zoom":0.4,"elements":[{"nest":{"source":"Macro","macro":0,"embed":null},"defaultValues":{"tag":{"$content":"Player","$type":"System.String"}},"position":{"x":-198.0,"y":-63.0},"guid":"583171c3-efda-47ed-8e02-43c750b97ebc","$version":"A","$type":"Bolt.SuperUnit","$id":"9"},{"type":"System.Boolean","value":{"$content":false,"$type":"System.Boolean"},"defaultValues":{},"position":{"x":553.0,"y":117.0},"guid":"8e30189b-e34a-4f0d-b616-6d2887a60f34","$version":"A","$type":"Bolt.Literal","$id":"12"},{"chainable":false,"member":{"name":"LogWarning","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":342.0,"y":54.0},"guid":"1f069ac6-ecea-46df-bb85-595a39949ab2","$version":"A","$type":"Bolt.InvokeMember","$id":"14"},{"defaultValues":{},"position":{"x":206.0,"y":-62.0},"guid":"adc33b07-c1fb-4c4c-b4b1-c72ce6e7de8a","$version":"A","$type":"Bolt.Branch","$id":"17"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"HasKey","$type":"System.String"},"object":null},"position":{"x":28.0,"y":40.0},"guid":"9d64cc7e-36fa-4156-89b8-3b69a9f10eef","$version":"A","$type":"Bolt.GetVariable","$id":"19"},{"defaultValues":{},"position":{"x":910.0,"y":32.0},"guid":"20553314-be44-47df-8ec0-1f4beb0df98f","$version":"A","$type":"Bolt.Self","$id":"21"},{"chainable":false,"member":{"name":"Destroy","parameterTypes":["UnityEngine.Object"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%obj":null},"position":{"x":1032.0,"y":-71.0},"guid":"58ed0e7b-51c0-45cd-9cd6-571cabb3d309","$version":"A","$type":"Bolt.InvokeMember","$id":"23"},{"specifyFallback":false,"kind":"Application","defaultValues":{"name":{"$content":"Player","$type":"System.String"}},"position":{"x":529.0,"y":21.0},"guid":"411e4f9f-09a5-47dd-9655-c6776ff6db5c","$version":"A","$type":"Bolt.GetVariable","$id":"26"},{"type":"System.String","value":{"$content":"I
need the key","$type":"System.String"},"defaultValues":{},"position":{"x":134.0,"y":166.0},"guid":"45c50431-1acc-482e-93fe-2fd68b34c185","$version":"A","$type":"Bolt.Literal","$id":"28"},{"kind":"Object","defaultValues":{"name":{"$content":"HasKey","$type":"System.String"},"object":null},"position":{"x":733.0,"y":-66.0},"guid":"a4c89a21-c660-439b-85f6-c895151b1d73","$version":"A","$type":"Bolt.SetVariable","$id":"30"},{"sourceUnit":{"$ref":"17"},"sourceKey":"ifFalse","destinationUnit":{"$ref":"14"},"destinationKey":"enter","guid":"4f6893b0-4719-45db-82a8-5ae10c676b7b","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"ifTrue","destinationUnit":{"$ref":"30"},"destinationKey":"assign","guid":"daded5d8-bc12-4c1c-8373-dc2c289874ac","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"30"},"sourceKey":"assigned","destinationUnit":{"$ref":"23"},"destinationKey":"enter","guid":"de7c8021-64c8-423e-b834-41eb51304933","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"target","destinationUnit":{"$ref":"17"},"destinationKey":"enter","guid":"30d7c32b-6a3c-404e-9b78-edcc8a4a2b4a","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"12"},"sourceKey":"output","destinationUnit":{"$ref":"30"},"destinationKey":"input","guid":"2cc607a3-e364-4ef8-a665-da3abdcc3f5e","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"Object","destinationUnit":{"$ref":"19"},"destinationKey":"object","guid":"2a93cef4-7e68-471c-8d15-db5e16bedcfe","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"output","destinationUnit":{"$ref":"14"},"destinationKey":"%message","guid":"97424cb5-eefe-42fe-8cab-43808ab69ad2","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"26"},"sourceKey":"value","destinationUnit":{"$ref":"30"},"destinationKey":"object","guid":"6b74d1cd-9731-4300-8b04-5cfbd2fe6836","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"21"},"sourceKey":"self","destinationUnit":{"$ref":"23"},"destinationKey":"%obj","guid":"4462bab8-820b-494d-a4b5-b40d9d8c3465","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"19"},"sourceKey":"value","destinationUnit":{"$ref":"17"},"destinationKey":"condition","guid":"392f9433-54b2-4580-afb7-72c6b93afe86","$type":"Bolt.ValueConnection"},{"position":{"xMin":-237.9999,"yMin":-134.9999,"xMax":1444.5,"yMax":422.5001},"label":"Disable
the door the player collides with the key","comment":"Here we check if the object
colliding with the door (the player) has the \"haskey\" variable activated.
If it doesn, we turn off the collider on the door and change it''s sprite to
an open door.","color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"d424da30-d64d-40a1-a16c-1964f9a622d7","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
_objectReferences:
- {fileID: 11400000, guid: e10f8167a4ef1ce4fb05062327d4825c, type: 2}