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

22 行
10 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: Bullet
m_EditorClassIdentifier:
_data:
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":null,"summary":null,"pan":{"x":-618.5983,"y":224.3362},"zoom":0.25,"elements":[{"argumentCount":0,"defaultValues":{"name":{"$content":"Damage","$type":"System.String"},"target":null},"position":{"x":-479.0,"y":191.0},"guid":"835dfac9-1c77-41f2-9381-cebf4d6a8f87","$version":"A","$type":"Bolt.TriggerCustomEvent","$id":"9"},{"chainable":false,"member":{"name":"Destroy","parameterTypes":["UnityEngine.Object","System.Single"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%obj":null,"%t":{"$content":3.0,"$type":"System.Single"}},"position":{"x":13.0,"y":309.0},"guid":"04b935fd-3d67-4098-946f-6a5d19d04536","$version":"A","$type":"Bolt.InvokeMember","$id":"11"},{"chainable":false,"member":{"name":"Destroy","parameterTypes":["UnityEngine.Object"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%obj":null},"position":{"x":213.0,"y":348.0},"guid":"c5c8d128-e73f-4bbf-8e97-11847e842255","$version":"A","$type":"Bolt.InvokeMember","$id":"14"},{"coroutine":false,"defaultValues":{},"position":{"x":-1371.0,"y":-229.0},"guid":"7772d8c6-c5ab-4125-95bc-b0fc0ea5358f","$version":"A","$type":"Bolt.Start","$id":"17"},{"chainable":false,"member":{"name":"Destroy","parameterTypes":["UnityEngine.Object"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%obj":null},"position":{"x":-1200.0,"y":300.0},"guid":"222ad13e-eb9c-4a5e-a0b8-9c2a32b2dd12","$version":"A","$type":"Bolt.InvokeMember","$id":"19"},{"member":{"name":"position","parameterTypes":null,"targetType":"UnityEngine.Transform","targetTypeName":"UnityEngine.Transform","$version":"A"},"defaultValues":{"target":null},"position":{"x":-487.0,"y":383.0},"guid":"7fd5a72f-d891-4568-b813-9f191bc5a8ed","$version":"A","$type":"Bolt.GetMember","$id":"22"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"Lifetime","$type":"System.String"},"object":null},"position":{"x":-1622.0,"y":310.0},"guid":"e77ff8c4-817a-4edb-b359-9b0219716578","$version":"A","$type":"Bolt.GetVariable","$id":"25"},{"defaultValues":{},"position":{"x":-1376.0,"y":387.0},"guid":"812e214f-8bd1-4133-820e-c126667f42c5","$version":"A","$type":"Bolt.Self","$id":"27"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"Speed","$type":"System.String"},"object":null},"position":{"x":-1599.0,"y":-50.0},"guid":"255c5803-7a7c-4ba9-867a-9a7092695845","$version":"A","$type":"Bolt.GetVariable","$id":"29"},{"member":{"name":"forward","parameterTypes":null,"targetType":"UnityEngine.Transform","targetTypeName":"UnityEngine.Transform","$version":"A"},"defaultValues":{"target":null},"position":{"x":-1614.0,"y":-155.0},"guid":"213d17aa-5751-449c-82e1-0d4e52d87c83","$version":"A","$type":"Bolt.GetMember","$id":"31"},{"defaultValues":{"seconds":{"$content":0.0,"$type":"System.Single"},"unscaledTime":{"$content":false,"$type":"System.Boolean"}},"position":{"x":-1400.0,"y":233.0},"guid":"7db2a6e3-9f70-4348-bd4f-486efe8e38cb","$version":"A","$type":"Bolt.WaitForSecondsUnit","$id":"34"},{"defaultValues":{},"position":{"x":-1377.0,"y":-115.0},"guid":"d665af05-9b3b-455b-88b2-4d0fc681282a","$version":"A","$type":"Bolt.GenericMultiply","$id":"36"},{"member":{"name":"identity","parameterTypes":null,"targetType":"UnityEngine.Quaternion","targetTypeName":"UnityEngine.Quaternion","$version":"A"},"defaultValues":{},"position":{"x":-491.0,"y":480.0},"guid":"4984793a-9bd9-40e5-b04a-15b7e61f6262","$version":"A","$type":"Bolt.GetMember","$id":"38"},{"chainable":false,"member":{"name":"Instantiate","parameterTypes":["UnityEngine.Object","UnityEngine.Vector3","UnityEngine.Quaternion"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%original":{"$content":0,"$type":"UnityEngine.Object"},"%position":{"x":0.0,"y":0.0,"z":0.0,"$type":"UnityEngine.Vector3"}},"position":{"x":-252.0,"y":291.0},"guid":"e1c008b2-20f3-45e2-a5f4-d54ee6864951","$version":"A","$type":"Bolt.InvokeMember","$id":"41"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"TargetTag","$type":"System.String"},"object":null},"position":{"x":-944.0,"y":273.0},"guid":"88fa533a-efeb-4639-9121-fb0bad84bd7c","$version":"A","$type":"Bolt.GetVariable","$id":"44"},{"defaultValues":{},"position":{"x":48.0,"y":456.0},"guid":"f64fbe15-bf33-4910-bd52-2e222dc29959","$version":"A","$type":"Bolt.Self","$id":"46"},{"nest":{"source":"Macro","macro":1,"embed":null},"defaultValues":{"tag":{"$content":"Player","$type":"System.String"}},"position":{"x":-748.0,"y":271.0},"guid":"ee6002dd-8581-4708-b6f6-773a6512ddf6","$version":"A","$type":"Bolt.SuperUnit","$id":"48"},{"coroutine":true,"defaultValues":{},"position":{"x":-1611.0,"y":189.0},"guid":"1aec15b0-4b5c-46b1-9462-67d7f67ee2e2","$version":"A","$type":"Bolt.Start","$id":"51"},{"chainable":false,"member":{"name":"velocity","parameterTypes":null,"targetType":"UnityEngine.Rigidbody","targetTypeName":"UnityEngine.Rigidbody","$version":"A"},"defaultValues":{"target":null,"input":{"x":0.0,"y":0.0,"z":0.0,"$type":"UnityEngine.Vector3"}},"position":{"x":-1168.0,"y":-187.0},"guid":"de1253db-ab85-43d9-a23b-8697e3d38341","$version":"A","$type":"Bolt.SetMember","$id":"53"},{"sourceUnit":{"$ref":"48"},"sourceKey":"other","destinationUnit":{"$ref":"41"},"destinationKey":"enter","guid":"40a0f860-3ed4-49e4-8260-4f3c46e0f057","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"48"},"sourceKey":"target","destinationUnit":{"$ref":"9"},"destinationKey":"enter","guid":"eaa1f971-7a2d-49c1-b109-6612aa505887","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"41"},"sourceKey":"exit","destinationUnit":{"$ref":"11"},"destinationKey":"enter","guid":"6987e6f3-aed0-43a1-affc-7d5a9e9d9fa7","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"11"},"sourceKey":"exit","destinationUnit":{"$ref":"14"},"destinationKey":"enter","guid":"9b97dd48-dd01-44f3-aff7-a18ef9807746","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"34"},"sourceKey":"exit","destinationUnit":{"$ref":"19"},"destinationKey":"enter","guid":"a0ebd898-eefb-4900-ae25-5b03f849da36","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"51"},"sourceKey":"trigger","destinationUnit":{"$ref":"34"},"destinationKey":"enter","guid":"f4a49c7f-a854-4398-8de6-6b337e2bb5ea","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"trigger","destinationUnit":{"$ref":"53"},"destinationKey":"assign","guid":"4ea44730-e8c2-4347-aa10-1cd332151aaa","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"exit","destinationUnit":{"$ref":"41"},"destinationKey":"enter","guid":"e6abb481-970e-48a7-83cd-0de64548dad1","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"41"},"sourceKey":"result","destinationUnit":{"$ref":"11"},"destinationKey":"%obj","guid":"4fff3f4a-bb48-4a6c-b0ad-7a97a7fd45cb","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"44"},"sourceKey":"value","destinationUnit":{"$ref":"48"},"destinationKey":"tag","guid":"612c514f-03f7-4fb9-83fa-ffcfe4ab3011","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"25"},"sourceKey":"value","destinationUnit":{"$ref":"34"},"destinationKey":"seconds","guid":"2f345dd1-3742-4bb3-ac61-6708d97d4f42","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"48"},"sourceKey":"Object","destinationUnit":{"$ref":"9"},"destinationKey":"target","guid":"2203ce79-4006-4e6a-81e9-54d33e8f26dd","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"31"},"sourceKey":"value","destinationUnit":{"$ref":"36"},"destinationKey":"a","guid":"2047c11a-ad52-4e03-a880-ad36076cdbfb","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"27"},"sourceKey":"self","destinationUnit":{"$ref":"19"},"destinationKey":"%obj","guid":"b4fadd18-2838-4b9b-bf54-a6a631cc31e0","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"38"},"sourceKey":"value","destinationUnit":{"$ref":"41"},"destinationKey":"%rotation","guid":"44699816-c8b0-4ad2-aa24-62f8697d1b20","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"29"},"sourceKey":"value","destinationUnit":{"$ref":"36"},"destinationKey":"b","guid":"4a3b32ef-5033-42a7-9e06-68d246a08008","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"22"},"sourceKey":"value","destinationUnit":{"$ref":"41"},"destinationKey":"%position","guid":"eb00679a-355e-4396-aef4-032edf68a376","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"36"},"sourceKey":"product","destinationUnit":{"$ref":"53"},"destinationKey":"input","guid":"509f05b2-44c5-48a6-80d6-92a8261ac3d0","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"46"},"sourceKey":"self","destinationUnit":{"$ref":"14"},"destinationKey":"%obj","guid":"d551fa6d-cd18-456d-900e-fa2b8de914b0","$type":"Bolt.ValueConnection"},{"position":{"xMin":-1675.0,"yMin":-286.0,"xMax":-928.0,"yMax":93.0},"label":"Launch
forward","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"f3e17671-8f4e-4e95-8195-c84e004b9769","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-1008.0,"yMin":125.0,"xMax":463.0,"yMax":585.0},"label":"On
collision, damage target, spawn particles and destroy","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"adbba9cb-e1af-40ce-bc96-6806ce62a284","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-1662.0,"yMin":136.0,"xMax":-1035.0,"yMax":513.0},"label":"Self-destruct
after a while","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"561bdf4d-8e91-4935-93ab-29f0a93dc718","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
_objectReferences:
- {fileID: 1058325498707994, guid: 8333d50130027574ca8b4e0268fdd047, type: 3}
- {fileID: 11400000, guid: e10f8167a4ef1ce4fb05062327d4825c, type: 2}