diff options
Diffstat (limited to 'VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/SimpleForLoop.asset')
-rw-r--r-- | VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/SimpleForLoop.asset | 225 |
1 files changed, 225 insertions, 0 deletions
diff --git a/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/SimpleForLoop.asset b/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/SimpleForLoop.asset new file mode 100644 index 00000000..82a231d9 --- /dev/null +++ b/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/SimpleForLoop.asset @@ -0,0 +1,225 @@ +%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: SimpleForLoop + m_EditorClassIdentifier: + serializedUdonProgramAsset: {fileID: 11400000, guid: e78613481d3edf74982001e8f88c6e4a, + type: 2} + udonAssembly: ".data_start\r\n\r\n .export textField\r\n .export numberOfLoops\r\n + \r\n __instance_0: %UnityEngineUIText, null\r\n __value_0: %SystemString, + null\r\n __index_0: %SystemInt32, null\r\n __condition_0: %SystemBoolean, + null\r\n __instance_1: %UnityEngineUIText, null\r\n __value_1: %SystemString, + null\r\n __arg0_0: %SystemObject, null\r\n __arg1_0: %SystemObject, null\r\n + __instance_2: %UnityEngineUIText, null\r\n __start_0: %SystemInt32, null\r\n + __end_0: %SystemInt32, null\r\n __step_0: %SystemInt32, null\r\n textField: + %UnityEngineUIText, null\r\n numberOfLoops: %SystemInt32, null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n + .export runLoop\r\n \r\n runLoop:\r\n \r\n PUSH, textField\r\n + PUSH, __instance_0\r\n COPY\r\n PUSH, __instance_0\r\n PUSH, + __value_0\r\n EXTERN, \"UnityEngineUIText.__set_text__SystemString__SystemVoid\"\r\n + PUSH, __start_0\r\n PUSH, __index_0\r\n COPY\r\n PUSH, __index_0\r\n + PUSH, numberOfLoops\r\n PUSH, __condition_0\r\n EXTERN, \"SystemInt32.__op_LessThan__SystemInt32_SystemInt32__SystemBoolean\"\r\n + PUSH, __condition_0\r\n JUMP_IF_FALSE, 0x00000124\r\n PUSH, textField\r\n + PUSH, __instance_1\r\n COPY\r\n PUSH, textField\r\n PUSH, + __instance_2\r\n COPY\r\n PUSH, __instance_2\r\n PUSH, __arg0_0\r\n + EXTERN, \"UnityEngineUIText.__get_text__SystemString\"\r\n PUSH, __index_0\r\n + PUSH, __arg1_0\r\n COPY\r\n PUSH, __arg0_0\r\n PUSH, __arg1_0\r\n + PUSH, __value_1\r\n EXTERN, \"SystemString.__Concat__SystemObject_SystemObject__SystemString\"\r\n + PUSH, __instance_1\r\n PUSH, __value_1\r\n EXTERN, \"UnityEngineUIText.__set_text__SystemString__SystemVoid\"\r\n + PUSH, __index_0\r\n PUSH, __step_0\r\n PUSH, __index_0\r\n + EXTERN, \"SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32\"\r\n + JUMP, 0x00000040\r\n JUMP, 0xFFFFFFFC\r\n \r\n\r\n.code_end\r\n" + assemblyError: + graphData: + name: + description: + nodes: + - fullName: For + uid: e1503096-c825-4660-b60a-e1a2cb834dad + position: {x: 587.6804, y: -705.00446} + nodeUIDs: + - + - c0b36ed6-7fb0-46dc-afe0-c613fda24076|0 + - + flowUIDs: + - 87e45329-d5c4-45a9-b594-7fa0e67b01ef + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0 + - unityObjectValue: {fileID: 0} + stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|3 + - unityObjectValue: {fileID: 0} + stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|1 + - fullName: UnityEngineUIText.__set_text__SystemString__SystemVoid + uid: 87e45329-d5c4-45a9-b594-7fa0e67b01ef + position: {x: 1278.6003, y: -708.00024} + nodeUIDs: + - b822ca4a-6822-480a-b0f9-7d7a96298011|0 + - 44ae4d9d-7f39-4805-8359-dec0d5673d6f|0 + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: + - unityObjectValue: {fileID: 0} + stringValue: + - fullName: SystemString.__Concat__SystemObject_SystemObject__SystemString + uid: 44ae4d9d-7f39-4805-8359-dec0d5673d6f + position: {x: 1026.8503, y: -550.0002} + nodeUIDs: + - 6b471919-11bb-4083-ad4a-d1b9a47c2e47|0 + - e1503096-c825-4660-b60a-e1a2cb834dad|0 + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: + - unityObjectValue: {fileID: 0} + stringValue: + - fullName: Variable_UnityEngineUIText + uid: 49c910c5-c46b-474d-91ac-86be3b5914f5 + position: {x: -192, y: -840} + nodeUIDs: + - + - + - + - + - + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: + - unityObjectValue: {fileID: 0} + stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|textField + - 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|loop + - fullName: Get_Variable + uid: 302fb0b7-2011-4250-82a6-aab26253d4a3 + position: {x: -133.65009, y: -589.6718} + nodeUIDs: + - + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|49c910c5-c46b-474d-91ac-86be3b5914f5 + - fullName: Event_Custom + uid: ebec4f91-b203-4a2e-b52a-0d6167e6f949 + position: {x: -187.30438, y: -707.3043} + nodeUIDs: + - + flowUIDs: + - 76a9e133-ce1d-40f8-878e-519790db786c + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|runLoop + - fullName: UnityEngineUIText.__get_text__SystemString + uid: 6b471919-11bb-4083-ad4a-d1b9a47c2e47 + position: {x: 41.49785, y: -515.8067} + nodeUIDs: + - 302fb0b7-2011-4250-82a6-aab26253d4a3|0 + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: + - fullName: Get_Variable + uid: b822ca4a-6822-480a-b0f9-7d7a96298011 + position: {x: 1058.1002, y: -638.1003} + nodeUIDs: + - + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|49c910c5-c46b-474d-91ac-86be3b5914f5 + - fullName: UnityEngineUIText.__set_text__SystemString__SystemVoid + uid: 76a9e133-ce1d-40f8-878e-519790db786c + position: {x: 48, y: -708} + nodeUIDs: + - 302fb0b7-2011-4250-82a6-aab26253d4a3|0 + - + flowUIDs: + - e1503096-c825-4660-b60a-e1a2cb834dad + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: + - unityObjectValue: {fileID: 0} + stringValue: 'System.String, mscorlib, Version=4.0.0.0, Culture=neutral, + PublicKeyToken=b77a5c561934e089|loops:' + - fullName: Variable_SystemInt32 + uid: 6343df08-f39e-40a1-8368-a69a4942cab6 + position: {x: -192, y: -1008} + nodeUIDs: + - + - + - + - + - + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|9 + - unityObjectValue: {fileID: 0} + stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|numberOfLoops + - 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|loops:' + - fullName: Get_Variable + uid: c0b36ed6-7fb0-46dc-afe0-c613fda24076 + position: {x: 370.79575, y: -609.71545} + nodeUIDs: + - + flowUIDs: [] + nodeValues: + - unityObjectValue: {fileID: 0} + stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|6343df08-f39e-40a1-8368-a69a4942cab6 + updateOrder: 0 + graphElementData: + - type: 3 + uid: 4c9d90e7-ea8f-4b1a-bb27-526f6482a216 + jsonData: '{"uid":"4c9d90e7-ea8f-4b1a-bb27-526f6482a216","layout":{"serializedVersion":"2","x":913.2000732421875,"y":-399.25018310546877,"width":339.9499816894531,"height":99.05000305175781},"title":"string + Concat adds strings together - in this case, add a number to the current text + in the TextField","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' + - type: 3 + uid: d69b2ba6-6adc-4ae8-b5d8-0b88b4a47042 + jsonData: '{"uid":"d69b2ba6-6adc-4ae8-b5d8-0b88b4a47042","layout":{"serializedVersion":"2","x":-711.9537963867188,"y":-708.876708984375,"width":501.75,"height":79.10001373291016},"title":"this + event is called from the SendEventOnMouseDown graph on the ClickableCubeForLoop","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' + - type: 3 + uid: 388e734b-7473-487c-bf34-72f6eed5a0fd + jsonData: '{"uid":"388e734b-7473-487c-bf34-72f6eed5a0fd","layout":{"serializedVersion":"2","x":-452.39984130859377,"y":-564.6920776367188,"width":305.1000671386719,"height":40.00000762939453},"title":"get + the public TextField variable","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' + - type: 3 + uid: 4c1d5fe2-12c2-48fe-a0d4-1aace70c606d + jsonData: '{"uid":"4c1d5fe2-12c2-48fe-a0d4-1aace70c606d","layout":{"serializedVersion":"2","x":45.55017852783203,"y":-427.8421936035156,"width":333.8500671386719,"height":68.75000762939453},"title":"Get + the current text in the TextField so we can add to it","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' + - type: 3 + uid: 3516f6f2-aa41-440f-b578-beefb87cb39d + jsonData: '{"uid":"3516f6f2-aa41-440f-b578-beefb87cb39d","layout":{"serializedVersion":"2","x":1287.2772216796875,"y":-783.47607421875,"width":285.0,"height":67.0},"title":"Set + the text in the TextField to this new combined string","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' + - type: 3 + uid: 4524fdf1-99ae-4c5f-8be8-699313990546 + jsonData: '{"uid":"4524fdf1-99ae-4c5f-8be8-699313990546","layout":{"serializedVersion":"2","x":429.2772216796875,"y":-813.47607421875,"width":512.0,"height":94.0},"title":"The + For node runs ''numberOfLoops'' times, running the flow connected to ''Body'' + each time, with the ''int'' output set to the number of the loop we''re on + - 0,1,2 etc.","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' + viewTransform: + position: {x: 0, y: 0} + scale: 1 + version: 1.0.0 + showAssembly: 0 |