summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/Pooled Box.asset
diff options
context:
space:
mode:
Diffstat (limited to 'VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/Pooled Box.asset')
-rw-r--r--VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/Pooled Box.asset316
1 files changed, 316 insertions, 0 deletions
diff --git a/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/Pooled Box.asset b/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/Pooled Box.asset
new file mode 100644
index 00000000..760f7cfd
--- /dev/null
+++ b/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/Pooled Box.asset
@@ -0,0 +1,316 @@
+%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: 11500000, guid: 4f11136daadff0b44ac2278a314682ab, type: 3}
+ m_Name: Pooled Box
+ m_EditorClassIdentifier:
+ serializedUdonProgramAsset: {fileID: 11400000, guid: 60665620ea3f3234f825f33970b7d737,
+ type: 2}
+ udonAssembly: ".data_start\r\n\r\n .export pool\r\n \r\n __Boolean_0:
+ %SystemBoolean, null\r\n __obj_0: %UnityEngineGameObject, this\r\n __instance_0:
+ %VRCSDK3ComponentsVRCObjectPool, null\r\n __obj_1: %UnityEngineGameObject,
+ this\r\n __instance_1: %VRCUdonUdonBehaviour, this\r\n __target_0: %VRCUdonCommonInterfacesNetworkEventTarget,
+ null\r\n __eventName_0: %SystemString, null\r\n __instance_2: %VRCSDK3ComponentsVRCObjectPool,
+ null\r\n __obj_2: %UnityEngineGameObject, this\r\n __object_0: %SystemObject,
+ null\r\n __result_0: %SystemBoolean, null\r\n __instance_3: %VRCSDK3ComponentsVRCObjectSync,
+ null\r\n __object_1: %SystemObject, null\r\n __Type_0: %SystemType, null\r\n
+ __result_1: %SystemBoolean, null\r\n __instance_4: %UnityEngineGameObject,
+ this\r\n __type_0: %SystemType, null\r\n __Type_1: %SystemType, null\r\n
+ pool: %VRCSDK3ComponentsVRCObjectPool, null\r\n __returnValue: %SystemObject,
+ null\r\n objectSync: %VRCSDK3ComponentsVRCObjectSync, null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n
+ .export _interact\r\n \r\n _interact:\r\n \r\n PUSH, __obj_0\r\n
+ PUSH, __Boolean_0\r\n EXTERN, \"VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean\"\r\n
+ PUSH, __Boolean_0\r\n JUMP_IF_FALSE, 0x0000005C\r\n PUSH, pool\r\n
+ PUSH, __instance_0\r\n COPY\r\n PUSH, __instance_0\r\n PUSH,
+ __obj_1\r\n EXTERN, \"VRCSDK3ComponentsVRCObjectPool.__Return__UnityEngineGameObject__SystemVoid\"\r\n
+ JUMP, 0x0000007C\r\n PUSH, __instance_1\r\n PUSH, __target_0\r\n
+ PUSH, __eventName_0\r\n EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__SendCustomNetworkEvent__VRCUdonCommonInterfacesNetworkEventTarget_SystemString__SystemVoid\"\r\n
+ JUMP, 0xFFFFFFFC\r\n \r\n .export ReturnObject\r\n \r\n ReturnObject:\r\n
+ \r\n PUSH, pool\r\n PUSH, __instance_2\r\n COPY\r\n
+ PUSH, __instance_2\r\n PUSH, __obj_2\r\n EXTERN, \"VRCSDK3ComponentsVRCObjectPool.__Return__UnityEngineGameObject__SystemVoid\"\r\n
+ JUMP, 0xFFFFFFFC\r\n \r\n .export _onEnable\r\n \r\n _onEnable:\r\n
+ \r\n PUSH, objectSync\r\n PUSH, __object_0\r\n COPY\r\n
+ PUSH, __object_0\r\n PUSH, __result_0\r\n EXTERN, \"VRCSDKBaseUtilities.__IsValid__SystemObject__SystemBoolean\"\r\n
+ PUSH, __result_0\r\n JUMP_IF_FALSE, 0x00000120\r\n PUSH, objectSync\r\n
+ PUSH, __instance_3\r\n COPY\r\n PUSH, __instance_3\r\n EXTERN,
+ \"VRCSDK3ComponentsVRCObjectSync.__Respawn__SystemVoid\"\r\n JUMP, 0x00000120\r\n
+ JUMP, 0xFFFFFFFC\r\n \r\n .export _start\r\n \r\n _start:\r\n
+ \r\n PUSH, __Type_0\r\n PUSH, __type_0\r\n COPY\r\n
+ PUSH, __instance_4\r\n PUSH, __type_0\r\n PUSH, __object_1\r\n
+ EXTERN, \"UnityEngineGameObject.__GetComponent__SystemType__UnityEngineComponent\"\r\n
+ PUSH, __object_1\r\n PUSH, __result_1\r\n EXTERN, \"VRCSDKBaseUtilities.__IsValid__SystemObject__SystemBoolean\"\r\n
+ PUSH, __result_1\r\n JUMP_IF_FALSE, 0x000001C8\r\n PUSH, __Type_1\r\n
+ PUSH, __type_0\r\n COPY\r\n PUSH, __object_1\r\n PUSH, objectSync\r\n
+ COPY\r\n PUSH, __object_1\r\n PUSH, objectSync\r\n COPY\r\n
+ JUMP, 0x000001C8\r\n JUMP, 0xFFFFFFFC\r\n \r\n\r\n.code_end\r\n"
+ assemblyError:
+ graphData:
+ name:
+ description:
+ nodes:
+ - fullName: Variable_VRCSDK3ComponentsVRCObjectPool
+ uid: cf69a3ca-d6ad-4bcd-af25-29492a3da7b0
+ position: {x: 0, y: 0}
+ nodeUIDs:
+ -
+ -
+ -
+ -
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|pool
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|True
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
+ - fullName: Event_Interact
+ uid: a6f6ff3d-fe47-401d-9f44-13593a94d4a2
+ position: {x: 940, y: 450}
+ nodeUIDs: []
+ flowUIDs:
+ - da4bfe57-0c9e-4eb5-971e-c0d4b466b4a0
+ nodeValues: []
+ - fullName: VRCSDK3ComponentsVRCObjectPool.__Return__UnityEngineGameObject__SystemVoid
+ uid: 721341eb-6e04-49d7-8276-7eee6a7538df
+ position: {x: 1480, y: 450}
+ nodeUIDs:
+ - 6577aecf-85f3-4cba-b450-508bcbb02f6b|0
+ -
+ flowUIDs:
+ -
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - fullName: Get_Variable
+ uid: 6577aecf-85f3-4cba-b450-508bcbb02f6b
+ position: {x: 1260, y: 530}
+ nodeUIDs:
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|cf69a3ca-d6ad-4bcd-af25-29492a3da7b0
+ - fullName: Variable_SystemObject
+ uid: c87c543e-b928-4bf2-8a13-ab5da40172d1
+ position: {x: 0, y: 0}
+ nodeUIDs:
+ -
+ -
+ -
+ -
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|__returnValue
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
+ - fullName: VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean
+ uid: 60065287-0b8a-4fa7-83aa-97ec0d8c3ac4
+ position: {x: 870, y: 560}
+ nodeUIDs:
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - fullName: Branch
+ uid: da4bfe57-0c9e-4eb5-971e-c0d4b466b4a0
+ position: {x: 1080, y: 450}
+ nodeUIDs:
+ - 60065287-0b8a-4fa7-83aa-97ec0d8c3ac4|0
+ flowUIDs:
+ - 721341eb-6e04-49d7-8276-7eee6a7538df
+ - d3de19bd-f313-492d-b1d4-3eb8beb40024
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - fullName: VRCUdonCommonInterfacesIUdonEventReceiver.__SendCustomNetworkEvent__VRCUdonCommonInterfacesNetworkEventTarget_SystemString__SystemVoid
+ uid: d3de19bd-f313-492d-b1d4-3eb8beb40024
+ position: {x: 1240, y: 640}
+ nodeUIDs:
+ -
+ -
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue: VRC.Udon.Common.Interfaces.NetworkEventTarget, VRC.Udon.Common,
+ Version=1.0.0.0, Culture=neutral, PublicKeyToken=null|Owner
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|ReturnObject
+ - fullName: Event_Custom
+ uid: 672a9e88-ca8f-45d3-b264-db6cd275ed9f
+ position: {x: 1260, y: 370}
+ nodeUIDs:
+ -
+ flowUIDs:
+ - 721341eb-6e04-49d7-8276-7eee6a7538df
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|ReturnObject
+ - fullName: Event_OnEnable
+ uid: a8f69a89-ba2f-422a-b2e6-45470b21bdd0
+ position: {x: 1120, y: 40}
+ nodeUIDs: []
+ flowUIDs:
+ - 409ad916-7325-4de3-8beb-4aff88dfa529
+ nodeValues: []
+ - fullName: Variable_VRCSDK3ComponentsVRCObjectSync
+ uid: 92ff0f5b-9ab0-4f80-9060-5124716b0cc0
+ position: {x: 0, y: 0}
+ nodeUIDs:
+ -
+ -
+ -
+ -
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|objectSync
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
+ - fullName: Event_Start
+ uid: 0d7d0b7f-8b65-4331-8f23-d836cc8787cc
+ position: {x: 1160, y: -270}
+ nodeUIDs: []
+ flowUIDs:
+ - 3aebf48b-1538-4d51-a41d-c9aac4c034f4
+ nodeValues: []
+ - fullName: UnityEngineGameObject.__GetComponent__SystemType__UnityEngineComponent
+ uid: 13a167b5-c2dc-48a2-b1ad-1da7eac402c6
+ position: {x: 1300, y: -200}
+ nodeUIDs:
+ -
+ - 259f0580-8fd1-4655-810e-0c706831974e|0
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - fullName: Type_VRCSDK3ComponentsVRCObjectSync
+ uid: 259f0580-8fd1-4655-810e-0c706831974e
+ position: {x: 1100, y: -150}
+ nodeUIDs: []
+ flowUIDs: []
+ nodeValues: []
+ - fullName: Set_Variable
+ uid: 934e8ba8-3363-4668-bfa2-b7b6fa78d739
+ position: {x: 1660, y: -250}
+ nodeUIDs:
+ -
+ - 13a167b5-c2dc-48a2-b1ad-1da7eac402c6|0
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|92ff0f5b-9ab0-4f80-9060-5124716b0cc0
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
+ PublicKeyToken=b77a5c561934e089|False
+ - fullName: Is_Valid
+ uid: 3aebf48b-1538-4d51-a41d-c9aac4c034f4
+ position: {x: 1500, y: -270}
+ nodeUIDs:
+ - 13a167b5-c2dc-48a2-b1ad-1da7eac402c6|0
+ flowUIDs:
+ - 934e8ba8-3363-4668-bfa2-b7b6fa78d739
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - fullName: Get_Variable
+ uid: e98fb847-a71e-497d-b902-0b28f9c0747b
+ position: {x: 1090, y: 150}
+ nodeUIDs:
+ -
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|92ff0f5b-9ab0-4f80-9060-5124716b0cc0
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - fullName: VRCSDK3ComponentsVRCObjectSync.__Respawn__SystemVoid
+ uid: 588628ac-f7a0-4324-9d35-89a61617e1b0
+ position: {x: 1480, y: 120}
+ nodeUIDs:
+ - e98fb847-a71e-497d-b902-0b28f9c0747b|0
+ flowUIDs: []
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ - fullName: Is_Valid
+ uid: 409ad916-7325-4de3-8beb-4aff88dfa529
+ position: {x: 1330, y: 40}
+ nodeUIDs:
+ - e98fb847-a71e-497d-b902-0b28f9c0747b|0
+ flowUIDs:
+ - 588628ac-f7a0-4324-9d35-89a61617e1b0
+ nodeValues:
+ - unityObjectValue: {fileID: 0}
+ stringValue:
+ updateOrder: 0
+ graphElementData:
+ - type: 2
+ uid: 770a014b-0330-496c-83d0-8d384ee8bc21
+ jsonData: '{"uid":"770a014b-0330-496c-83d0-8d384ee8bc21","layout":{"serializedVersion":"2","x":1060.0,"y":-20.0,"width":563.0,"height":283.0},"containedElements":["f22e4651-e70b-4fa2-a016-2e3f99ed2fc6","dce5d03c-36e5-4d1e-b3a1-c360a1e5ab60","5a77752d-95c2-4a05-81ec-bbe5de339fa6","349e104a-1845-4ad9-8c8b-944d9c3bf8e7","eea0c0c2-4706-4950-9c19-ff408aa5f58f","bc654efd-e450-40ce-8c64-062d9dc4901f","882f5306-f97a-4114-b0b1-7dfde5f452d2","a8f69a89-ba2f-422a-b2e6-45470b21bdd0","e98fb847-a71e-497d-b902-0b28f9c0747b","588628ac-f7a0-4324-9d35-89a61617e1b0","409ad916-7325-4de3-8beb-4aff88dfa529"],"title":"Restore
+ initial Position when Enabled","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
+ - type: 2
+ uid: 81bbf536-b2ac-44e2-868d-b3287ec1064c
+ jsonData: '{"uid":"81bbf536-b2ac-44e2-868d-b3287ec1064c","layout":{"serializedVersion":"2","x":840.0,"y":310.0,"width":927.0,"height":514.0},"containedElements":["0a0ae50a-7b4c-43e7-ba9b-f7f49f05347d","03f42b5a-ba87-44a1-9a82-b33b8f537ca7","d44119a2-46c0-4d80-94fc-d2fe8b306dfe","6577aecf-85f3-4cba-b450-508bcbb02f6b","721341eb-6e04-49d7-8276-7eee6a7538df","a6f6ff3d-fe47-401d-9f44-13593a94d4a2","447c80f8-2f8d-45b0-b798-1fa18d8022a2","1813c185-def5-4e7c-b0d5-9cc4ca41ddaa","60065287-0b8a-4fa7-83aa-97ec0d8c3ac4","da4bfe57-0c9e-4eb5-971e-c0d4b466b4a0","672a9e88-ca8f-45d3-b264-db6cd275ed9f","d3de19bd-f313-492d-b1d4-3eb8beb40024"],"title":"OnInteract,
+ Return Object to Pool if Owner, or send ReturnObject message to Owner","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
+ - type: 5
+ uid: 1a238439-2ea4-45c9-978d-02a662335a48
+ jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":130.0,"width":200.0,"height":150.0}}'
+ - type: 4
+ uid: 5b23d6d5-e0a1-4297-9127-8b92c45110de
+ jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":20.0,"width":0.0,"height":0.0}}'
+ - type: 2
+ uid: b05690c8-17f8-4729-ba24-fabdc8b52077
+ jsonData: '{"uid":"b05690c8-17f8-4729-ba24-fabdc8b52077","layout":{"serializedVersion":"2","x":1080.0,"y":-330.0,"width":767.0,"height":292.0},"containedElements":["0d7d0b7f-8b65-4331-8f23-d836cc8787cc","3aebf48b-1538-4d51-a41d-c9aac4c034f4","934e8ba8-3363-4668-bfa2-b7b6fa78d739","13a167b5-c2dc-48a2-b1ad-1da7eac402c6","259f0580-8fd1-4655-810e-0c706831974e"],"title":"Get
+ ObjectSync component on this GameObject","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
+ viewTransform:
+ position: {x: -725.1483, y: 250.7201}
+ scale: 1
+ version: 1.0.0
+ showAssembly: 0