Appearance
Vector3Operations
Vector3(1,2,3)とVector3(4,5,6)を生成し、加算、距離、正規化をExternで実行して結果を出力します。
json
{
"version": 1,
"comment": "Vector3(1,2,3)とVector3(4,5,6)を生成し、加算、距離、正規化をExternで実行して結果を出力します。",
"data": [
{
"name": "__x1",
"type": "SystemSingle",
"value": 1
},
{
"name": "__y1",
"type": "SystemSingle",
"value": 2
},
{
"name": "__z1",
"type": "SystemSingle",
"value": 3
},
{
"name": "__x2",
"type": "SystemSingle",
"value": 4
},
{
"name": "__y2",
"type": "SystemSingle",
"value": 5
},
{
"name": "__z2",
"type": "SystemSingle",
"value": 6
},
{
"name": "__a",
"type": "UnityEngineVector3",
"value": null
},
{
"name": "__b",
"type": "UnityEngineVector3",
"value": null
},
{
"name": "__sum",
"type": "UnityEngineVector3",
"value": null
},
{
"name": "__normalized",
"type": "UnityEngineVector3",
"value": null
},
{
"name": "__distance",
"type": "SystemSingle",
"value": 0
},
{
"name": "__sum_prefix",
"type": "SystemString",
"value": "a + b = "
},
{
"name": "__distance_prefix",
"type": "SystemString",
"value": "distance = "
},
{
"name": "__normalized_prefix",
"type": "SystemString",
"value": "normalized(a + b) = "
},
{
"name": "__message",
"type": "SystemString",
"value": ""
},
{
"name": "__shiras_result_object_name",
"type": "SystemString",
"value": "ShirasUdonResultText"
},
{
"name": "__shiras_result_object",
"type": "UnityEngineGameObject",
"value": null
},
{
"name": "__shiras_result_text_type",
"type": "SystemType",
"value": "UnityEngineUIText"
},
{
"name": "__shiras_result_text",
"type": "UnityEngineUIText",
"value": null
},
{
"name": "__shiras_result_found",
"type": "SystemBoolean",
"value": false
},
{
"name": "__shiras_result_message_0",
"type": "SystemString",
"value": ""
},
{
"name": "__shiras_result_message_1",
"type": "SystemString",
"value": ""
},
{
"name": "__shiras_result_message_2",
"type": "SystemString",
"value": ""
},
{
"name": "__shiras_result_builder",
"type": "SystemTextStringBuilder",
"value": null
},
{
"name": "__shiras_result_builder_next",
"type": "SystemTextStringBuilder",
"value": null
}
],
"code": [
{
"name": "_start",
"export": true,
"instructions": [
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__ctor____SystemTextStringBuilder",
"argumentCount": 0,
"return": "__shiras_result_builder"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__x1"
},
{
"op": "PUSH",
"operand": "__y1"
},
{
"op": "PUSH",
"operand": "__z1"
},
{
"op": "EXTERN",
"signature": "UnityEngineVector3.__ctor__SystemSingle_SystemSingle_SystemSingle__UnityEngineVector3",
"argumentCount": 3,
"return": "__a"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__x2"
},
{
"op": "PUSH",
"operand": "__y2"
},
{
"op": "PUSH",
"operand": "__z2"
},
{
"op": "EXTERN",
"signature": "UnityEngineVector3.__ctor__SystemSingle_SystemSingle_SystemSingle__UnityEngineVector3",
"argumentCount": 3,
"return": "__b"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__a"
},
{
"op": "PUSH",
"operand": "__b"
},
{
"op": "EXTERN",
"signature": "UnityEngineVector3.__op_Addition__UnityEngineVector3_UnityEngineVector3__UnityEngineVector3",
"argumentCount": 2,
"return": "__sum"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__a"
},
{
"op": "PUSH",
"operand": "__b"
},
{
"op": "EXTERN",
"signature": "UnityEngineVector3.__Distance__UnityEngineVector3_UnityEngineVector3__SystemSingle",
"argumentCount": 2,
"return": "__distance"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__sum"
},
{
"op": "EXTERN",
"signature": "UnityEngineVector3.__Normalize__UnityEngineVector3__UnityEngineVector3",
"argumentCount": 1,
"return": "__normalized"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__sum_prefix"
},
{
"op": "PUSH",
"operand": "__sum"
},
{
"op": "EXTERN",
"signature": "SystemString.__Concat__SystemObject_SystemObject__SystemString",
"argumentCount": 2,
"return": "__message"
},
{
"op": "EXTERN",
"signature": "UnityEngineDebug.__Log__SystemObject__SystemVoid",
"argumentCount": 1
},
{
"op": "JUMP",
"operand": "__shiras_display_0"
}
]
},
{
"name": "__shiras_display_0",
"export": false,
"instructions": [
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "PUSH",
"operand": "__message"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__Append__SystemObject__SystemTextStringBuilder",
"argumentCount": 2,
"return": "__shiras_result_builder_next"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__AppendLine__SystemTextStringBuilder",
"argumentCount": 1,
"return": "__shiras_result_builder_next"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__ToString__SystemString",
"argumentCount": 1,
"return": "__shiras_result_message_0"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_object_name"
},
{
"op": "EXTERN",
"signature": "UnityEngineGameObject.__Find__SystemString__UnityEngineGameObject",
"argumentCount": 1,
"return": "__shiras_result_object"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_object"
},
{
"op": "EXTERN",
"signature": "UnityEngineObject.__op_Implicit__UnityEngineObject__SystemBoolean",
"argumentCount": 1,
"return": "__shiras_result_found"
},
{
"op": "JUMP_IF_FALSE",
"operand": "__shiras_continue_0"
},
{
"op": "PUSH",
"operand": "__shiras_result_object"
},
{
"op": "PUSH",
"operand": "__shiras_result_text_type"
},
{
"op": "EXTERN",
"signature": "UnityEngineGameObject.__GetComponent__SystemType__UnityEngineComponent",
"argumentCount": 2,
"return": "__shiras_result_text"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_text"
},
{
"op": "EXTERN",
"signature": "UnityEngineObject.__op_Implicit__UnityEngineObject__SystemBoolean",
"argumentCount": 1,
"return": "__shiras_result_found"
},
{
"op": "JUMP_IF_FALSE",
"operand": "__shiras_continue_0"
},
{
"op": "PUSH",
"operand": "__shiras_result_text"
},
{
"op": "PUSH",
"operand": "__shiras_result_message_0"
},
{
"op": "EXTERN",
"signature": "UnityEngineUIText.__set_text__SystemString__SystemVoid",
"argumentCount": 2
},
{
"op": "JUMP",
"operand": "__shiras_continue_0"
}
]
},
{
"name": "__shiras_continue_0",
"export": false,
"instructions": [
{
"op": "PUSH",
"operand": "__distance_prefix"
},
{
"op": "PUSH",
"operand": "__distance"
},
{
"op": "EXTERN",
"signature": "SystemString.__Concat__SystemObject_SystemObject__SystemString",
"argumentCount": 2,
"return": "__message"
},
{
"op": "EXTERN",
"signature": "UnityEngineDebug.__Log__SystemObject__SystemVoid",
"argumentCount": 1
},
{
"op": "JUMP",
"operand": "__shiras_display_1"
}
]
},
{
"name": "__shiras_display_1",
"export": false,
"instructions": [
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "PUSH",
"operand": "__message"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__Append__SystemObject__SystemTextStringBuilder",
"argumentCount": 2,
"return": "__shiras_result_builder_next"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__AppendLine__SystemTextStringBuilder",
"argumentCount": 1,
"return": "__shiras_result_builder_next"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__ToString__SystemString",
"argumentCount": 1,
"return": "__shiras_result_message_1"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_object_name"
},
{
"op": "EXTERN",
"signature": "UnityEngineGameObject.__Find__SystemString__UnityEngineGameObject",
"argumentCount": 1,
"return": "__shiras_result_object"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_object"
},
{
"op": "EXTERN",
"signature": "UnityEngineObject.__op_Implicit__UnityEngineObject__SystemBoolean",
"argumentCount": 1,
"return": "__shiras_result_found"
},
{
"op": "JUMP_IF_FALSE",
"operand": "__shiras_continue_1"
},
{
"op": "PUSH",
"operand": "__shiras_result_object"
},
{
"op": "PUSH",
"operand": "__shiras_result_text_type"
},
{
"op": "EXTERN",
"signature": "UnityEngineGameObject.__GetComponent__SystemType__UnityEngineComponent",
"argumentCount": 2,
"return": "__shiras_result_text"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_text"
},
{
"op": "EXTERN",
"signature": "UnityEngineObject.__op_Implicit__UnityEngineObject__SystemBoolean",
"argumentCount": 1,
"return": "__shiras_result_found"
},
{
"op": "JUMP_IF_FALSE",
"operand": "__shiras_continue_1"
},
{
"op": "PUSH",
"operand": "__shiras_result_text"
},
{
"op": "PUSH",
"operand": "__shiras_result_message_1"
},
{
"op": "EXTERN",
"signature": "UnityEngineUIText.__set_text__SystemString__SystemVoid",
"argumentCount": 2
},
{
"op": "JUMP",
"operand": "__shiras_continue_1"
}
]
},
{
"name": "__shiras_continue_1",
"export": false,
"instructions": [
{
"op": "PUSH",
"operand": "__normalized_prefix"
},
{
"op": "PUSH",
"operand": "__normalized"
},
{
"op": "EXTERN",
"signature": "SystemString.__Concat__SystemObject_SystemObject__SystemString",
"argumentCount": 2,
"return": "__message"
},
{
"op": "EXTERN",
"signature": "UnityEngineDebug.__Log__SystemObject__SystemVoid",
"argumentCount": 1
},
{
"op": "JUMP",
"operand": "__shiras_display_2"
}
]
},
{
"name": "__shiras_display_2",
"export": false,
"instructions": [
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "PUSH",
"operand": "__message"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__Append__SystemObject__SystemTextStringBuilder",
"argumentCount": 2,
"return": "__shiras_result_builder_next"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__AppendLine__SystemTextStringBuilder",
"argumentCount": 1,
"return": "__shiras_result_builder_next"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_builder"
},
{
"op": "EXTERN",
"signature": "SystemTextStringBuilder.__ToString__SystemString",
"argumentCount": 1,
"return": "__shiras_result_message_2"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_object_name"
},
{
"op": "EXTERN",
"signature": "UnityEngineGameObject.__Find__SystemString__UnityEngineGameObject",
"argumentCount": 1,
"return": "__shiras_result_object"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_object"
},
{
"op": "EXTERN",
"signature": "UnityEngineObject.__op_Implicit__UnityEngineObject__SystemBoolean",
"argumentCount": 1,
"return": "__shiras_result_found"
},
{
"op": "JUMP_IF_FALSE",
"operand": "__shiras_continue_2"
},
{
"op": "PUSH",
"operand": "__shiras_result_object"
},
{
"op": "PUSH",
"operand": "__shiras_result_text_type"
},
{
"op": "EXTERN",
"signature": "UnityEngineGameObject.__GetComponent__SystemType__UnityEngineComponent",
"argumentCount": 2,
"return": "__shiras_result_text"
},
{
"op": "POP"
},
{
"op": "PUSH",
"operand": "__shiras_result_text"
},
{
"op": "EXTERN",
"signature": "UnityEngineObject.__op_Implicit__UnityEngineObject__SystemBoolean",
"argumentCount": 1,
"return": "__shiras_result_found"
},
{
"op": "JUMP_IF_FALSE",
"operand": "__shiras_continue_2"
},
{
"op": "PUSH",
"operand": "__shiras_result_text"
},
{
"op": "PUSH",
"operand": "__shiras_result_message_2"
},
{
"op": "EXTERN",
"signature": "UnityEngineUIText.__set_text__SystemString__SystemVoid",
"argumentCount": 2
},
{
"op": "JUMP",
"operand": "__shiras_continue_2"
}
]
},
{
"name": "__shiras_continue_2",
"export": false,
"instructions": []
}
]
}