Skip to content

EnumIncrement

VRCTweenEase.LinearをSystemInt32へCOPYし、1を加算してVRCTweenEaseへCOPYで戻します。実行すると変更前のLinearと変更後のInSineをログへ出力します。

JSONファイルを開く

json
{
  "version": 1,
  "comment": "VRCTweenEase.LinearをSystemInt32へCOPYし、1を加算してVRCTweenEaseへCOPYで戻します。実行すると変更前のLinearと変更後のInSineをログへ出力します。",
  "data": [
    {
      "name": "__ease",
      "type": "VRCSDK3ComponentsVRCTweenEase",
      "value": 1
    },
    {
      "name": "__ease_int",
      "type": "SystemInt32",
      "value": 0
    },
    {
      "name": "__one",
      "type": "SystemInt32",
      "value": 1
    },
    {
      "name": "__result",
      "type": "SystemInt32",
      "value": 0
    }
  ],
  "code": [
    {
      "name": "_start",
      "export": true,
      "instructions": [
        {
          "op": "PUSH",
          "operand": "__ease"
        },
        {
          "op": "EXTERN",
          "signature": "UnityEngineDebug.__Log__SystemObject__SystemVoid",
          "argumentCount": 1
        },
        {
          "op": "PUSH",
          "operand": "__ease"
        },
        {
          "op": "PUSH",
          "operand": "__ease_int"
        },
        {
          "op": "COPY"
        },
        {
          "op": "PUSH",
          "operand": "__ease_int"
        },
        {
          "op": "PUSH",
          "operand": "__one"
        },
        {
          "op": "EXTERN",
          "signature": "SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32",
          "argumentCount": 2,
          "return": "__result"
        },
        {
          "op": "POP"
        },
        {
          "op": "PUSH",
          "operand": "__result"
        },
        {
          "op": "PUSH",
          "operand": "__ease"
        },
        {
          "op": "COPY"
        },
        {
          "op": "PUSH",
          "operand": "__ease"
        },
        {
          "op": "EXTERN",
          "signature": "UnityEngineDebug.__Log__SystemObject__SystemVoid",
          "argumentCount": 1
        }
      ]
    }
  ]
}