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

24 行
9.0 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: Player_Behavior_ER
m_EditorClassIdentifier:
_data:
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Player
Behavior","summary":"Handles Penny''s movement & animations based on player
input","pan":{"x":-197.6254,"y":725.772},"zoom":0.7500001,"elements":[{"chainable":false,"member":{"name":"velocity","parameterTypes":null,"targetType":"UnityEngine.Rigidbody2D","targetTypeName":"UnityEngine.Rigidbody2D","$version":"A"},"defaultValues":{"target":null,"input":{"x":0.0,"y":0.0,"$type":"UnityEngine.Vector2"}},"position":{"x":29.0,"y":-65.0},"guid":"47be37e6-b680-48c4-ba7b-e1db6e969879","$version":"A","$type":"Bolt.SetMember","$id":"9"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"jumpStrength","$type":"System.String"},"object":null},"position":{"x":-370.0,"y":98.0},"guid":"8b2daf9a-5779-4085-8dc8-c67deb5e4523","$version":"A","$type":"Bolt.GetVariable","$id":"12"},{"chainable":false,"member":{"name":".ctor","parameterTypes":["System.Single","System.Single"],"targetType":"UnityEngine.Vector2","targetTypeName":"UnityEngine.Vector2","$version":"A"},"defaultValues":{"%x":{"$content":0.0,"$type":"System.Single"},"%y":{"$content":0.0,"$type":"System.Single"}},"position":{"x":-157.0,"y":-66.0},"guid":"02a7fc4b-f400-4edb-9a42-02980e4813e2","$version":"A","$type":"Bolt.InvokeMember","$id":"14"},{"chainable":false,"member":{"name":"SetBool","parameterTypes":["System.String","System.Boolean"],"targetType":"UnityEngine.Animator","targetTypeName":"UnityEngine.Animator","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"jumping","$type":"System.String"},"%value":{"$content":true,"$type":"System.Boolean"}},"position":{"x":236.0,"y":-71.0},"guid":"ec993f5c-5617-4ec9-81e4-1e33ffbbbdc9","$version":"A","$type":"Bolt.InvokeMember","$id":"17"},{"nest":{"source":"Macro","macro":0,"embed":null},"defaultValues":{},"position":{"x":-185.0,"y":634.0},"guid":"70b7ceac-ac72-4d2d-80c2-61d3234cd6dd","$version":"A","$type":"Bolt.SuperUnit","$id":"20"},{"chainable":false,"member":{"name":"SetTrigger","parameterTypes":["System.String"],"targetType":"UnityEngine.Animator","targetTypeName":"UnityEngine.Animator","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"hurt","$type":"System.String"}},"position":{"x":24.0,"y":634.0},"guid":"46609597-7501-490e-8521-16928c3f74e9","$version":"A","$type":"Bolt.InvokeMember","$id":"23"},{"member":{"name":"x","parameterTypes":null,"targetType":"UnityEngine.Vector2","targetTypeName":"UnityEngine.Vector2","$version":"A"},"defaultValues":{"target":{"x":0.0,"y":0.0,"$type":"UnityEngine.Vector2"}},"position":{"x":-308.0,"y":-5.0},"guid":"ccb3abf4-a486-440c-a062-498095331f7a","$version":"A","$type":"Bolt.GetMember","$id":"26"},{"chainable":false,"member":{"name":"SetBool","parameterTypes":["System.String","System.Boolean"],"targetType":"UnityEngine.Animator","targetTypeName":"UnityEngine.Animator","$version":"A"},"defaultValues":{"target":null,"%name":{"$content":"jumping","$type":"System.String"},"%value":{"$content":false,"$type":"System.Boolean"}},"position":{"x":-244.0,"y":345.0},"guid":"12e7e342-694f-4290-9ae7-ed5d837bfa49","$version":"A","$type":"Bolt.InvokeMember","$id":"29"},{"coroutine":false,"defaultValues":{"key":{"$content":"Space","$type":"UnityEngine.KeyCode"},"action":{"$content":"Hold","$type":"Ludiq.PressState"}},"position":{"x":-416.0,"y":-135.0},"guid":"02f36e08-aaf5-442c-abdf-7f6ac9473930","$version":"A","$type":"Bolt.OnKeyboardInput","$id":"32"},{"chainable":false,"member":{"name":"Destroy","parameterTypes":["UnityEngine.Object","System.Single"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%obj":null,"%t":{"$content":0.7,"$type":"System.Single"}},"position":{"x":196.0,"y":634.0},"guid":"ef82cb8b-f7be-4adc-8c53-3681a82cce59","$version":"A","$type":"Bolt.InvokeMember","$id":"34"},{"defaultValues":{},"position":{"x":47.0,"y":856.0},"guid":"cd6ccbdf-f69c-4b17-9d01-572f232426b9","$version":"A","$type":"Bolt.Self","$id":"37"},{"member":{"name":"velocity","parameterTypes":null,"targetType":"UnityEngine.Rigidbody2D","targetTypeName":"UnityEngine.Rigidbody2D","$version":"A"},"defaultValues":{"target":null},"position":{"x":-482.0,"y":-2.0},"guid":"b3773d98-6db0-40fd-b2f2-0f1c8eaf6e83","$version":"A","$type":"Bolt.GetMember","$id":"39"},{"coroutine":false,"defaultValues":{"key":{"$content":"Space","$type":"UnityEngine.KeyCode"},"action":{"$content":"Up","$type":"Ludiq.PressState"}},"position":{"x":-513.0,"y":344.0},"guid":"d0cfc9ea-bf45-4bc0-8976-efcf405240fd","$version":"A","$type":"Bolt.OnKeyboardInput","$id":"42"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-467.0,"y":634.0},"guid":"eb50360e-1305-4dee-99e1-9f7d0bb39566","$version":"A","$type":"Bolt.OnTriggerEnter2D","$id":"44"},{"type":"System.String","value":{"$content":"Obstacle","$type":"System.String"},"defaultValues":{},"position":{"x":-340.0,"y":853.0},"guid":"887c8d2e-4845-4f3a-acf8-e12fa890ac15","$version":"A","$type":"Bolt.Literal","$id":"46"},{"sourceUnit":{"$ref":"32"},"sourceKey":"trigger","destinationUnit":{"$ref":"14"},"destinationKey":"enter","guid":"93b126a5-1c93-408a-b276-2ed2a10db100","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"23"},"sourceKey":"exit","destinationUnit":{"$ref":"34"},"destinationKey":"enter","guid":"b36f129d-56c8-45a0-8a74-3acb72fff77f","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"assigned","destinationUnit":{"$ref":"17"},"destinationKey":"enter","guid":"2a365c02-3562-47c8-b725-a8c48bbbb056","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"42"},"sourceKey":"trigger","destinationUnit":{"$ref":"29"},"destinationKey":"enter","guid":"a656eac6-0598-43af-81da-220fc98f7781","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"14"},"sourceKey":"exit","destinationUnit":{"$ref":"9"},"destinationKey":"assign","guid":"f03bd86b-8a4f-44a5-926a-e816de53a7f3","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"44"},"sourceKey":"trigger","destinationUnit":{"$ref":"20"},"destinationKey":"Enter","guid":"ee69a145-1814-424f-98f4-fe4fb0e5dafd","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"20"},"sourceKey":"Exit","destinationUnit":{"$ref":"23"},"destinationKey":"enter","guid":"66b8b5dd-7780-410e-b5e9-2e69f1655225","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"37"},"sourceKey":"self","destinationUnit":{"$ref":"34"},"destinationKey":"%obj","guid":"97e10f48-e099-4e66-ad9a-d7fd7e51659e","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"14"},"sourceKey":"result","destinationUnit":{"$ref":"9"},"destinationKey":"input","guid":"bb1516d3-c6d2-421c-8cfa-eeb8b2e0221c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"12"},"sourceKey":"value","destinationUnit":{"$ref":"14"},"destinationKey":"%y","guid":"60e4ac45-4811-4188-9ad4-227070e91aeb","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"26"},"sourceKey":"value","destinationUnit":{"$ref":"14"},"destinationKey":"%x","guid":"39010474-560a-4326-b92f-9979c13839b1","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"39"},"sourceKey":"value","destinationUnit":{"$ref":"26"},"destinationKey":"target","guid":"22d033b8-ba67-4be7-9fbd-d5ee27a17086","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"44"},"sourceKey":"collider","destinationUnit":{"$ref":"20"},"destinationKey":"Collider","guid":"9a1d0853-7502-4897-ac25-cd0c9d9e3c06","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"46"},"sourceKey":"output","destinationUnit":{"$ref":"20"},"destinationKey":"Tag","guid":"48dd3b2c-8fc8-42b7-b465-27e9cf8ee6e5","$type":"Bolt.ValueConnection"},{"position":{"xMin":-537.0,"yMin":287.0,"xMax":-68.0,"yMax":526.0},"label":"Reset
Penny''s run animation when Space is released","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"a47a2b29-83cc-4600-baba-55456cf12c9f","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-535.8192,"yMin":-210.3472,"xMax":441.816,"yMax":239.6323},"label":"Apply
Penny''s jump movement & animation when Space is pressed","comment":null,"color":{"r":0.8017116,"g":0.6661326,"b":0.9716981,"a":1.0},"guid":"e1282e0f-59ba-4a24-afc0-fc0a03790cf5","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-539.0,"yMin":563.0,"xMax":370.0,"yMax":981.0},"label":"If
Penny collides with an Obstacle, play her \"hurt\" animation and destroy her
game object.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"3acd37e1-03a0-482d-83a8-ca0ece614fb0","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
_objectReferences:
- {fileID: 11400000, guid: 966bf79364dd5a141b97fefdaa4fa1b4, type: 2}