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

19 行
4.2 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: WeaponPickup
m_EditorClassIdentifier:
_data:
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":null,"summary":null,"pan":{"x":118.2148,"y":48.788},"zoom":1.0,"elements":[{"nest":{"source":"Macro","macro":0,"embed":null},"defaultValues":{"tag":{"$content":"Player","$type":"System.String"}},"position":{"x":-230.0,"y":-75.0},"guid":"a8b0d12a-05ce-4ff0-978f-25670c397d03","$version":"A","$type":"Bolt.SuperUnit","$id":"9"},{"argumentCount":0,"defaultValues":{"name":{"$content":"PickupWeapon","$type":"System.String"},"target":null},"position":{"x":9.0,"y":-83.0},"guid":"1d1991ea-c4d9-4994-a151-2e1244b08641","$version":"A","$type":"Bolt.TriggerCustomEvent","$id":"12"},{"chainable":false,"member":{"name":"Destroy","parameterTypes":["UnityEngine.Object"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%obj":null},"position":{"x":243.0,"y":-80.0},"guid":"88ce3445-aca4-44b8-9a9e-bb812f5bdf36","$version":"A","$type":"Bolt.InvokeMember","$id":"14"},{"coroutine":false,"defaultValues":{},"position":{"x":-169.0,"y":358.0},"guid":"c6aa7c4e-db56-4b3b-aa4e-bfff473a0815","$version":"A","$type":"Bolt.Update","$id":"17"},{"chainable":false,"member":{"name":"Rotate","parameterTypes":["System.Single","System.Single","System.Single"],"targetType":"UnityEngine.Transform","targetTypeName":"UnityEngine.Transform","$version":"A"},"defaultValues":{"target":null,"%xAngle":{"$content":0.0,"$type":"System.Single"},"%yAngle":{"$content":5.0,"$type":"System.Single"},"%zAngle":{"$content":0.0,"$type":"System.Single"}},"position":{"x":32.0,"y":358.0},"guid":"a4132075-be87-4758-8e8b-15540772f47b","$version":"A","$type":"Bolt.InvokeMember","$id":"19"},{"defaultValues":{"input":{"$content":30.0,"$type":"System.Single"}},"position":{"x":-190.0,"y":458.0},"guid":"fc2e284a-e86a-4bc7-8429-39673d43bed9","$version":"A","$type":"Bolt.ScalarPerSecond","$id":"22"},{"defaultValues":{},"position":{"x":79.0,"y":73.0},"guid":"2e048970-c7df-4b94-8503-f6a5163a2303","$version":"A","$type":"Bolt.Self","$id":"24"},{"sourceUnit":{"$ref":"17"},"sourceKey":"trigger","destinationUnit":{"$ref":"19"},"destinationKey":"enter","guid":"7d766ca7-f15a-4180-8f08-7aa281039b61","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"12"},"sourceKey":"exit","destinationUnit":{"$ref":"14"},"destinationKey":"enter","guid":"ecf5e56c-b423-4b84-a772-0ac3bcdb31cb","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"target","destinationUnit":{"$ref":"12"},"destinationKey":"enter","guid":"241f2080-81f2-48e9-b241-db1a91d7519b","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"22"},"sourceKey":"output","destinationUnit":{"$ref":"19"},"destinationKey":"%yAngle","guid":"daf2afbe-8086-472a-adec-34edc4413a0a","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"24"},"sourceKey":"self","destinationUnit":{"$ref":"14"},"destinationKey":"%obj","guid":"cf53e68b-ffb2-4cfb-ade4-16026252457b","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"Object","destinationUnit":{"$ref":"12"},"destinationKey":"target","guid":"2b189af6-5ad8-4276-af66-848f392763ea","$type":"Bolt.ValueConnection"},{"position":{"xMin":-259.0,"yMin":298.0,"xMax":240.0,"yMax":574.0},"label":"Rotate","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"f439a9a4-a10e-443f-ac16-481ccc16249a","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-262.0,"yMin":-140.0,"xMax":400.0,"yMax":189.0},"label":"Enable
the weapon and destroy the pickup","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"43cbee10-d695-4147-aebe-be52e486ffb3","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
_objectReferences:
- {fileID: 11400000, guid: e10f8167a4ef1ce4fb05062327d4825c, type: 2}