Unhook(integer)

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » Unhook(integer) Version 2.1

説明

The Unhook Lua function removes a hook.

Hooks are an automatically triggered function that activates when a grandMA3 object changes. A hook can be created using the HookObjectChange function.

引数

  • integer:
    This must be the integer matching the hook that should be unhooked.
ヒント
All hooks can be listed using the DumpAllHooks function, but this does not reveal the corresponding hook integer ID. Use the UnhookMultiple function if the integer is unknown.

戻り値

この関数は何も返しません。


ヒント
関連する関数の DumpAllHooksHookObjectChangeUnhookMultiple も参照してください。

This example unhooks the hook created using the example in the HookObjectChange - please run that example before this one.

Lua
return function()
-- Unhooks the specific Hook integer ID.
Unhook(SequenceHookId)
end