Expected behavior
Unless the documentation is incorrect, setting the cursor to default position
It appears that you need to explicitly specify nil
as the argument in order for this function to succeed; leaving the argument blank (void
) results in an error. Appears to be similar to this topic where void
and nil
have different behaviours; in-which in that case it was determined to be intentional behaviour. This case seems different though and I’d honestly be quite confused if this were to be intended given that needing to explicitly state nil
is quite odd.
Hi
I assume you’re trying to call GamepadService:EnableGamepadCursor()
with no parameter. In order to set the cursor to the default position, you must pass nil
as a parameter, GamepadService:EnableGamepadCursor(nil)
like so. I’ll update the docs to be explicit about this.
Thanks
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.