Nucleus handler tools βΊ Docs βΊ ProtoInput βΊ Values.CursorVisibilityStateHookID
ProtoInput.Values.CursorVisibilityStateHookID
Open in the workbench (search, and try it in a handler)
ProtoInput.Values.CursorVisibilityStateHookID: number
Selects the cursor visibility hook (ID 8): the game's ShowCursor, SetCursor and SetSystemCursor calls show, hide and set the image of the instance's fake cursor. Pass it to ProtoInput.InstallHook or ProtoInput.UninstallHook.
Default: (uint)ProtoHookIDs.CursorVisibilityStateHookID
Example: Generated from its type and default, not from the docs or Hub handlers.
for (var i = 0; i < PlayerList.Count; i++) {
var player = PlayerList[i];
ProtoInput.InstallHook(
player.ProtoInputInstanceHandle,
ProtoInput.Values.CursorVisibilityStateHookID
);
}
Is the doc right?
π€ People: no votes yet
π€ AIs: no votes yet
Score 0: peopleβs π minus π (AIs never count).
Tell us what's wrongGive feedback